KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > portlet > user > UserPortletConstants


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.portlet.user;
10
11 /**
12  * @author <a HREF="theute@jboss.org">Thomas Heute</a>
13  * $Revision: 1.5 $
14  */

15 public class UserPortletConstants
16 {
17    
18    public static final String JavaDoc SALT = "14m1r0nm4n";
19    
20    public static final String JavaDoc INFOMESSAGE = "infomessage";
21    public static final String JavaDoc ERRORMESSAGE = "errormessage";
22    
23    // Cookie names
24
public static String JavaDoc CK_USERNAME = "username";
25    public static String JavaDoc CK_PASS = "password";
26    
27    // Default values
28
public static int DEFAULT_USERSPERPAGE = 10;
29    
30    // Status return codes for the login.
31
public static final int LOGIN_STATUS_OK = 0;
32    public static final int LOGIN_STATUS_BAD_PASSWORD = 1;
33    public static final int LOGIN_STATUS_NO_SUCH_USER = 2;
34    public static final int LOGIN_STATUS_USER_DISABLED = 3;
35    public static final int LOGIN_STATUS_INVALID_NAME = 4;
36    public static final int LOGIN_STATUS_UNEXPECTED_ERROR = 5;
37
38    public static final int PERMANENT_USER_MAX_INACTIVE = 60 * 60 * 24 * 5 * 1000; // 5 days in ms
39
public static final int TRANSIENT_USER_MAX_INACTIVE = 60 * 60; // 1 hours in seconds
40

41    public static final String JavaDoc HASH = "hash";
42    public static final String JavaDoc USERID = "userid";
43
44    // Portlet configuration
45

46    public static final String JavaDoc EMAILFROM = "emailFrom";
47    public static final String JavaDoc SUBSCRIPTIONMODE = "subscriptionMode";
48    public static final String JavaDoc SUBSCRIPTIONMODE_AUTOMATIC = "automatic";
49    public static final String JavaDoc SUBSCRIPTIONMODE_EMAILVERIFICATION = "emailVerification";
50    public static final String JavaDoc DEFAULT_ROLE = "defaultRole";
51    
52    /**
53     * Timezone information : ((value + 1) * 2) - 1 = 2 * value + 1
54     */

55    public static final String JavaDoc[] TIME_ZONE_OFFSETS =
56            {
57                "(GMT -12:00 hours) Eniwetok, Kwajalein",
58                null,
59                "(GMT -11:00 hours) Midway Island, Samoa",
60                null,
61                "(GMT -10:00 hours) Hawaii",
62                null,
63                "(GMT -9:00 hours) Alaska",
64                null,
65                "(GMT -8:00 hours) Pacific Time (US & Canada)",
66                null,
67                "(GMT -7:00 hours) Mountain Time (US & Canada)",
68                null,
69                "(GMT -6:00 hours) Central Time (US & Canada), Mexico City",
70                null,
71                "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito",
72                null,
73                "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz",
74                "(GMT -3:30 hours) Newfoundland",
75                "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown",
76                null,
77                "(GMT -2:00 hours) Mid-Atlantic",
78                null,
79                "(GMT -1:00 hours) Azores, Cape Verde Islands",
80                null,
81                "(GMT) Western Europe Time, London, Lisbon, Casablanca, Monrovia",
82                null,
83                "(GMT +1:00 hours) CET(Central Europe Time), Brussels, Copenhagen, Madrid, Paris",
84                null,
85                "(GMT +2:00 hours) EET(Eastern Europe Time), Kaliningrad, South Africa",
86                null,
87                "(GMT +3:00 hours) Baghdad, Kuwait, Riyadh, Moscow, St. Petersburg",
88                "(GMT +3:30 hours) Tehran",
89                "(GMT +4:00 hours) Abu Dhabi, Muscat, Baku, Tbilisi",
90                "(GMT +4:30 hours) Kabul",
91                "(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent",
92                "(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi",
93                "(GMT +6:00 hours) Almaty, Dhaka, Colombo",
94                null,
95                "(GMT +7:00 hours) Bangkok, Hanoi, Jakarta",
96                null,
97                "(GMT +8:00 hours) Beijing, Perth, Singapore, Hong Kong, Chongqing, Urumqi, Taipei",
98                null,
99                "(GMT +9:00 hours) Tokyo, Seoul, Osaka, Sapporo, Yakutsk",
100                "(GMT +9:30 hours) Adelaide, Darwin",
101                "(GMT +10:00 hours) EAST(East Australian Standard)",
102                null,
103                "(GMT +11:00 hours) Magadan, Solomon Islands, New Caledonia",
104                null,
105                "(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island",
106                null
107            };
108
109    public static final String JavaDoc DEFAULT_IMAGES_PATH = "images/user";
110 }
111
Popular Tags