Rev 206 | 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; |
||
163 | jmachado | 4 | import pt.estgp.estgweb.domain.UserImpl; |
5 | import pt.estgp.estgweb.domain.User; |
||
1 | fvelez | 6 | |
9 | jmachado | 7 | import java.util.List; |
214 | jmachado | 8 | import java.util.ArrayList; |
116 | jmachado | 9 | import java.math.BigDecimal; |
9 | jmachado | 10 | |
1 | fvelez | 11 | /** |
12 | * @author Jorge Machado |
||
13 | * @date 28/Fev/2008 |
||
14 | * @time 12:51:32 |
||
15 | * @see pt.estgp.estgweb |
||
16 | */ |
||
92 | jmachado | 17 | public class Globals { |
18 | jmachado | 18 | |
92 | jmachado | 19 | |
90 | jmachado | 20 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
92 | jmachado | 21 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE = ConfigProperties.getIntProperty("search.best.fragments.max.fragment.size"); |
22 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS = ConfigProperties.getIntProperty("search.best.fragments.max.fragments"); |
||
23 | |||
90 | jmachado | 24 | public static final 1.5.0/docs/api/java/lang/String.html">String ALL_ROLE = ConfigProperties.getProperty("user.super"); |
18 | jmachado | 25 | public static final 1.5.0/docs/api/java/lang/String.html">String ACTUAL_RELATIVE_PATH = "ACTUAL_RELATIVE_PATH"; |
1 | fvelez | 26 | public static final 1.5.0/docs/api/java/lang/String.html">String ADMIN_ROLE = ConfigProperties.getProperty("user.admin"); |
27 | public static final 1.5.0/docs/api/java/lang/String.html">String SUPER_USER_ROLE = ConfigProperties.getProperty("user.super"); |
||
44 | fvelez | 28 | public static final 1.5.0/docs/api/java/lang/String.html">String USER_SESSION_KEY = "UserSession"; |
9 | jmachado | 29 | public static final List<String> AUTOMATIC_VALIDATION_ROLES = ConfigProperties.getListValues("announcements.automatic.validation.role"); |
18 | jmachado | 30 | public static final 1.5.0/docs/api/java/lang/String.html">String TMP_DIR = ConfigProperties.getProperty("tmp.dir"); |
187 | jmachado | 31 | public static final 1.5.0/docs/api/java/lang/String.html">String DATA_DIR = ConfigProperties.getProperty("data.dir"); |
29 | jmachado | 32 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SERVER_HOST = ConfigProperties.getProperty("email.server"); |
33 | public static final 1.5.0/docs/api/java/lang/String.html">String SYSTEM_EMAIL_BOX = ConfigProperties.getProperty("email.from"); |
||
35 | fvelez | 34 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_NEWS = "news"; |
35 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS = "top.flash.news"; |
||
36 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS = "bottom.flash.news"; |
||
214 | jmachado | 37 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TODO = "todo"; |
38 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_COURSE_UNIT = "courseUnitAnnouncement"; |
||
92 | jmachado | 39 | public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX = 5; |
40 | public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX = 1; |
||
41 | public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX = 2; |
||
42 | public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT = ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds"); |
||
214 | jmachado | 43 | public static final List<String> ANNOUNCEMENT_NOT_STANDARD = ConfigProperties.getListValues("announcements.not.standard"); |
44 | public static final int HOME_MAX_COURSE_UNIT_ANNOUNCEMENTS = 3; |
||
146 | jmachado | 45 | public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role"); |
42 | fvelez | 46 | |
151 | fvelez | 47 | public static final 1.5.0/docs/api/java/lang/String.html">String STUDENT_ROLE = ConfigProperties.getProperty("user.student"); |
48 | public static final 1.5.0/docs/api/java/lang/String.html">String TEACHER_ROLE = ConfigProperties.getProperty("user.teacher"); |
||
163 | jmachado | 49 | |
214 | jmachado | 50 | public static final 1.5.0/docs/api/java/lang/String.html">String COURSE_COORDINATOR_ROLE = ConfigProperties.getProperty("user.courseCoordinator"); |
51 | public static final 1.5.0/docs/api/java/lang/String.html">String COURSE_DIRECTOR_ROLE = ConfigProperties.getProperty("user.courseDirector"); |
||
52 | |||
53 | |||
54 | public static final 1.5.0/docs/api/java/lang/String.html">String BLOG_TYPE_COURSE_UNIT = ConfigProperties.getProperty("blog.type.courseunit"); |
||
55 | |||
163 | jmachado | 56 | /*SIGES WEB SERVICES*/ |
116 | jmachado | 57 | 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")); |
163 | jmachado | 58 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_WEBSERVICE_WSDL = ConfigProperties.getProperty("ws.siges.wsdl"); |
59 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_WEBSERVICE_TARGET_NAMESPACE = ConfigProperties.getProperty("ws.siges.target.namespace"); |
||
114 | jmachado | 60 | |
163 | jmachado | 61 | |
62 | |||
144 | jmachado | 63 | public static final long URL_STAT_CHART_EXPIRE_INTERVAL = ConfigProperties.getIntProperty("url.stat.image.expire.interval.time.minutes"); |
64 | public static final 1.5.0/docs/api/java/lang/String.html">String URL_STAT_CHART_TMP_DIR = ConfigProperties.getProperty("url.stat.tmp.dir"); |
||
65 | public static final int URL_STAT_CACHE_SIZE = ConfigProperties.getIntProperty("url.stat.click.cache.size"); |
||
66 | public static final long URL_STAT_CACHE_TIMEOUT = ConfigProperties.getIntProperty("url.stat.click.cache.timeout") * 60 * 1000; |
||
67 | public static final List<String> URL_STAT_IGNORE_EXTENSIONS = ConfigProperties.getListValues("url.stat.ignore.extension"); |
||
68 | public static final List<String> URL_STAT_IGNORE_PREFIXS = ConfigProperties.getListValues("url.stat.ignore.prefix"); |
||
146 | jmachado | 69 | |
181 | jmachado | 70 | public static final List<String> FILTER_IGNORE_EXTENSIONS = ConfigProperties.getListValues("filter.ignore.extension"); |
182 | jmachado | 71 | public static final List<String> FILTER_IGNORE_PREFIXES = ConfigProperties.getListValues("filter.ignore.prefix"); |
181 | jmachado | 72 | |
146 | jmachado | 73 | public static final 1.5.0/docs/api/java/lang/String.html">String SITE_URL = ConfigProperties.getProperty("site.url"); |
156 | jmachado | 74 | |
75 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_MESSAGES_PREFIX = "intranet."; |
||
76 | |||
77 | public static final List<String> ANNOUNCEMENTS_VALIDATOR_ROLES = ConfigProperties.getListValues("announcements.validator.role"); |
||
157 | jmachado | 78 | |
79 | public static final 1.5.0/docs/api/java/lang/String.html">String POP_SERVER = ConfigProperties.getProperty("pop.server"); |
||
80 | public static final int POP_MAX_MESSAGES = ConfigProperties.getIntProperty("pop.max.messages"); |
||
81 | public static final 1.5.0/docs/api/java/lang/String.html">String POP_WEB_INTERFACE = ConfigProperties.getProperty("pop.web.interface"); |
||
159 | jmachado | 82 | public static final boolean POP_CONTAINER_USAGE = ConfigProperties.getBooleanProperty("pop.container.use"); |
83 | public static final int POP_FRAGMENT_TEXT_SIZE = ConfigProperties.getIntProperty("pop.fragment.text.size"); |
||
162 | jmachado | 84 | public static final int POP_REFRESH_TIMEOUT_MILISECONDS = ConfigProperties.getIntProperty("pop.refresh.timeout.minutes") * 1000 * 60; |
163 | jmachado | 85 | public static final boolean POP_USE_DEFAULT_SERVER = ConfigProperties.getBooleanProperty("pop.use.default.server"); |
86 | public static final boolean POP_USE_USERNAME_AND_PASSWORD_FIRST_AUTH = ConfigProperties.getBooleanProperty("pop.use.username.and.password.first.authentication"); |
||
161 | jmachado | 87 | |
163 | jmachado | 88 | |
89 | public static final int REMINDER_TEXT_SUMMARY_SIZE = ConfigProperties.getIntProperty("reminders.text.summary.size"); |
||
90 | |||
168 | fvelez | 91 | public static final long MAX_BIGMAGE_FILE_SIZE_KBYTES = 500; |
92 | public static final long MAX_SMALLIMAGE_FILE_SIZE_KBYTES = 500; |
||
178 | jmachado | 93 | public static final long MAX_BIGMAGE_FILE_SIZE_BYTES = MAX_BIGMAGE_FILE_SIZE_KBYTES * 1024; |
94 | public static final long MAX_SMALLIMAGE_FILE_SIZE_BYTES = MAX_SMALLIMAGE_FILE_SIZE_KBYTES * 1024; |
||
168 | fvelez | 95 | |
206 | jmachado | 96 | |
97 | //CourseUnits |
||
98 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFirstYearFormat = ConfigProperties.getProperty("importFirstYearFormat"); |
||
99 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importSecondYearFormat = ConfigProperties.getProperty("importSecondYearFormat"); |
||
100 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFinalFormat = ConfigProperties.getProperty("importFinalFormat"); |
||
101 | |||
214 | jmachado | 102 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFirstYearFormatIntranet = ConfigProperties.getProperty("importFirstYearFormatIntranet"); |
103 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importSecondYearFormatIntranet = ConfigProperties.getProperty("importSecondYearFormatIntranet"); |
||
104 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFinalFormatIntranet = ConfigProperties.getProperty("importFinalFormatIntranet"); |
||
206 | jmachado | 105 | |
214 | jmachado | 106 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SEMESTRE_S1 = ConfigProperties.getProperty("intranet.semestre.S1"); |
107 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SEMESTRE_S2 = ConfigProperties.getProperty("intranet.semestre.S2"); |
||
108 | |||
109 | |||
110 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SETUP_FILE = ConfigProperties.getProperty("intranet.setup.file"); |
||
111 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_USERS_SETUP_FILE_NAME = ConfigProperties.getProperty("intranet.setup.users.filename"); |
||
112 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SETUP_FILE_NAME = ConfigProperties.getProperty("intranet.setup.filename"); |
||
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
1 | fvelez | 118 | } |