Rev 237 | Rev 248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 237 | Rev 244 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package pt.estgp.estgweb; |
1 | package pt.estgp.estgweb; |
2 | 2 | ||
3 | import pt.estgp.estgweb.utils.ConfigProperties; |
3 | import pt.estgp.estgweb.utils.ConfigProperties; |
4 | import pt.estgp.estgweb.domain.UserImpl; |
- | |
5 | import pt.estgp.estgweb.domain.User; |
- | |
6 | 4 | ||
7 | import java.util.List; |
5 | import java.util.List; |
8 | import java.util.ArrayList; |
- | |
9 | import java.math.BigDecimal; |
6 | import java.math.BigDecimal; |
10 | 7 | ||
11 | /** |
8 | /** |
12 | * @author Jorge Machado |
9 | * @author Jorge Machado |
13 | * @date 28/Fev/2008 |
10 | * @date 28/Fev/2008 |
Line 15... | Line 12... | ||
15 | * @see pt.estgp.estgweb |
12 | * @see pt.estgp.estgweb |
16 | */ |
13 | */ |
17 | public class Globals { |
14 | public class Globals { |
18 | 15 | ||
19 | 16 | ||
- | 17 | public static 1.5.0/docs/api/java/lang/String.html">String CLASSES_ABSOLUTE_PATH; |
|
- | 18 | ||
- | 19 | static |
|
- | 20 | { |
|
- | 21 | CLASSES_ABSOLUTE_PATH = Globals.class.getProtectionDomain().getCodeSource().getLocation().toString().replace("%20"," "); |
|
- | 22 | if(CLASSES_ABSOLUTE_PATH.endsWith("Globals.class")) CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0, CLASSES_ABSOLUTE_PATH.lastIndexOf("/")) + "/../../../"; |
|
- | 23 | if(CLASSES_ABSOLUTE_PATH.endsWith(".jar")) CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0, CLASSES_ABSOLUTE_PATH.lastIndexOf("/")) + "/../classes/"; |
|
- | 24 | if(CLASSES_ABSOLUTE_PATH.endsWith("/")) |
|
- | 25 | CLASSES_ABSOLUTE_PATH = CLASSES_ABSOLUTE_PATH.substring(0,CLASSES_ABSOLUTE_PATH.length()-1); |
|
- | 26 | } |
|
20 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_CONTENTS = ConfigProperties.getProperty("intranet.contents.dir"); |
27 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_CONTENTS = ConfigProperties.getProperty("intranet.contents.dir"); |
21 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_GRADES = ConfigProperties.getProperty("intranet.grades.dir"); |
28 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_GRADES = ConfigProperties.getProperty("intranet.grades.dir"); |
22 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_PRESENCES = ConfigProperties.getProperty("intranet.presences.dir"); |
29 | public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_PRESENCES = ConfigProperties.getProperty("intranet.presences.dir"); |
23 | 30 | ||
24 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
31 | public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results"); |
Line 148... | Line 155... | ||
148 | public static final boolean MODULE_STATUS_PROFILE = ConfigProperties.getBooleanProperty("module.profile"); |
155 | public static final boolean MODULE_STATUS_PROFILE = ConfigProperties.getBooleanProperty("module.profile"); |
149 | public static final boolean MODULE_STATUS_COURSEUNITS = ConfigProperties.getBooleanProperty("module.courseunits"); |
156 | public static final boolean MODULE_STATUS_COURSEUNITS = ConfigProperties.getBooleanProperty("module.courseunits"); |
150 | public static final boolean MODULE_STATUS_SMS = ConfigProperties.getBooleanProperty("module.sms"); |
157 | public static final boolean MODULE_STATUS_SMS = ConfigProperties.getBooleanProperty("module.sms"); |
151 | 158 | ||
152 | 159 | ||
- | 160 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_XSD_PATH = "/template/xsd"; |
|
153 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_EMAIL_PATH = "/template/email"; |
161 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_EMAIL_PATH = "/template/email"; |
154 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_ASSIGNEMENT_PATH = "/template/assignement"; |
162 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_ASSIGNEMENT_PATH = "/template/assignement"; |
155 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_PATH = "/template/sms"; |
163 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_PATH = "/template/sms"; |
156 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_COURSEUNIT_ANNOUNCMENT = TEMPLATE_SMS_PATH + "/CourseUnit.txt"; |
164 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_COURSEUNIT_ANNOUNCMENT = TEMPLATE_SMS_PATH + "/CourseUnit.txt"; |
157 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_NEW_GRADES = TEMPLATE_SMS_PATH + "/GradesUnit.txt"; |
165 | public static final 1.5.0/docs/api/java/lang/String.html">String TEMPLATE_SMS_NEW_GRADES = TEMPLATE_SMS_PATH + "/GradesUnit.txt"; |