Class CalendarEntryDTO
- java.lang.Object
-
- org.alfresco.service.cmr.calendar.CalendarEntryDTO
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,CalendarEntry
- Direct Known Subclasses:
CalendarEntryImpl
public class CalendarEntryDTO extends java.lang.Object implements CalendarEntry, java.io.Serializable
This class represents an event in a calendar.- Since:
- 4.0
- Author:
- Nick Burch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendarEntryDTO()Creates an emptyCalendarEntry, which can be populated with set calls.CalendarEntryDTO(java.lang.String title, java.lang.String description, java.lang.String location, java.util.Date start, java.util.Date end)Creates aCalendarEntrywith common properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetContainerNodeRef()java.util.DategetCreatedAt()Gets when this entry was createdjava.lang.StringgetDescription()java.util.DategetEnd()java.util.DategetLastRecurrence()Gets the date of the last instance of this recurring eventjava.lang.StringgetLocation()java.util.DategetModifiedAt()Gets when this entry was modifiedorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.java.lang.StringgetOutlookUID()Gets the UID used by Outlook for this event.java.lang.StringgetRecurrenceRule()Gets the event recurrence rule.java.lang.StringgetSharePointDocFolder()Gets the SharePoint "Doc Folder" for the event.java.util.DategetStart()java.lang.StringgetSystemName()java.util.List<java.lang.String>getTags()java.lang.StringgetTitle()static booleanisAllDay(CalendarEntry entry)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.booleanisOutlook()Is this an outlook based event?voidsetCreatedAt(java.util.Date createdAt)voidsetDescription(java.lang.String description)Sets the Description of the eventvoidsetEnd(java.util.Date end)Sets the event end date and timevoidsetLastRecurrence(java.util.Date lastRecurrence)Sets the date of the last instance of this recurring eventvoidsetLocation(java.lang.String location)Sets the Location of the eventvoidsetModifiedAt(java.util.Date modifiedAt)voidsetOutlook(boolean outlook)Sets if this is an outlook based event or notvoidsetOutlookUID(java.lang.String outlookUID)Sets the UID used by Outlook for this event.voidsetRecurrenceRule(java.lang.String recurrenceRule)Sets the event recurrence rulevoidsetSharePointDocFolder(java.lang.String docFolder)Sets the SharePoint "Doc Folder" for the event.voidsetStart(java.util.Date start)Sets the event start date and timevoidsetTitle(java.lang.String title)Sets the Title ("what") of the event
-
-
-
Constructor Detail
-
CalendarEntryDTO
public CalendarEntryDTO()
Creates an emptyCalendarEntry, which can be populated with set calls.
-
CalendarEntryDTO
public CalendarEntryDTO(java.lang.String title, java.lang.String description, java.lang.String location, java.util.Date start, java.util.Date end)Creates aCalendarEntrywith common properties.
-
-
Method Detail
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef 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
public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
- Specified by:
getContainerNodeRefin interfaceCalendarEntry- Returns:
- the NodeRef of the calendar's container in the site
-
getSystemName
public java.lang.String getSystemName()
- Specified by:
getSystemNamein interfaceCalendarEntry- Returns:
- the System generated name for the event
-
getTitle
public java.lang.String getTitle()
- Specified by:
getTitlein interfaceCalendarEntry- Returns:
- the Title ("what") of the event
-
setTitle
public void setTitle(java.lang.String title)
Sets the Title ("what") of the event- Specified by:
setTitlein interfaceCalendarEntry
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceCalendarEntry- Returns:
- the Description of the event
-
setDescription
public void setDescription(java.lang.String description)
Sets the Description of the event- Specified by:
setDescriptionin interfaceCalendarEntry
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocationin interfaceCalendarEntry- Returns:
- the Location of the event
-
setLocation
public void setLocation(java.lang.String location)
Sets the Location of the event- Specified by:
setLocationin interfaceCalendarEntry
-
getStart
public java.util.Date getStart()
- Specified by:
getStartin interfaceCalendarEntry- Returns:
- the Start date and time
-
setStart
public void setStart(java.util.Date start)
Sets the event start date and time- Specified by:
setStartin interfaceCalendarEntry
-
getEnd
public java.util.Date getEnd()
- Specified by:
getEndin interfaceCalendarEntry- Returns:
- the End date and time
-
setEnd
public void setEnd(java.util.Date end)
Sets the event end date and time- Specified by:
setEndin interfaceCalendarEntry
-
getRecurrenceRule
public java.lang.String getRecurrenceRule()
Gets the event recurrence rule.- Specified by:
getRecurrenceRulein interfaceCalendarEntry
-
setRecurrenceRule
public void setRecurrenceRule(java.lang.String recurrenceRule)
Sets the event recurrence rule- Specified by:
setRecurrenceRulein interfaceCalendarEntry
-
getLastRecurrence
public java.util.Date getLastRecurrence()
Gets the date of the last instance of this recurring event- Specified by:
getLastRecurrencein interfaceCalendarEntry
-
setLastRecurrence
public void setLastRecurrence(java.util.Date lastRecurrence)
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
public java.lang.String getOutlookUID()
Gets the UID used by Outlook for this event. SeeCalendarEntry.isOutlook()- Specified by:
getOutlookUIDin interfaceCalendarEntry
-
setOutlookUID
public void setOutlookUID(java.lang.String outlookUID)
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
-
getSharePointDocFolder
public java.lang.String getSharePointDocFolder()
Gets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events- Specified by:
getSharePointDocFolderin interfaceCalendarEntry
-
setSharePointDocFolder
public void setSharePointDocFolder(java.lang.String docFolder)
Sets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events- Specified by:
setSharePointDocFolderin interfaceCalendarEntry
-
getTags
public java.util.List<java.lang.String> getTags()
- Specified by:
getTagsin interfaceCalendarEntry- Returns:
- the Tags associated with the event
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets when this entry was created- Specified by:
getCreatedAtin interfaceCalendarEntry- Returns:
- the creation date and time
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
-
getModifiedAt
public java.util.Date getModifiedAt()
Gets when this entry was modified- Specified by:
getModifiedAtin interfaceCalendarEntry- Returns:
- the modification date and time
-
setModifiedAt
public void setModifiedAt(java.util.Date modifiedAt)
-
isAllDay
public static boolean isAllDay(CalendarEntry entry)
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.
-
-