Class CalendarEntryDTO
java.lang.Object
org.alfresco.service.cmr.calendar.CalendarEntryDTO
- All Implemented Interfaces:
Serializable,PermissionCheckValue,CalendarEntry
- Direct Known Subclasses:
CalendarEntryImpl
This class represents an event in a calendar.
- Since:
- 4.0
- Author:
- Nick Burch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an emptyCalendarEntry, which can be populated with set calls.Creates aCalendarEntrywith common properties. -
Method Summary
Modifier and TypeMethodDescriptionGets when this entry was createdgetEnd()Gets the date of the last instance of this recurring eventGets when this entry was modifiedGet the underlying node value that needs to be permission checked.Gets the UID used by Outlook for this event.Gets the event recurrence rule.Gets the SharePoint "Doc Folder" for the event.getStart()getTags()getTitle()static booleanisAllDay(CalendarEntry entry) Does the givenCalendarEntrydefine an all-day event?booleanIs this an outlook based event?voidsetCreatedAt(Date createdAt) voidsetDescription(String description) Sets the Description of the eventvoidSets the event end date and timevoidsetLastRecurrence(Date lastRecurrence) Sets the date of the last instance of this recurring eventvoidsetLocation(String location) Sets the Location of the eventvoidsetModifiedAt(Date modifiedAt) voidsetOutlook(boolean outlook) Sets if this is an outlook based event or notvoidsetOutlookUID(String outlookUID) Sets the UID used by Outlook for this event.voidsetRecurrenceRule(String recurrenceRule) Sets the event recurrence rulevoidsetSharePointDocFolder(String docFolder) Sets the SharePoint "Doc Folder" for the event.voidSets the event start date and timevoidSets the Title ("what") of the event
-
Constructor Details
-
CalendarEntryDTO
public CalendarEntryDTO()Creates an emptyCalendarEntry, which can be populated with set calls. -
CalendarEntryDTO
Creates aCalendarEntrywith common properties.
-
-
Method Details
-
getNodeRef
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfaceCalendarEntry- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- the NodeRef of the underlying calendar entry
-
getContainerNodeRef
- Specified by:
getContainerNodeRefin interfaceCalendarEntry- Returns:
- the NodeRef of the calendar's container in the site
-
getSystemName
- Specified by:
getSystemNamein interfaceCalendarEntry- Returns:
- the System generated name for the event
-
getTitle
- Specified by:
getTitlein interfaceCalendarEntry- Returns:
- the Title ("what") of the event
-
setTitle
Sets the Title ("what") of the event- Specified by:
setTitlein interfaceCalendarEntry
-
getDescription
- Specified by:
getDescriptionin interfaceCalendarEntry- Returns:
- the Description of the event
-
setDescription
Sets the Description of the event- Specified by:
setDescriptionin interfaceCalendarEntry
-
getLocation
- Specified by:
getLocationin interfaceCalendarEntry- Returns:
- the Location of the event
-
setLocation
Sets the Location of the event- Specified by:
setLocationin interfaceCalendarEntry
-
getStart
- Specified by:
getStartin interfaceCalendarEntry- Returns:
- the Start date and time
-
setStart
Sets the event start date and time- Specified by:
setStartin interfaceCalendarEntry
-
getEnd
- Specified by:
getEndin interfaceCalendarEntry- Returns:
- the End date and time
-
setEnd
Sets the event end date and time- Specified by:
setEndin interfaceCalendarEntry
-
getRecurrenceRule
Gets the event recurrence rule.- Specified by:
getRecurrenceRulein interfaceCalendarEntry
-
setRecurrenceRule
Sets the event recurrence rule- Specified by:
setRecurrenceRulein interfaceCalendarEntry
-
getLastRecurrence
Gets the date of the last instance of this recurring event- Specified by:
getLastRecurrencein interfaceCalendarEntry
-
setLastRecurrence
Sets the date of the last instance of this recurring event- Specified by:
setLastRecurrencein interfaceCalendarEntry
-
isOutlook
public boolean isOutlook()Is this an outlook based event?- Specified by:
isOutlookin interfaceCalendarEntry
-
setOutlook
public void setOutlook(boolean outlook) Sets if this is an outlook based event or not- Specified by:
setOutlookin interfaceCalendarEntry
-
getOutlookUID
Gets the UID used by Outlook for this event. SeeCalendarEntry.isOutlook()- Specified by:
getOutlookUIDin interfaceCalendarEntry
-
setOutlookUID
Sets the UID used by Outlook for this event. When a UID is set, normally the isOutlook flag is set too.- Specified by:
setOutlookUIDin interfaceCalendarEntry
-
getTags
- Specified by:
getTagsin interfaceCalendarEntry- Returns:
- the Tags associated with the event
-
getCreatedAt
Gets when this entry was created- Specified by:
getCreatedAtin interfaceCalendarEntry- Returns:
- the creation date and time
-
setCreatedAt
-
getModifiedAt
Gets when this entry was modified- Specified by:
getModifiedAtin interfaceCalendarEntry- Returns:
- the modification date and time
-
setModifiedAt
-
isAllDay
Does the givenCalendarEntrydefine an all-day event? An All Day Event is defined as one starting at midnight on a day, and ending at midnight. For a single day event, the start and end dates should be the same, and the times for both are UTC midnight. For a multi day event, the start and end times are UTC midnight, for the first and last days respectively.
-