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