Rev 114 | Rev 144 | 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; |
116 | jmachado | 6 | import java.math.BigDecimal; |
9 | jmachado | 7 | |
1 | fvelez | 8 | /** |
9 | * @author Jorge Machado |
||
10 | * @date 28/Fev/2008 |
||
11 | * @time 12:51:32 |
||
12 | * @see pt.estgp.estgweb |
||
13 | */ |
||
92 | jmachado | 14 | public class Globals { |
18 | jmachado | 15 | |
92 | jmachado | 16 | |
90 | jmachado | 17 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
92 | jmachado | 18 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE = ConfigProperties.getIntProperty("search.best.fragments.max.fragment.size"); |
19 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS = ConfigProperties.getIntProperty("search.best.fragments.max.fragments"); |
||
20 | |||
90 | jmachado | 21 | public static final 1.5.0/docs/api/java/lang/String.html">String ALL_ROLE = ConfigProperties.getProperty("user.super"); |
18 | jmachado | 22 | public static final 1.5.0/docs/api/java/lang/String.html">String ACTUAL_RELATIVE_PATH = "ACTUAL_RELATIVE_PATH"; |
1 | fvelez | 23 | public static final 1.5.0/docs/api/java/lang/String.html">String ADMIN_ROLE = ConfigProperties.getProperty("user.admin"); |
24 | public static final 1.5.0/docs/api/java/lang/String.html">String SUPER_USER_ROLE = ConfigProperties.getProperty("user.super"); |
||
44 | fvelez | 25 | public static final 1.5.0/docs/api/java/lang/String.html">String USER_SESSION_KEY = "UserSession"; |
9 | jmachado | 26 | public static final List<String> AUTOMATIC_VALIDATION_ROLES = ConfigProperties.getListValues("announcements.automatic.validation.role"); |
18 | jmachado | 27 | public static final 1.5.0/docs/api/java/lang/String.html">String TMP_DIR = ConfigProperties.getProperty("tmp.dir"); |
29 | jmachado | 28 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SERVER_HOST = ConfigProperties.getProperty("email.server"); |
29 | public static final 1.5.0/docs/api/java/lang/String.html">String SYSTEM_EMAIL_BOX = ConfigProperties.getProperty("email.from"); |
||
35 | fvelez | 30 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_NEWS = "news"; |
31 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS = "top.flash.news"; |
||
32 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS = "bottom.flash.news"; |
||
92 | jmachado | 33 | public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX = 5; |
34 | public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX = 1; |
||
35 | public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX = 2; |
||
36 | public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT = ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds"); |
||
73 | jmachado | 37 | public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role"); |
42 | fvelez | 38 | |
114 | jmachado | 39 | public static final 1.5.0/docs/api/java/lang/String.html">String STUDENT_ROLE = ConfigProperties.getProperty("role.student"); |
40 | public static final 1.5.0/docs/api/java/lang/String.html">String TEACHER_ROLE = ConfigProperties.getProperty("role.teacher"); |
||
116 | jmachado | 41 | public static final 1.5.0/docs/api/java/math/BigDecimal.html">BigDecimal SIGES_INSTITUTION_CODE = new 1.5.0/docs/api/java/math/BigDecimal.html">BigDecimal(ConfigProperties.getIntProperty("siges.institution.code")); |
114 | jmachado | 42 | |
1 | fvelez | 43 | } |