|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.nuggets.wcap.UserPref
public class UserPref
The UserPref object encapsulate the information for the user preferences on iPlanet Calendar Server.
All the fields in this object can be null. If you are fetching the preference from the server, a field with null value means the user has not set anything for the specified field. If you are making changes to the preference, a null field is used to tell the server not to make any changes to the specified field.
The JavaDoc description of the default constructor contains more information of the fields.
Field Summary | |
---|---|
static java.lang.String |
CAL_DAYVIEW
Constant for the default calendar view option "dayview". |
static java.lang.String |
CAL_MONTHVIEW
Constant for the default calendar view option "monthview". |
static java.lang.String |
CAL_OVERVIEW
Constant for the default calendar view option "overview". |
static java.lang.String |
CAL_WEEKVIEW
Constant for the default calendar view option "weekview". |
Constructor Summary | |
---|---|
UserPref()
Default constructor. |
|
UserPref(java.lang.String commonName,
java.lang.String givenName,
java.lang.String surname,
java.lang.String preferredLanguage,
java.lang.String defaultCalId,
java.lang.String timezone,
java.lang.Integer weekStart,
java.lang.Character dateSeparator,
java.lang.Boolean is24Hour,
java.lang.String dateOrder,
java.lang.Integer dayStart,
java.lang.Integer dayEnd,
java.lang.String slotInterval,
java.lang.Boolean notifyEnabled,
java.lang.String notifyEmail,
java.lang.String defaultAlarmStart,
java.lang.String defaultAlarmEmail,
java.lang.String defaultView)
Constructor with initializing fields. |
Method Summary | |
---|---|
java.lang.String |
getCommonName()
Get Common Name. |
java.lang.String |
getDateOrder()
Get date order. |
java.lang.Character |
getDateSeparator()
Get Date Separator. |
java.lang.Integer |
getDayEnd()
Get day end. |
java.lang.Integer |
getDayStart()
Get day start. |
java.lang.String |
getDefaultAlarmEmail()
Get default alarm email. |
java.lang.String |
getDefaultAlarmStart()
Get default alarm start. |
java.lang.String |
getDefaultCalendarId()
Get Default Calendar Id. |
java.lang.String |
getDefaultView()
Get default calendar view. |
java.lang.String |
getGivenName()
Get Given Name. |
java.lang.Boolean |
getIs24Hour()
Get is24Hour. |
java.lang.String |
getNotifyEmail()
Get notify email. |
java.lang.Boolean |
getNotifyEnabled()
Get notify enabled. |
java.lang.String |
getPreferredLanguage()
Get Preferred Language. |
java.lang.String |
getSlotInterval()
Get slot interval. |
java.lang.String |
getSurname()
Get Surname. |
java.lang.String |
getTimezone()
Get Timezone. |
java.lang.Integer |
getWeekStart()
Get Week Start. |
void |
setCommonName(java.lang.String commonName)
Set Common Name. |
void |
setDateOrder(java.lang.String dateOrder)
Set date order. |
void |
setDateSeparator(java.lang.Character dateSeparator)
Set Date Separator. |
void |
setDayEnd(java.lang.Integer dayEnd)
Set day end. |
void |
setDayStart(java.lang.Integer dayStart)
Set day start. |
void |
setDefaultAlarmEmail(java.lang.String defaultAlarmEmail)
Set default alarm email. |
void |
setDefaultAlarmStart(java.lang.String defaultAlarmStart)
Set default alarm start. |
void |
setDefaultCalendarId(java.lang.String defaultCalId)
Set Default Calendar Id. |
void |
setDefaultView(java.lang.String defaultView)
Set default calendar view. |
void |
setGivenName(java.lang.String givenName)
Set Given Name. |
void |
setIs24Hour(java.lang.Boolean is24Hour)
Set is24Hour. |
void |
setNotifyEmail(java.lang.String notifyEmail)
Set notify email. |
void |
setNotifyEnabled(java.lang.Boolean notifyEnabled)
Set notify enabled. |
void |
setPreferredLanguage(java.lang.String preferredLanguage)
Set Preferred Language. |
void |
setSlotInterval(java.lang.String slotInterval)
Set slot interval. |
void |
setSurname(java.lang.String surname)
Set Surname. |
void |
setTimezone(java.lang.String timezone)
Set Timezone. |
void |
setWeekStart(java.lang.Integer weekStart)
Set Week Start Day. |
java.lang.String |
toWcapQuery(WcapNugget nugget)
Convert the information into a string that is used for constructing a WCAP query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CAL_OVERVIEW
public static java.lang.String CAL_DAYVIEW
public static java.lang.String CAL_WEEKVIEW
public static java.lang.String CAL_MONTHVIEW
Constructor Detail |
---|
public UserPref()
public UserPref(java.lang.String commonName, java.lang.String givenName, java.lang.String surname, java.lang.String preferredLanguage, java.lang.String defaultCalId, java.lang.String timezone, java.lang.Integer weekStart, java.lang.Character dateSeparator, java.lang.Boolean is24Hour, java.lang.String dateOrder, java.lang.Integer dayStart, java.lang.Integer dayEnd, java.lang.String slotInterval, java.lang.Boolean notifyEnabled, java.lang.String notifyEmail, java.lang.String defaultAlarmStart, java.lang.String defaultAlarmEmail, java.lang.String defaultView)
commonName
- A string of common name. The server default is set it to
"givenName surname".
givenName
- User's given name.
surname
- User's surname.
preferredLanguage
- A string of the 2 character language code. The server default is
"en".
defaultCalId
- The default calendar Id.
timezone
- User's default timezone in the iCS supported format of
"Continent/City" (America/New_York). This timezone
is the "display" timezone, not the default timezone of the calendar.
If you want to change the calendar's default timezone, you should
use CalendarProperty instead. The iCS does not set any user timezone
by default.
weekStart
- An Integer object of 1-7, where 1 indicates the week starts on Sunday,
and 7 indicates the week starts on Saturday.
dateSeparator
- A character that is used as the separator for a date display's
"year", "month" and "day".
is24Hour
- True if the user wants the hour to be displayed in 0-23 hour.
If this parameter is false, the display will format it into 1-12 hour
with am/pm indicator.
dateOrder
- The order of the "year", "month" and "day" to be displayed.
e.g. "Y/M/D", "M/D/Y", "D/M/Y".
dayStart
- The integer of the start hour of the day.
(Note: No matter what you set for is24Hour, this field must be specified
within the range of 0 to 23.)
dayEnd
- The integer of the ending hour of the day.
(Note: No matter what you set for is24Hour, this field must be specified
within the range of 0 to 23.)
slotInterval
- An ISO 8601 time duration format string to indicate the size of
each time slot. For example, if you want to set it to half hour time
slot, the string would be PT0H30M.
notifyEnabled
- A boolean flag to indicate whether the notification for
"event being scheduled" is enabled.
notifyEmail
- A string of the email address to be notified. If more than one
email address specified them in a single string, with "," between
the email addresses.
defaultAlarmStart
- An ISO 8601 time duration format string to indicate when the alarm
start by default. For example, if you want the default alarm set off
15 min before an event/todo, the string would be "P15M". Please note
that although the reminder is set to be before the actual event/todo,
the defaultAlarmStart string should still be a positive string. Don't
start it with "-".
If you want to disable the default reminder, you simply set this preference with an empty string "";
defaultAlarmEmail
- A string of the email address to be notified. If more than one
email address specified them in a single string, with "," between
the email addresses.
defaultView
- A string of the default view name.
Method Detail |
---|
public java.lang.String toWcapQuery(WcapNugget nugget) throws WcapException
WcapException
public void setCommonName(java.lang.String commonName)
commonName
- A string of common name. The server default is set it to
"givenName surname".public java.lang.String getCommonName()
public void setGivenName(java.lang.String givenName)
givenName
- User's given name.public java.lang.String getGivenName()
public void setSurname(java.lang.String surname)
surname
- User's surname.public java.lang.String getSurname()
public void setPreferredLanguage(java.lang.String preferredLanguage)
preferredLanguage
- A string of the 2 character language code. The server default is
"en".public java.lang.String getPreferredLanguage()
public void setDefaultCalendarId(java.lang.String defaultCalId)
defaultCalId
- The default calendar Id.public java.lang.String getDefaultCalendarId()
public void setTimezone(java.lang.String timezone)
timezone
- User's default timezone in the iCS supported format of
"Continent/City" (America/New_York). This timezone
is the "display" timezone, not the default timezone of the calendar.
If you want to change the calendar's default timezone, you should
use CalendarProperty instead. The iCS does not set any user timezone
by default.public java.lang.String getTimezone()
public void setWeekStart(java.lang.Integer weekStart)
weekStart
- An Integer object of 1-7, where 1 indicates the week starts on Sunday,
and 7 indicates the week starts on Saturday.public java.lang.Integer getWeekStart()
public void setDateSeparator(java.lang.Character dateSeparator)
dateSeparator
- A character that is used as the separator for a date display's
"year", "month" and "day".public java.lang.Character getDateSeparator()
public void setIs24Hour(java.lang.Boolean is24Hour)
is24Hour
- True if the user wants the hour to be displayed in 0-23 hour.
If this parameter is false, the display will format it into 1-12 hour
with am/pm indicator.public java.lang.Boolean getIs24Hour()
public void setDateOrder(java.lang.String dateOrder)
dateOrder
- The order of the "year", "month" and "day" to be displayed.
e.g. "Y/M/D", "M/D/Y", "D/M/Y".public java.lang.String getDateOrder()
public void setDayStart(java.lang.Integer dayStart)
dayStart
- The integer of the start hour of the day.
(Note: No matter what you set for is24Hour, this field must be specified
within the range of 0 to 23.)public java.lang.Integer getDayStart()
public void setDayEnd(java.lang.Integer dayEnd)
dayEnd
- The integer of the ending hour of the day.
(Note: No matter what you set for is24Hour, this field must be specified
within the range of 0 to 23.)public java.lang.Integer getDayEnd()
public void setSlotInterval(java.lang.String slotInterval)
slotInterval
- An ISO 8601 time duration format string to indicate the size of
each time slot. For example, if you want to set it to half hour time
slot, the string would be PT0H30M.public java.lang.String getSlotInterval()
public void setNotifyEnabled(java.lang.Boolean notifyEnabled)
notifyEnabled
- A boolean flag to indicate whether the notification for
"event being scheduled" is enabled.public java.lang.Boolean getNotifyEnabled()
public void setNotifyEmail(java.lang.String notifyEmail)
notifyEmail
- A string of the email address to be notified. If more than one
email address specified them in a single string, with "," between
the email addresses.public java.lang.String getNotifyEmail()
public void setDefaultAlarmStart(java.lang.String defaultAlarmStart)
defaultAlarmStart
- An ISO 8601 time duration format string to indicate when the alarm
start by default. For example, if you want the default alarm set off
15 min before an event/todo, the string would be "P15M". Please note
that although the reminder is set to be before the actual event/todo,
the defaultAlarmStart string should still be a positive string. Don't
start it with "-".
If you want to disable the default reminder, you simply set this preference with an empty string "";
public java.lang.String getDefaultAlarmStart()
public void setDefaultAlarmEmail(java.lang.String defaultAlarmEmail)
defaultAlarmEmail
- A string of the email address to be notified. If more than one
email address specified them in a single string, with "," between
the email addresses.public java.lang.String getDefaultView()
public void setDefaultView(java.lang.String defaultView)
defaultView
- A string of the default view name.public java.lang.String getDefaultAlarmEmail()
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.