[jboss-svn-commits] JBL Code SVN: r23368 - labs/jbosslabs/labs-3.0-build/integration/cs-nukes-login/src/main/java/org/jboss/labs/clearspace.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 8 04:51:50 EDT 2008


Author: szimano
Date: 2008-10-08 04:51:49 -0400 (Wed, 08 Oct 2008)
New Revision: 23368

Modified:
   labs/jbosslabs/labs-3.0-build/integration/cs-nukes-login/src/main/java/org/jboss/labs/clearspace/LabsUser.java
Log:


Modified: labs/jbosslabs/labs-3.0-build/integration/cs-nukes-login/src/main/java/org/jboss/labs/clearspace/LabsUser.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-nukes-login/src/main/java/org/jboss/labs/clearspace/LabsUser.java	2008-10-08 08:09:32 UTC (rev 23367)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-nukes-login/src/main/java/org/jboss/labs/clearspace/LabsUser.java	2008-10-08 08:51:49 UTC (rev 23368)
@@ -50,6 +50,8 @@
 
 	private static final String HOME_ADDRESS = "Home Address";
 
+	private static final String TIME_ZONE = "Time Zone";
+
 	private final static Permissions perms = new Permissions(Permissions.NONE);;
 
 	/**
@@ -73,7 +75,67 @@
 	static {
 		profileDict = new HashMap<String, Map<String, String>>();
 		addDict(CLICK_HERE_FOR_JBOSS_NEWSLETTER, "0", "No", "1", "Yes");
-		addDict(COMPANY_SIZE, "100_999", "100-999", "_20", "-20", "21_100", "21-100", "1000_", "1000-");
+		addDict(COMPANY_SIZE, "100_999", "100-999", "_20", "-20", "21_100",
+				"21-100", "1000_", "1000-");
+		addDict(
+				TIME_ZONE,
+				"0",
+				"(GMT -12:00 hours) Eniwetok, Kwajalein",
+				"2",
+				"(GMT -11:00 hours) Midway Island, Samoa",
+				"4",
+				"(GMT -10:00 hours) Hawaii",
+				"6",
+				"(GMT -9:00 hours) Alaska",
+				"8",
+				"(GMT -8:00 hours) Pacific Time (US ",
+				"10",
+				"(GMT -7:00 hours) Mountain Time (US ",
+				"12",
+				"(GMT -6:00 hours) Central Time (US ",
+				"14",
+				"(GMT -5:00 hours) Eastern Time (US ",
+				"16",
+				"(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz",
+				"17",
+				"(GMT -3:30 hours) Newfoundland",
+				"18",
+				"(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown",
+				"20",
+				"(GMT -2:00 hours) Mid-Atlantic",
+				"22",
+				"(GMT -1:00 hours) Azores, Cape Verde Islands",
+				"24",
+				"(GMT) Western Europe Time, London, Lisbon, Casablanca, Monrovia",
+				"26",
+				"selected",
+				"28",
+				"(GMT +2:00 hours) EET(Eastern Europe Time), Kaliningrad, South Africa",
+				"30",
+				"(GMT +3:00 hours) Baghdad, Kuwait, Riyadh, Moscow, St",
+				"31",
+				"(GMT +3:30 hours) Tehran",
+				"32",
+				"(GMT +4:00 hours) Abu Dhabi, Muscat, Baku, Tbilisi",
+				"33",
+				"(GMT +4:30 hours) Kabul",
+				"34",
+				"(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent",
+				"35",
+				"(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi",
+				"36",
+				"(GMT +6:00 hours) Almaty, Dhaka, Colombo",
+				"38",
+				"(GMT +7:00 hours) Bangkok, Hanoi, Jakarta",
+				"40",
+				"(GMT +8:00 hours) Beijing, Perth, Singapore, Hong Kong, Chongqing, Urumqi, Taipei",
+				"42",
+				"(GMT +9:00 hours) Tokyo, Seoul, Osaka, Sapporo, Yakutsk",
+				"43", "(GMT +9:30 hours) Adelaide, Darwin", "44",
+				"(GMT +10:00 hours) EAST(East Australian Standard)", "46",
+				"(GMT +11:00 hours) Magadan, Solomon Islands, New Caledonia",
+				"48",
+				"(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island");
 	}
 
 	private static void addDict(String field, String... fields) {
@@ -154,18 +216,21 @@
 				+ rs.getString("pn_state") + ",country:"
 				+ rs.getString("pn_country") + ",zip:" + rs.getString("pn_zip")
 				+ ",type:WORK");
-		
-		profile.put(CLICK_HERE_FOR_JBOSS_NEWSLETTER, rs.getString("pn_newsletter"));
 
+		profile.put(CLICK_HERE_FOR_JBOSS_NEWSLETTER, rs
+				.getString("pn_newsletter"));
+
+		profile.put(TIME_ZONE, rs.getString("pn_timezone_offset"));
+
 		Map<String, String> profileIt = new HashMap<String, String>(profile);
-		
+
 		// remove all null values associated to keys
 		for (String key : profileIt.keySet()) {
 			if (profile.get(key) == null) {
 				profile.remove(key);
 			}
 		}
-		
+
 		profile = translateProfileFields(profile);
 
 	}




More information about the jboss-svn-commits mailing list