001: package com.sun.portal.app.sharedevents.util;
002:
003: public class SharedConstants {
004:
005: public static String FETCH_EVENTS_CONTEXT = "fetchEvents";
006: public static String VIEW_CTX_DAY = "dayView";
007: public static String VIEW_CTX_WEEK = "weekView";
008: public static String VIEW_CTX_MONTH = "monthView";
009: public static String VIEW_CTX_SEARCH = "searchView";
010: public static String LOAD_EVENTS_CONTEXT = "loadEvents";
011: public static String FETCH_EVENT_BY_ID_CONTEXT = "eventsbyId";
012: public static String SEARCH_EVENTS_CONTEXT = "searchEvents";
013: public static String LOAD_EVENT_DEFAULTS_CONTEXT = "loadDefaultEvent";
014: public static String LOAD_EVENT_CONTEXT = "loadEvent";
015: public static String ADD_EVENT_CONTEXT = "addEvent";
016: public static String MODIFY_EVENT_CONTEXT = "modifyEvent";
017: public static String UPDATE_EVENT_CONTEXT = "updateEvent";
018: public static String DELETE_EVENT_CONTEXT = "deleteEvent";
019:
020: public static final String QQ = "??";
021: public static final String QQQQ = "????";
022: public static final String CQQ = ":??";
023: public static final String DATE_FORMAT_M_D_Y = "MM/DD/YYYY";
024: public static final String DATE_FORMAT_D_M_Y = "DD/MM/YYYY";
025: public static final String DATE_FORMAT_Y_M_D = "YYYY/MM/DD";
026:
027: public static final String DEFAULT_DATE_FORMAT = DATE_FORMAT_M_D_Y;
028: public static final String DEFAULT_DATE_DELIMITER = "/";
029: public static final String GMT_TIME_ZONE_STRING = "GMT";
030: public static final String TIME_FORMAT_12 = "12";
031: public static final String TIME_FORMAT_24 = "24";
032: public static final String DEFAULT_TIME_FORMAT = TIME_FORMAT_24;
033: public static final String EVENT_RECURRENCE_ONETIME = "Onetime";
034: public static final String EVENT_RECURRENCE_HOURLY = "Hourly";
035: public static final String EVENT_RECURRENCE_DAILY = "Daily";
036: public static final String EVENT_RECURRENCE_WEEKLY = "Weekly";
037: public static final String EVENT_RECURRENCE_MONTHLY = "Monthly";
038: public static final String EVENT_RECURRENCE_MWF = "MonWedFri";
039: public static final String EVENT_RECURRENCE_TT = "TueThu";
040: public static final String EVENT_RECURRENCE_SS = "SatSun";
041: public static final String EVENT_RECURRENCE_MTWTF = "MonTueWedThuFri";
042:
043: public static final String[] repeatIntervalVal = {
044: EVENT_RECURRENCE_ONETIME, EVENT_RECURRENCE_HOURLY,
045: EVENT_RECURRENCE_DAILY, EVENT_RECURRENCE_WEEKLY,
046: EVENT_RECURRENCE_MONTHLY, EVENT_RECURRENCE_MWF,
047: EVENT_RECURRENCE_TT, EVENT_RECURRENCE_SS,
048: EVENT_RECURRENCE_MTWTF };
049:
050: // Values in Recurrence Pattern for BYDAY field
051: public static final String EVENT_RECURRENCE_BYDAY_MWF = "MO,WE,FR";
052: public static final String EVENT_RECURRENCE_BYDAY_TT = "TU,TH";
053: public static final String EVENT_RECURRENCE_BYDAY_SS = "SA,SU";
054: public static final String EVENT_RECURRENCE_BYDAY_MTWTF = "MO,TU,WE,TH,FR";
055:
056: public static final int MINUTES_PRECISION = 5;
057: public static String SHOW_ALERT_TYPE_ERROR = "error";
058: public static String SHOW_ALERT_TYPE_INFO = "information";
059: public static String EVENT_FILTER_ALL_EVENTS = "all";
060: public static final String UID_RID_SEPERATOR = ";";
061:
062: public static final String displayableMonthLabels[] = { "01", "02",
063: "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" };
064:
065: public static final String displayableDayLabels[] = { "01", "02",
066: "03", "04", "05", "06", "07", "08", "09", "10", "11", "12",
067: "13", "14", "15", "16", "17", "18", "19", "20", "21", "22",
068: "23", "24", "25", "26", "27", "28", "29", "30", "31" };
069:
070: public static final String displayableYearLabels[] = { "2005",
071: "2006", "2007", "2008", "2009", "2009", "2010" };
072:
073: public static final String[] hoursIn12HourFormatNames = { "1", "2",
074: "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" };
075: public static final String[] hoursIn12HourFormatValues = { "1",
076: "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "0" };
077:
078: public static final String[] hoursIn24HourFormatNames = { "00",
079: "01", "02", "03", "04", "05", "06", "07", "08", "09", "10",
080: "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
081: "21", "22", "23" };
082: public static final String[] hoursIn24HourFormatValues = hoursIn24HourFormatNames;
083:
084: public static final String[] minutesIn12HourFormatValues = { "00",
085: "05", "10", "15", "20", "25", "30", "35", "40", "45", "50",
086: "55", "720", "725", "730", "735", "740", "745", "750",
087: "755", "760", "765", "770", "775" };
088:
089: public static final String[] minutesIn24HourFormatValues = { "00",
090: "05", "10", "15", "20", "25", "30", "35", "40", "45", "50",
091: "55" };
092:
093: // Here are some constants used to save attributes in session
094: public static final String SESSION_TABLE_DATA_PROVIDER_OBJECT = "TABLE_DATA";
095: public static final String SESSION_CURR_VIEW_CTX = "CURRENT_VIEW_CTX";
096: public static final String SESSION_CURR_VIEW_CTX_START = "CURRENT_VIEW_CTX_START";
097: public static final String SESSION_CURR_VIEW_CTX_END = "CURRENT_VIEW_CTX_END";
098: public static final String SESSION_EVENTS_SEARCH_STRING = "EVENTS_SEARCH_FILTER";
099:
100: public static final String SESSION_REFRESH_DATA = "REFRESH_EVENT_TABLE_DATA";
101: public static final String SESSION_CURR_EVENT_UID = "EVENT_UID";
102: public static final String SESSION_CURR_EVENT_RID = "EVENT_RID";
103: public static final String SESSION_COMMUNITY_EVENT_SEARCH = "COMM_EVENT_SEARCH";
104: public static final String SESSION_EVENTS_LIST_DISPLAY_ROWS = "EVENTS_DISPLAY_ROWS";
105:
106: //The following is used for community search, when event is added to searchDatabase.
107: public static final String URL_EVENT_PORTLET_ACTION = "urlEventPortletAction";
108: public static final String URL_COMM_SEARCH_EVENT_UID = "commSearchEventUid";
109: public static final String URL_CURR_EVENT_UID = "uid";
110: public static final String URL_CURR_EVENT_RID = "rid";
111:
112: public static final String VISIBLE_URL = "ps.visibleurl";
113: public static final String DUMMY = "DUMMY";
114:
115: //Resource Bundle Base name
116: public static final String BUNDLE_BASE_NAME = "com.sun.portal.app.sharedevents.bundle.Resource";
117:
118: // User Info attributes that should be specified in portlet.xml & userinfomapping
119: // files for PortletUser preferences
120: public static final String USER_INFO_TIMEZONE = "timezone";
121:
122: }
|