Subversion Repositories bacoAlunos

Rev

Rev 151 | Rev 157 | 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");
146 jmachado 37
    public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role");
42 fvelez 38
 
151 fvelez 39
    public static final 1.5.0/docs/api/java/lang/String.html">String STUDENT_ROLE = ConfigProperties.getProperty("user.student");
40
    public static final 1.5.0/docs/api/java/lang/String.html">String TEACHER_ROLE = ConfigProperties.getProperty("user.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
 
144 jmachado 43
    public static final long URL_STAT_CHART_EXPIRE_INTERVAL = ConfigProperties.getIntProperty("url.stat.image.expire.interval.time.minutes");
44
    public static final 1.5.0/docs/api/java/lang/String.html">String URL_STAT_CHART_TMP_DIR = ConfigProperties.getProperty("url.stat.tmp.dir");
45
    public static final int URL_STAT_CACHE_SIZE = ConfigProperties.getIntProperty("url.stat.click.cache.size");
46
    public static final long URL_STAT_CACHE_TIMEOUT = ConfigProperties.getIntProperty("url.stat.click.cache.timeout") * 60 * 1000;
47
    public static final List<String> URL_STAT_IGNORE_EXTENSIONS = ConfigProperties.getListValues("url.stat.ignore.extension");
48
    public static final List<String> URL_STAT_IGNORE_PREFIXS = ConfigProperties.getListValues("url.stat.ignore.prefix");
146 jmachado 49
 
50
    public static final 1.5.0/docs/api/java/lang/String.html">String SITE_URL = ConfigProperties.getProperty("site.url");
156 jmachado 51
 
52
    public static final 1.5.0/docs/api/java/lang/String.html">String INTRANET_MESSAGES_PREFIX = "intranet.";
53
 
54
    public static final List<String> ANNOUNCEMENTS_VALIDATOR_ROLES = ConfigProperties.getListValues("announcements.validator.role");
1 fvelez 55
}