bstlboard-back/src/main/java/de/bstly/board/businesslogic/SettingsManager.java

82 lines
1.4 KiB
Java

/**
*
*/
package de.bstly.board.businesslogic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* The Class SettingsManager.
*/
@Component
public class SettingsManager {
@Value("${bstly.board.ranking.gravity:1.2}")
private double GRAVITY;
@Value("${bstly.board.size:30}")
private int SIZE;
@Value("${bstly.board.entry.changePeriod:1}")
private long ENTRY_CHANGE_PERIDO;
@Value("${bstly.board.comment.changePeriod:1}")
private long COMMENT_CHANGE_PERIDO;
@Value("${bstly.board.unvoteThresh:10}")
private long UNVOTE_THRESH;
@Value("${bstly.board.flagThresh:3}")
private long FLAG_THRESH;
/**
* Gets the gravity.
*
* @return the gravity
*/
public double getGravity() {
return GRAVITY;
}
/**
* Gets the page size.
*
* @return the page size
*/
public int getPageSize() {
return SIZE;
}
/**
* Gets the entry delay.
*
* @return the entry delay
*/
public long getEntryDelay() {
return ENTRY_CHANGE_PERIDO;
}
/**
* Gets the comment delay.
*
* @return the comment delay
*/
public long getCommentDelay() {
return COMMENT_CHANGE_PERIDO;
}
/**
* Gets the unvote thresh.
*
* @return the unvote thresh
*/
public long getUnvoteThresh() {
return UNVOTE_THRESH;
}
/**
* Gets the flah thresh.
*
* @return the flah thresh
*/
public long getFlahThresh() {
return FLAG_THRESH;
}
}