Rev 765 | Rev 853 | 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; |
||
368 | jmachado | 4 | import pt.estgp.estgweb.services.directories.DirectoryService; |
5 | import pt.estgp.estgweb.domain.DirectoryImpl; |
||
1 | fvelez | 6 | |
9 | jmachado | 7 | import java.util.List; |
381 | jmachado | 8 | import java.util.Map; |
9 | import java.util.HashMap; |
||
116 | jmachado | 10 | import java.math.BigDecimal; |
9 | jmachado | 11 | |
1 | fvelez | 12 | /** |
13 | * @author Jorge Machado |
||
14 | * @date 28/Fev/2008 |
||
15 | * @time 12:51:32 |
||
16 | * @see pt.estgp.estgweb |
||
17 | */ |
||
92 | jmachado | 18 | public class Globals { |
18 | jmachado | 19 | |
92 | jmachado | 20 | |
244 | jmachado | 21 | public static 1.5.0/docs/api/java/lang/String.html">String CLASSES_ABSOLUTE_PATH; |
22 | |||
23 | static |
||
24 | { |
||
25 | CLASSES_ABSOLUTE_PATH = Globals.class.getProtectionDomain().getCodeSource().getLocation().toString().replace("%20"," "); |
||
26 | if(CLASSES_ABSOLUTE_PATH.endsWith("Globals.class")) CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0, CLASSES_ABSOLUTE_PATH.lastIndexOf("/")) + "/../../../"; |
||
27 | if(CLASSES_ABSOLUTE_PATH.endsWith(".jar")) CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0, CLASSES_ABSOLUTE_PATH.lastIndexOf("/")) + "/../classes/"; |
||
28 | if(CLASSES_ABSOLUTE_PATH.endsWith("/")) |
||
29 | CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0,CLASSES_ABSOLUTE_PATH.length()-1); |
||
30 | } |
||
368 | jmachado | 31 | |
381 | jmachado | 32 | //place, List |
33 | public static Map<String,List<DirectoryImpl>> DIRECTORIES = new HashMap<String,List<DirectoryImpl>>(); |
||
368 | jmachado | 34 | |
381 | jmachado | 35 | |
36 | |||
37 | public static List<DirectoryImpl> getDirectories(1.5.0/docs/api/java/lang/String.html">String place) |
||
368 | jmachado | 38 | { |
381 | jmachado | 39 | |
40 | List<DirectoryImpl> directories = DIRECTORIES.get(place); |
||
41 | if(directories != null) |
||
42 | return directories; |
||
43 | else |
||
44 | { |
||
45 | DirectoryService directoryService = new DirectoryService(); |
||
46 | directories = directoryService.loadDirectories(CLASSES_ABSOLUTE_PATH,place); |
||
47 | DIRECTORIES.put(place,directories); |
||
48 | return directories; |
||
49 | } |
||
368 | jmachado | 50 | } |
51 | |||
52 | |||
430 | jmachado | 53 | |
54 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_IMPRESSAO_SERVICO_API = ConfigProperties.getProperty("impressao.servicos.api"); |
||
55 | public static final boolean INTRANET_IMPRESSAO_SERVICO_AUTH = ConfigProperties.getBooleanProperty("impressao.servicos.auth"); |
||
56 | |||
57 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_IMPRESSAO_SERVICO_AUTH_USER_PROPERTY = ConfigProperties.getProperty("impressao.servicos.auth.user.property"); |
||
58 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_IMPRESSAO_SERVICO_AUTH_PASS_PROPERTY = ConfigProperties.getProperty("impressao.servicos.auth.pass.property"); |
||
59 | public static 1.5.0/docs/api/java/lang/String.html">String INTRANET_IMPRESSAO_SERVICO_AUTH_USER = ConfigProperties.getProperty("impressao.servicos.auth.user"); |
||
60 | public static 1.5.0/docs/api/java/lang/String.html">String INTRANET_IMPRESSAO_SERVICO_AUTH_PASS = ConfigProperties.getProperty("impressao.servicos.auth.pass"); |
||
61 | |||
62 | static |
||
63 | { |
||
64 | if(INTRANET_IMPRESSAO_SERVICO_AUTH) |
||
65 | { |
||
66 | if(INTRANET_IMPRESSAO_SERVICO_AUTH_USER_PROPERTY != null && INTRANET_IMPRESSAO_SERVICO_AUTH_USER_PROPERTY.length() > 0) |
||
67 | { |
||
68 | INTRANET_IMPRESSAO_SERVICO_AUTH_USER = ConfigProperties.getProperty(INTRANET_IMPRESSAO_SERVICO_AUTH_USER_PROPERTY); |
||
69 | INTRANET_IMPRESSAO_SERVICO_AUTH_PASS = ConfigProperties.getProperty(INTRANET_IMPRESSAO_SERVICO_AUTH_PASS_PROPERTY); |
||
70 | } |
||
71 | else |
||
72 | { |
||
73 | INTRANET_IMPRESSAO_SERVICO_AUTH_USER = ConfigProperties.getProperty("impressao.servicos.auth.user"); |
||
74 | INTRANET_IMPRESSAO_SERVICO_AUTH_PASS = ConfigProperties.getProperty("impressao.servicos.auth.pass"); |
||
75 | } |
||
76 | } |
||
77 | |||
78 | } |
||
79 | |||
542 | jmachado | 80 | |
81 | public static final boolean USE_TOP_FLASH_NEWS = ConfigProperties.getBooleanProperty("announcements.use.top.flash.news"); |
||
82 | |||
558 | jmachado | 83 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_ROOT = ""; //e' mesmo assim |
223 | jmachado | 84 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_CONTENTS = ConfigProperties.getProperty("intranet.contents.dir"); |
85 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_GRADES = ConfigProperties.getProperty("intranet.grades.dir"); |
||
86 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_PRESENCES = ConfigProperties.getProperty("intranet.presences.dir"); |
||
87 | |||
90 | jmachado | 88 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
92 | jmachado | 89 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE = ConfigProperties.getIntProperty("search.best.fragments.max.fragment.size"); |
90 | public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS = ConfigProperties.getIntProperty("search.best.fragments.max.fragments"); |
||
91 | |||
90 | jmachado | 92 | public static final 1.5.0/docs/api/java/lang/String.html">String ALL_ROLE = ConfigProperties.getProperty("user.super"); |
344 | jmachado | 93 | public static final 1.5.0/docs/api/java/lang/String.html">String SERVICES_PROGRAMS_ROLE = ConfigProperties.getProperty("user.servicesPrograms"); |
508 | jmachado | 94 | public static final List<String> COURSE_COMMISSION_PROGRAMS_ROLES = ConfigProperties.getListValuesByPrefix("courseValidateProgram"); |
344 | jmachado | 95 | |
18 | jmachado | 96 | public static final 1.5.0/docs/api/java/lang/String.html">String ACTUAL_RELATIVE_PATH = "ACTUAL_RELATIVE_PATH"; |
1 | fvelez | 97 | public static final 1.5.0/docs/api/java/lang/String.html">String ADMIN_ROLE = ConfigProperties.getProperty("user.admin"); |
98 | public static final 1.5.0/docs/api/java/lang/String.html">String SUPER_USER_ROLE = ConfigProperties.getProperty("user.super"); |
||
215 | jmachado | 99 | public static final 1.5.0/docs/api/java/lang/String.html">String MANAGED_IDENTIFIER_MANAGERS_ROLE = ConfigProperties.getProperty("user.identifiersManagers"); |
44 | fvelez | 100 | public static final 1.5.0/docs/api/java/lang/String.html">String USER_SESSION_KEY = "UserSession"; |
9 | jmachado | 101 | public static final List<String> AUTOMATIC_VALIDATION_ROLES = ConfigProperties.getListValues("announcements.automatic.validation.role"); |
18 | jmachado | 102 | public static final 1.5.0/docs/api/java/lang/String.html">String TMP_DIR = ConfigProperties.getProperty("tmp.dir"); |
187 | jmachado | 103 | public static final 1.5.0/docs/api/java/lang/String.html">String DATA_DIR = ConfigProperties.getProperty("data.dir"); |
29 | jmachado | 104 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SERVER_HOST = ConfigProperties.getProperty("email.server"); |
105 | public static final 1.5.0/docs/api/java/lang/String.html">String SYSTEM_EMAIL_BOX = ConfigProperties.getProperty("email.from"); |
||
35 | fvelez | 106 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_NEWS = "news"; |
107 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS = "top.flash.news"; |
||
108 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS = "bottom.flash.news"; |
||
214 | jmachado | 109 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_TODO = "todo"; |
765 | jmachado | 110 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_POPUP = "popup"; |
214 | jmachado | 111 | public static final 1.5.0/docs/api/java/lang/String.html">String ANNOUNCEMENT_TYPE_COURSE_UNIT = "courseUnitAnnouncement"; |
92 | jmachado | 112 | public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX = 5; |
113 | public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX = 1; |
||
114 | public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX = 2; |
||
115 | public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT = ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds"); |
||
214 | jmachado | 116 | public static final List<String> ANNOUNCEMENT_NOT_STANDARD = ConfigProperties.getListValues("announcements.not.standard"); |
420 | jmachado | 117 | |
146 | jmachado | 118 | public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role"); |
42 | fvelez | 119 | |
151 | fvelez | 120 | public static final 1.5.0/docs/api/java/lang/String.html">String STUDENT_ROLE = ConfigProperties.getProperty("user.student"); |
121 | public static final 1.5.0/docs/api/java/lang/String.html">String TEACHER_ROLE = ConfigProperties.getProperty("user.teacher"); |
||
221 | jmachado | 122 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_LOCAL_SUFFIX = ConfigProperties.getProperty("email.local.suffix"); |
163 | jmachado | 123 | |
221 | jmachado | 124 | |
214 | jmachado | 125 | public static final 1.5.0/docs/api/java/lang/String.html">String COURSE_COORDINATOR_ROLE = ConfigProperties.getProperty("user.courseCoordinator"); |
126 | public static final 1.5.0/docs/api/java/lang/String.html">String COURSE_DIRECTOR_ROLE = ConfigProperties.getProperty("user.courseDirector"); |
||
127 | |||
128 | |||
129 | public static final 1.5.0/docs/api/java/lang/String.html">String BLOG_TYPE_COURSE_UNIT = ConfigProperties.getProperty("blog.type.courseunit"); |
||
130 | |||
506 | jmachado | 131 | //LEGADO PARA REMOVER |
376 | jmachado | 132 | public static final List<String> AREAS = ConfigProperties.getListValues("area"); |
506 | jmachado | 133 | |
134 | public static final List<String> DEPARTAMENTOS = ConfigProperties.getListValues("departamento"); |
||
376 | jmachado | 135 | |
163 | jmachado | 136 | /*SIGES WEB SERVICES*/ |
249 | jmachado | 137 | public static final 1.5.0/docs/api/java/math/BigDecimal.html">BigDecimal NATIONAL_INSTITUTION_CODE = new 1.5.0/docs/api/java/math/BigDecimal.html">BigDecimal(ConfigProperties.getIntProperty("national.institution.code")); |
116 | jmachado | 138 | 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 | 139 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_WEBSERVICE_WSDL = ConfigProperties.getProperty("ws.siges.wsdl"); |
140 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_WEBSERVICE_TARGET_NAMESPACE = ConfigProperties.getProperty("ws.siges.target.namespace"); |
||
219 | jmachado | 141 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_WEBSERVICE_SECRET = ConfigProperties.getProperty("ws.siges.secret"); |
114 | jmachado | 142 | |
163 | jmachado | 143 | |
144 | |||
144 | jmachado | 145 | public static final long URL_STAT_CHART_EXPIRE_INTERVAL = ConfigProperties.getIntProperty("url.stat.image.expire.interval.time.minutes"); |
146 | public static final 1.5.0/docs/api/java/lang/String.html">String URL_STAT_CHART_TMP_DIR = ConfigProperties.getProperty("url.stat.tmp.dir"); |
||
147 | public static final int URL_STAT_CACHE_SIZE = ConfigProperties.getIntProperty("url.stat.click.cache.size"); |
||
148 | public static final long URL_STAT_CACHE_TIMEOUT = ConfigProperties.getIntProperty("url.stat.click.cache.timeout") * 60 * 1000; |
||
149 | public static final List<String> URL_STAT_IGNORE_EXTENSIONS = ConfigProperties.getListValues("url.stat.ignore.extension"); |
||
150 | public static final List<String> URL_STAT_IGNORE_PREFIXS = ConfigProperties.getListValues("url.stat.ignore.prefix"); |
||
146 | jmachado | 151 | |
396 | jmachado | 152 | public static final List<String> FILTER_TOP_IMAGE_IGNORE_EXTENSIONS = ConfigProperties.getListValues("filter.top.image.ignore.extension"); |
181 | jmachado | 153 | public static final List<String> FILTER_IGNORE_EXTENSIONS = ConfigProperties.getListValues("filter.ignore.extension"); |
182 | jmachado | 154 | public static final List<String> FILTER_IGNORE_PREFIXES = ConfigProperties.getListValues("filter.ignore.prefix"); |
181 | jmachado | 155 | |
538 | jmachado | 156 | public static final List<String> TOP_IMAGE_FILTER_LINKS = ConfigProperties.getListValuesOrderedByPropertyName("top.image.start.with"); |
157 | public static final List<String> TOP_IMAGE_FILTER_IMAGES_URL = ConfigProperties.getListValuesOrderedByPropertyName("top.image.url"); |
||
279 | jmachado | 158 | |
159 | |||
146 | jmachado | 160 | public static final 1.5.0/docs/api/java/lang/String.html">String SITE_URL = ConfigProperties.getProperty("site.url"); |
156 | jmachado | 161 | |
162 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_MESSAGES_PREFIX = "intranet."; |
||
163 | |||
164 | public static final List<String> ANNOUNCEMENTS_VALIDATOR_ROLES = ConfigProperties.getListValues("announcements.validator.role"); |
||
157 | jmachado | 165 | |
166 | public static final 1.5.0/docs/api/java/lang/String.html">String POP_SERVER = ConfigProperties.getProperty("pop.server"); |
||
167 | public static final int POP_MAX_MESSAGES = ConfigProperties.getIntProperty("pop.max.messages"); |
||
168 | public static final 1.5.0/docs/api/java/lang/String.html">String POP_WEB_INTERFACE = ConfigProperties.getProperty("pop.web.interface"); |
||
159 | jmachado | 169 | public static final boolean POP_CONTAINER_USAGE = ConfigProperties.getBooleanProperty("pop.container.use"); |
170 | public static final int POP_FRAGMENT_TEXT_SIZE = ConfigProperties.getIntProperty("pop.fragment.text.size"); |
||
162 | jmachado | 171 | public static final int POP_REFRESH_TIMEOUT_MILISECONDS = ConfigProperties.getIntProperty("pop.refresh.timeout.minutes") * 1000 * 60; |
163 | jmachado | 172 | public static final boolean POP_USE_DEFAULT_SERVER = ConfigProperties.getBooleanProperty("pop.use.default.server"); |
173 | public static final boolean POP_USE_USERNAME_AND_PASSWORD_FIRST_AUTH = ConfigProperties.getBooleanProperty("pop.use.username.and.password.first.authentication"); |
||
161 | jmachado | 174 | |
163 | jmachado | 175 | |
176 | public static final int REMINDER_TEXT_SUMMARY_SIZE = ConfigProperties.getIntProperty("reminders.text.summary.size"); |
||
177 | |||
406 | jmachado | 178 | public static final int MAX_FILE_UPOLOAD_SIZE_MBYTES = ConfigProperties.getIntProperty("max.file.size.upload.mbytes"); |
168 | fvelez | 179 | public static final long MAX_BIGMAGE_FILE_SIZE_KBYTES = 500; |
180 | public static final long MAX_SMALLIMAGE_FILE_SIZE_KBYTES = 500; |
||
178 | jmachado | 181 | public static final long MAX_BIGMAGE_FILE_SIZE_BYTES = MAX_BIGMAGE_FILE_SIZE_KBYTES * 1024; |
182 | public static final long MAX_SMALLIMAGE_FILE_SIZE_BYTES = MAX_SMALLIMAGE_FILE_SIZE_KBYTES * 1024; |
||
168 | fvelez | 183 | |
206 | jmachado | 184 | |
185 | //CourseUnits |
||
186 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFirstYearFormat = ConfigProperties.getProperty("importFirstYearFormat"); |
||
187 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importSecondYearFormat = ConfigProperties.getProperty("importSecondYearFormat"); |
||
188 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFinalFormat = ConfigProperties.getProperty("importFinalFormat"); |
||
189 | |||
214 | jmachado | 190 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFirstYearFormatIntranet = ConfigProperties.getProperty("importFirstYearFormatIntranet"); |
191 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importSecondYearFormatIntranet = ConfigProperties.getProperty("importSecondYearFormatIntranet"); |
||
192 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFinalFormatIntranet = ConfigProperties.getProperty("importFinalFormatIntranet"); |
||
206 | jmachado | 193 | |
726 | jmachado | 194 | public static final 1.5.0/docs/api/java/lang/String.html">String SIGES_importFinalFormatProgram = ConfigProperties.getProperty("importFinalFormatProgram"); |
195 | |||
214 | jmachado | 196 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SEMESTRE_S1 = ConfigProperties.getProperty("intranet.semestre.S1"); |
197 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SEMESTRE_S2 = ConfigProperties.getProperty("intranet.semestre.S2"); |
||
728 | jmachado | 198 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SEMESTRE_A = ConfigProperties.getProperty("intranet.semestre.A"); |
214 | jmachado | 199 | |
200 | |||
201 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SETUP_FILE = ConfigProperties.getProperty("intranet.setup.file"); |
||
202 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_USERS_SETUP_FILE_NAME = ConfigProperties.getProperty("intranet.setup.users.filename"); |
||
203 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_SETUP_FILE_NAME = ConfigProperties.getProperty("intranet.setup.filename"); |
||
204 | |||
205 | |||
420 | jmachado | 206 | public static final int COURSEUNIT_ASSIGNEMENT_NUMBER_DAYS_REMINDER_AFTER_EXPIRED = ConfigProperties.getIntProperty("work.reminder.until.days.after.expired"); |
207 | public static final int HOME_MAX_COURSE_UNIT_ANNOUNCEMENTS = ConfigProperties.getIntProperty("home.courseunit.last.anouncements.max"); |
||
208 | public static final int HOME_COURSE_UNIT_ANNOUNCEMENTS_EXPIRED_DAYS = ConfigProperties.getIntProperty("home.courseunit.last.anouncements.expired.in.days"); |
||
215 | jmachado | 209 | public static final 1.5.0/docs/api/java/lang/String.html">String COURSEUNIT_ASSIGNEMENT_TYPE_NO_FILE = "nofile"; |
214 | jmachado | 210 | |
215 | jmachado | 211 | public static final 1.5.0/docs/api/java/lang/String.html">String PROFILE_SCHOLAR_DEGREE_SUPERIOR = "superior"; |
212 | public static final 1.5.0/docs/api/java/lang/String.html">String PROFILE_DEGREE_NOTSET = "notset"; |
||
214 | jmachado | 213 | |
214 | |||
215 | jmachado | 215 | |
227 | jmachado | 216 | public static final boolean SMS_COURSEUNIT_ANNOUNCEMENT = ConfigProperties.getBooleanProperty("sms.courseunit.announcement"); |
217 | public static final boolean SMS_NEW_GRADES = ConfigProperties.getBooleanProperty("sms.new.grades"); |
||
236 | jmachado | 218 | public static final boolean EMAIL_NEW_GRADES = ConfigProperties.getBooleanProperty("email.new.grades"); |
358 | jmachado | 219 | public static final boolean EMAIL_SUMMARIES = ConfigProperties.getBooleanProperty("email.summaries"); |
237 | jmachado | 220 | public static final boolean EMAIL_COURSEUNIT_ANNOUNCEMENTS = ConfigProperties.getBooleanProperty("email.courseunit.announcements"); |
363 | jmachado | 221 | public static final boolean EMAIL_COURSEUNIT_BLOGS = ConfigProperties.getBooleanProperty("email.courseunit.blogs"); |
215 | jmachado | 222 | |
227 | jmachado | 223 | public static final boolean SMS_COURSEUNIT_ANNOUNCEMENT_ONLY_PROFS = ConfigProperties.getBooleanProperty("sms.courseunit.announcement.only.profs"); |
224 | |||
300 | jmachado | 225 | public static final int JOB_DEAMON_SLEEP_SECONDS=ConfigProperties.getIntProperty("job.deamon.sleep.seconds"); |
227 | jmachado | 226 | |
215 | jmachado | 227 | public static final 1.5.0/docs/api/java/lang/String.html">String MODULE_STATUS_PREFIX = "module."; |
228 | public static final boolean MODULE_STATUS_ANNOUNCEMENTS = ConfigProperties.getBooleanProperty("module.announcements"); |
||
229 | public static final boolean MODULE_STATUS_MANAGE_IDENTIFIERS = ConfigProperties.getBooleanProperty("module.manageidentifiers"); |
||
230 | public static final boolean MODULE_STATUS_BLOGS = ConfigProperties.getBooleanProperty("module.blogs"); |
||
231 | public static final boolean MODULE_STATUS_URLSTAT = ConfigProperties.getBooleanProperty("module.urlstat"); |
||
232 | public static final boolean MODULE_STATUS_SEARCH = ConfigProperties.getBooleanProperty("module.search"); |
||
233 | public static final boolean MODULE_STATUS_SEARCH_GOOGLE = ConfigProperties.getBooleanProperty("module.searchGoogle"); |
||
234 | public static final boolean MODULE_STATUS_TODOS = ConfigProperties.getBooleanProperty("module.todos"); |
||
235 | public static final boolean MODULE_STATUS_REMINDERS = ConfigProperties.getBooleanProperty("module.reminders"); |
||
236 | public static final boolean MODULE_STATUS_INTRANET = ConfigProperties.getBooleanProperty("module.intranet"); |
||
237 | public static final boolean MODULE_STATUS_PROFILE = ConfigProperties.getBooleanProperty("module.profile"); |
||
238 | public static final boolean MODULE_STATUS_COURSEUNITS = ConfigProperties.getBooleanProperty("module.courseunits"); |
||
227 | jmachado | 239 | public static final boolean MODULE_STATUS_SMS = ConfigProperties.getBooleanProperty("module.sms"); |
808 | jmachado | 240 | // Duarte Santos |
671 | jmachado | 241 | public static final boolean MODULE_STATUS_SURVEYS = ConfigProperties.getBooleanProperty("module.surveys"); |
242 | // Duarte Santos |
||
808 | jmachado | 243 | |
244 | //Filipe Matos |
||
245 | public static final boolean MODULE_STATUS_ASSESSMENTS = ConfigProperties.getBooleanProperty("module.assessments"); |
||
246 | //Filipe Matos |
||
247 | |||
671 | jmachado | 248 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_TYPE_GENERAL = ConfigProperties.getProperty("surveys.type.0"); |
249 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_TYPE_PEDAGOGIC = ConfigProperties.getProperty("surveys.type.1"); |
||
250 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_PEDAGOGIC_STUDENT_COURSEUNIT = ConfigProperties.getProperty("surveys.target.pair.0"); |
||
251 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_PEDAGOGIC_TEACHER_COURSEUNIT = ConfigProperties.getProperty("surveys.target.pair.1"); |
||
252 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_QUESTION_TYPE_RADIO = ConfigProperties.getProperty("surveys.question.type.0"); |
||
253 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_QUESTION_TYPE_CHECK = ConfigProperties.getProperty("surveys.question.type.1"); |
||
254 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_QUESTION_TYPE_MATRIX = ConfigProperties.getProperty("surveys.question.type.2"); |
||
255 | public static final 1.5.0/docs/api/java/lang/String.html">String SURVEY_QUESTION_TYPE_TEXT = ConfigProperties.getProperty("surveys.question.type.3"); |
||
215 | jmachado | 256 | |
808 | jmachado | 257 | //Filipe Matos |
258 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_TYPE_EVALUATION = ConfigProperties.getProperty("assessments.type.0"); |
||
259 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_TYPE_SELFEVALUATION = ConfigProperties.getProperty("assessments.type.1"); |
||
260 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_QUESTION_TYPE_RADIO = ConfigProperties.getProperty("assessments.question.type.0"); |
||
261 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_QUESTION_TYPE_CHECK = ConfigProperties.getProperty("assessments.question.type.1"); |
||
262 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_QUESTION_TYPE_MATRIX = ConfigProperties.getProperty("assessments.question.type.2"); |
||
263 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_QUESTION_TYPE_TEXT = ConfigProperties.getProperty("assessments.question.type.3"); |
||
264 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_QUESTION_TYPE_PRACTICAL = ConfigProperties.getProperty("assessments.question.type.4"); |
||
265 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_EVALUATION_TIME_CONTINUOUS = ConfigProperties.getProperty("assessments.evaluation.time.0"); |
||
266 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_EVALUATION_TIME_FIRSTEXAM = ConfigProperties.getProperty("assessments.evaluation.time.1"); |
||
267 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_EVALUATION_TIME_SECONDEXAM = ConfigProperties.getProperty("assessments.evaluation.time.2"); |
||
268 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_EVALUATION_TIME_THIRDEXAM = ConfigProperties.getProperty("assessments.evaluation.time.3"); |
||
269 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_ANSWER_CORRECT = ConfigProperties.getProperty("assessment.answer.correct"); |
||
270 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_ANSWER_INCORRECT = ConfigProperties.getProperty("assessment.answer.incorrect"); |
||
271 | public static final 1.5.0/docs/api/java/lang/String.html">String ASSESSMENT_ANSWER_IMCOMPLETE = ConfigProperties.getProperty("assessment.answer.imcomplete"); |
||
272 | // |
||
273 | |||
248 | jmachado | 274 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_COURSE_XSL_PATH = "/template/xsd/fragmentoCurso.xsl"; |
244 | jmachado | 275 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_XSD_PATH = "/template/xsd"; |
236 | jmachado | 276 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_EMAIL_PATH = "/template/email"; |
227 | jmachado | 277 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_ASSIGNEMENT_PATH = "/template/assignement"; |
278 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_PATH = "/template/sms"; |
||
228 | jmachado | 279 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_COURSEUNIT_ANNOUNCMENT = TEMPLATE_SMS_PATH + "/CourseUnit.txt"; |
280 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_NEW_GRADES = TEMPLATE_SMS_PATH + "/GradesUnit.txt"; |
||
281 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_NEW_GRADE = TEMPLATE_SMS_PATH + "/GradeUnit.txt"; |
||
227 | jmachado | 282 | |
237 | jmachado | 283 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SEND_URL_FRIEND_SUBJECT_PT = ConfigProperties.getProperty("email.send.url.friend.subject.pt"); |
284 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SEND_URL_FRIEND_SUBJECT_EN = ConfigProperties.getProperty("email.send.url.friend.subject.en"); |
||
236 | jmachado | 285 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SEND_URL_FRIEND_TEMPLATE_PT = "sendPageFriend_pt.txt"; |
286 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SEND_URL_FRIEND_TEMPLATE_EN = "sendPageFriend_en.txt"; |
||
287 | |||
237 | jmachado | 288 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_ANNOUNCEMENT_SUBJECT_PT = ConfigProperties.getProperty("email.courseunit.announcement.subject.pt"); |
289 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_ANNOUNCEMENT_SUBJECT_EN = ConfigProperties.getProperty("email.courseunit.announcement.subject.en"); |
||
290 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_ANNOUNCEMENT_TEMPLATE_PT = "courseUnitAnnouncement_pt.txt"; |
||
291 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_ANNOUNCEMENT_TEMPLATE_EN = "courseUnitAnnouncement_en.txt"; |
||
292 | |||
512 | jmachado | 293 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_MESSAGE_TEMPLATE_PT = "message_pt.txt"; |
294 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_MESSAGE_TEMPLATE_EN = "message_en.txt"; |
||
295 | |||
419 | jmachado | 296 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_SUBJECT_PT = ConfigProperties.getProperty("email.courseunit.work.subject.pt"); |
297 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_SUBJECT_EN = ConfigProperties.getProperty("email.courseunit.work.subject.en"); |
||
298 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_TEMPLATE_PT = "courseUnitWork_pt.txt"; |
||
299 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_TEMPLATE_EN = "courseUnitWork_en.txt"; |
||
440 | jmachado | 300 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_CHANGE_TEMPLATE_PT = "courseUnitWorkChange_pt.txt"; |
301 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_WORK_CHANGE_TEMPLATE_EN = "courseUnitWorkChange_en.txt"; |
||
419 | jmachado | 302 | |
363 | jmachado | 303 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_BLOGPOST_SUBJECT_PT = ConfigProperties.getProperty("email.courseunit.blogpost.subject.pt"); |
304 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_BLOGPOST_SUBJECT_EN = ConfigProperties.getProperty("email.courseunit.blogpost.subject.en"); |
||
305 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_BLOGPOST_TEMPLATE_PT = "courseUnitBlogPost_pt.txt"; |
||
306 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_COURSEUNIT_BLOGPOST_TEMPLATE_EN = "courseUnitBlogPost_en.txt"; |
||
307 | |||
237 | jmachado | 308 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_NEW_GRADES_SUBJECT_PT = ConfigProperties.getProperty("email.new.grades.subject.pt"); |
309 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_NEW_GRADES_SUBJECT_EN = ConfigProperties.getProperty("email.new.grades.subject.en"); |
||
358 | jmachado | 310 | |
311 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SUMMARY_SUBJECT_PT = ConfigProperties.getProperty("email.summary.subject.pt"); |
||
312 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SUMMARY_SUBJECT_EN = ConfigProperties.getProperty("email.summary.subject.en"); |
||
313 | |||
236 | jmachado | 314 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_NEW_GRADES_TEMPLATE_PT = "newGrades_pt.txt"; |
315 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_NEW_GRADES_TEMPLATE_EN = "newGrades_en.txt"; |
||
316 | |||
751 | jmachado | 317 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDICAO_TEMPLATE_PT = "unidadeEdicao_pt.txt"; |
318 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDICAO_TEMPLATE_EN = "unidadeEdicao_en.txt"; |
||
319 | |||
320 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDITADA_TEMPLATE_PT = "unidadeEditada_pt.txt"; |
||
321 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDITADA_TEMPLATE_EN = "unidadeEditada_en.txt"; |
||
322 | |||
323 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_VALIDADA_TEMPLATE_PT = "unidadeValidada_pt.txt"; |
||
324 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_VALIDADA_TEMPLATE_EN = "unidadeValidada_en.txt"; |
||
325 | |||
326 | |||
327 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDICAO_SUBJECT_PT = "email.unidade.edicao.subject.pt"; |
||
328 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDICAO_SUBJECT_EN = "email.unidade.edicao.subject.en"; |
||
329 | |||
330 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDITADA_SUBJECT_PT = "email.unidade.editada.subject.pt"; |
||
331 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_EDITADA_SUBJECT_EN = "email.unidade.editada.subject.en"; |
||
332 | |||
333 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_VALIDADA_SUBJECT_PT = "email.unidade.validade.subject.pt"; |
||
334 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_UNDADE_VALIDADA_SUBJECT_EN = "email.unidade.validada.subject.en"; |
||
335 | |||
358 | jmachado | 336 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SUMMARY_TEMPLATE_PT = "summary_pt.txt"; |
337 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_SUMMARY_TEMPLATE_EN = "summary_en.txt"; |
||
338 | |||
236 | jmachado | 339 | public static final 1.5.0/docs/api/java/lang/String.html">String EMAIL_GRADE_UNIT_TEMPLATE = "GradeUnit.txt"; |
368 | jmachado | 340 | |
341 | public static final 1.5.0/docs/api/java/lang/String.html">String[] PROXY_EXTENSIONS = ConfigProperties.getProperty("proxy.extensions").split(" "); |
||
1 | fvelez | 342 | } |