Rev 90 | Rev 114 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | fvelez | 1 | package pt.estgp.estgweb; |
2 | |||
3 | import pt.estgp.estgweb.utils.ConfigProperties; |
||
4 | |||
9 | jmachado | 5 | import java.util.List; |
6 | |||
1 | fvelez | 7 | /** |
8 | * @author Jorge Machado |
||
9 | * @date 28/Fev/2008 |
||
10 | * @time 12:51:32 |
||
11 | * @see pt.estgp.estgweb |
||
12 | */ |
||
92 | jmachado | 13 | public class Globals { |
18 | jmachado | 14 | |
92 | jmachado | 15 | |
90 | jmachado | 16 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
92 | jmachado | 17 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE = ConfigProperties.getIntProperty("search.best.fragments.max.fragment.size"); |
18 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS = ConfigProperties.getIntProperty("search.best.fragments.max.fragments"); |
||
19 | |||
90 | jmachado | 20 | public static final 1.5.0/docs/api/java/lang/String.html">String ALL_ROLE = ConfigProperties.getProperty("user.super"); |
18 | jmachado | 21 | public static final 1.5.0/docs/api/java/lang/String.html">String ACTUAL_RELATIVE_PATH = "ACTUAL_RELATIVE_PATH"; |
1 | fvelez | 22 | public static final 1.5.0/docs/api/java/lang/String.html">String ADMIN_ROLE = ConfigProperties.getProperty("user.admin"); |
23 | public static final 1.5.0/docs/api/java/lang/String.html">String SUPER_USER_ROLE = ConfigProperties.getProperty("user.super"); |
||
44 | fvelez | 24 | public static final 1.5.0/docs/api/java/lang/String.html">String USER_SESSION_KEY = "UserSession"; |
9 | jmachado | 25 | public static final List<String> AUTOMATIC_VALIDATION_ROLES = ConfigProperties.getListValues("announcements.automatic.validation.role"); |
18 | jmachado | 26 | public static final 1.5.0/docs/api/java/lang/String.html">String TMP_DIR = ConfigProperties.getProperty("tmp.dir"); |
29 | jmachado | 27 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SERVER_HOST = ConfigProperties.getProperty("email.server"); |
28 | public static final 1.5.0/docs/api/java/lang/String.html">String SYSTEM_EMAIL_BOX = ConfigProperties.getProperty("email.from"); |
||
35 | fvelez | 29 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_NEWS = "news"; |
30 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS = "top.flash.news"; |
||
31 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS = "bottom.flash.news"; |
||
92 | jmachado | 32 | public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX = 5; |
33 | public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX = 1; |
||
34 | public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX = 2; |
||
35 | public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT = ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds"); |
||
73 | jmachado | 36 | public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role"); |
42 | fvelez | 37 | |
1 | fvelez | 38 | } |