60 lines
1021 B
Java
60 lines
1021 B
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.comment.changePeriod:1}")
|
|
private long COMMENT_CHANGE_PERIDO;
|
|
@Value("${bstly.board.unvoteThresh:10}")
|
|
private long UNVOTE_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 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;
|
|
}
|
|
}
|