EventModel class provides an interface to event's data
The EventModel provides all means of access machanisms such as load,
add, modify, update, delete event data.
It can load the event data given an event object or a event uid.
If an event uid is given, it fetches the event data using backend
service (thru CalendarBaseModel interface), and loads it.
The view beans can use this as a model to event data and can perform
any event related opeartions to backend store via this EventModel.
It provides following contexts for event's data
LOAD_EVENT_CONTEXT ADD_EVENT_CONTEXT MODIFY_EVENT_CONTEXT UPDATE_EVENT_CONTEXT DELETE_EVENT_CONTEXT
Value for event's "TRANSP" property which says don't count this event time in free-busy
calculation. TRANSPARENT makes event invisible to free-busy time searches. Default
value for "TRANSP" property is OPAQUE.
attendeeParticipantStatusNames
final public static String[] attendeeParticipantStatusNames(Code)
attendeeParticipantStatusValues
final public static String[] attendeeParticipantStatusValues(Code)
Returns TimeZone for the time zone id set in FIELD_TIME_ZONE field.
If FIELD_TIME_ZONE value is null and 'defaultToGMT' is true then it
returns TimeZone for GMT.
Following are the suppported event insert contexts.
ADD_EVENT_CONTEXT --
Use this context to add an event. Before invoking this context the consumer shall set
either attendees, recurrence pattern, alarm object (using the methods setAttendees(),
setRecurrencePattern(), setAlarm()) in this model.
MODIFY_EVENT_CONTEXT --
Use this context to modify an event. Before invoking this context the consumer shall
set either attendees, recurrence pattern, alarm object (using the methods setAttendees(),
setRecurrencePattern(), setAlarm()) in this model.
DELETE_EVENT_CONTEXT -- Use this context to delete an event based
on an event uid.
In case if context passed is 'null' then the default event insert
context executed is ADD_EVENT_CONTEXT.
Following are the suppported event load contexts.
LOAD_EVENT_CONTEXT -- Use this context to load an event data based on
event uid or event object. Before executing this context the consumer should set either
event uid + event's assoicated calid (setEventUID() + setEventCalid()) or event object
(setCurrentEvent()) in this model.
LOAD_EVENT_DEFAULTS_CONTEXT -- Use this context to load the event
default data. Before executing this context the consumer should set event start and
end times using the method setDefaultDates() method in this model.
In case if context passed is 'null' then the default event retrieve
context executed is LOAD_EVENT_CONTEXT.
It will be like the below: (for the improvement in performance)
LOAD_EVENT_CONTEXT -- deals with processing event data that is only
required for edit/view event
setAttendeeForEventCalid
public void setAttendeeForEventCalid(Attendee attendee)(Code)
Sets the attendee of current event's calid.
setAttendees
public void setAttendees(Attendee[] attendees)(Code)
Sets the current event object for which all the subsequent model methods are valid.
This will reset the event uid value because event-object and event-uid are mutually exclusive
for any event CONTEXT operations.
setDefaultDates
public void setDefaultDates(DateTime start, DateTime end)(Code)
Sets the event default dates.
Parameters: start - default event start time, if not given then assume current date-time Parameters: end - default event end time, if not given then set by advacing the 'start' by calendar preference 'ceInterval' ammount or by one hour.
These default dates are only useful for LOAD_EVENT_DEFAULTS_CONTEXT context.
Sets the current event's associated calid for which all the subsequent model methods are valid. This will reset the current event object value because event-object and event-associated-calid are mutually exclusive for any event CONTEXT operations.
Also use the method setEventUID(String uid) when you use this method.
Sets the current event rid for which all the subsequent model methods are valid.
This will reset the current event object value because event-object and event-rid
are mutually exclusive for any event CONTEXT operations.
Also use the method setEventCalid(String calid) when you use this method.
Sets the current event uid for which all the subsequent model methods are valid.
This will reset the current event object value because event-object and event-uid
are mutually exclusive for any event CONTEXT operations.
Also use the method setEventCalid(String calid) when you use this method.
public void setRecurrenceChanged(boolean recurrenceChanged)(Code)
setRecurrenceModifier
public void setRecurrenceModifier(String modifier)(Code)
Specify the recurrence modifier to be used during event additions, modifcations and deletions.
Recurrence modifier can be any one of RecurrencePattern.THIS_INSTANCE,
RecurrencePattern.THIS_AND_FUTURE, RecurrencePattern.THIS_AND_PRIOR,
RecurrencePattern.THIS_AND_ALL
setRecurrencePattern
public void setRecurrencePattern(RecurrencePattern recurrence)(Code)
Sets the recurrence pattern object in the current event.
Pass a null to remove the recurrence pattern from the current event,
and pass a non-null value to set a recurrence pattern in the current event.
setRepeatIntervalField
public void setRepeatIntervalField(String value)(Code)
setRepeatLimitPeriodField
public void setRepeatLimitPeriodField(String value)(Code)
setRepeatLimitUnitField
public void setRepeatLimitUnitField(String value)(Code)