Rev 666 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
38 | fvelez | 1 | package pt.estgp.estgweb.web; |
2 | |||
368 | jmachado | 3 | import pt.estgp.estgweb.utils.ConfigProperties; |
4 | |||
38 | fvelez | 5 | /** |
6 | * @author Fabio |
||
7 | * @date 31/Mar/2008 |
||
8 | * @time 11:19:06 |
||
9 | * @see pt.estgp.estgweb.web |
||
10 | */ |
||
11 | public class Globals |
||
12 | { |
||
368 | jmachado | 13 | |
14 | public static final 1.5.0/docs/api/java/lang/String.html">String SITE_URL = ConfigProperties.getProperty("site.url"); |
||
15 | |||
664 | jmachado | 16 | public static final 1.5.0/docs/api/java/lang/String.html">String BACO_SESSION_COOKIE = "JSESSIONID"; |
39 | fvelez | 17 | private static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_MENU_START_LINK_START = "/proxy/"; |
18 | private static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_MENU_START_LINK_END = "/estgp/public/portal"; |
||
249 | jmachado | 19 | private static final 1.5.0/docs/api/java/lang/String.html">String PUBLIC_MENU_START_LINK_END = "/estgp/public"; |
20 | private static final 1.5.0/docs/api/java/lang/String.html">String MENU_START_LINK_END = "/estgp"; |
||
61 | fvelez | 21 | private static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_MENU_START_LINK_END_AA = "/estgweb/aa"; |
22 | private static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_MENU_START_LINK_END_NUCLEO_ENG = "/estgweb/nucleoeng"; |
||
40 | fvelez | 23 | public static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_ROLE_VIEW_STUDENT ="?role=student&menu=menu.alunos"; |
24 | public static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_ROLE_VIEW_FUTURE_STUDENT ="?role=futureStudent&menu=menu.futurosAlunos"; |
||
25 | public static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_ROLE_VIEW_OLD_STUDENT ="?role=oldStudent&menu=menu.antigosAlunos"; |
||
26 | public static final 1.5.0/docs/api/java/lang/String.html">String PORTAL_ROLE_VIEW_TEACHER ="?role=teacher&menu=menu.docentes"; |
||
223 | jmachado | 27 | |
28 | public static final 1.5.0/docs/api/java/lang/String.html">String VISIBLE = "display:;"; |
||
29 | public static final 1.5.0/docs/api/java/lang/String.html">String HIDDEN = "display:none"; |
||
38 | fvelez | 30 | |
40 | fvelez | 31 | |
249 | jmachado | 32 | public static 1.5.0/docs/api/java/lang/String.html">String getStartPublicLink(1.5.0/docs/api/java/lang/String.html">String layout) |
33 | { |
||
34 | return PORTAL_MENU_START_LINK_START + layout + PUBLIC_MENU_START_LINK_END; |
||
35 | } |
||
36 | |||
37 | public static 1.5.0/docs/api/java/lang/String.html">String getStartLink(1.5.0/docs/api/java/lang/String.html">String layout) |
||
38 | { |
||
39 | return PORTAL_MENU_START_LINK_START + layout + MENU_START_LINK_END; |
||
40 | } |
||
41 | |||
39 | fvelez | 42 | public static 1.5.0/docs/api/java/lang/String.html">String getStartLinkPortalMenu(1.5.0/docs/api/java/lang/String.html">String layout) |
43 | { |
||
61 | fvelez | 44 | if(layout.contains("AA")) |
45 | return PORTAL_MENU_START_LINK_START + layout + PORTAL_MENU_START_LINK_END_AA; |
||
46 | else if(layout.contains("NucleoEng")) |
||
47 | return PORTAL_MENU_START_LINK_START + layout + PORTAL_MENU_START_LINK_END_NUCLEO_ENG; |
||
48 | else |
||
49 | return PORTAL_MENU_START_LINK_START + layout + PORTAL_MENU_START_LINK_END; |
||
50 | |||
39 | fvelez | 51 | } |
52 | |||
38 | fvelez | 53 | } |