public class CalendarEntryDTO extends Object implements CalendarEntry, Serializable
Constructor and Description |
---|
CalendarEntryDTO()
Creates an empty
CalendarEntry , which can be populated
with set calls. |
CalendarEntryDTO(String title,
String description,
String location,
Date start,
Date end)
Creates a
CalendarEntry with common properties. |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
getContainerNodeRef() |
Date |
getCreatedAt()
Gets when this entry was created
|
String |
getDescription() |
Date |
getEnd() |
Date |
getLastRecurrence()
Gets the date of the last instance of this recurring event
|
String |
getLocation() |
Date |
getModifiedAt()
Gets when this entry was modified
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
Get the underlying node value that needs to be permission checked.
|
String |
getOutlookUID()
Gets the UID used by Outlook for this event.
|
String |
getRecurrenceRule()
Gets the event recurrence rule.
|
String |
getSharePointDocFolder()
Gets the SharePoint "Doc Folder" for the event.
|
Date |
getStart() |
String |
getSystemName() |
List<String> |
getTags() |
String |
getTitle() |
static boolean |
isAllDay(CalendarEntry entry)
Does the given
CalendarEntry define an all-day
event?
An All Day Event is defined as one starting at midnight
on a day, and ending at midnight. |
boolean |
isOutlook()
Is this an outlook based event?
|
void |
setCreatedAt(Date createdAt) |
void |
setDescription(String description)
Sets the Description of the event
|
void |
setEnd(Date end)
Sets the event end date and time
|
void |
setLastRecurrence(Date lastRecurrence)
Sets the date of the last instance of this recurring event
|
void |
setLocation(String location)
Sets the Location of the event
|
void |
setModifiedAt(Date modifiedAt) |
void |
setOutlook(boolean outlook)
Sets if this is an outlook based event or not
|
void |
setOutlookUID(String outlookUID)
Sets the UID used by Outlook for this event.
|
void |
setRecurrenceRule(String recurrenceRule)
Sets the event recurrence rule
|
void |
setSharePointDocFolder(String docFolder)
Sets the SharePoint "Doc Folder" for the event.
|
void |
setStart(Date start)
Sets the event start date and time
|
void |
setTitle(String title)
Sets the Title ("what") of the event
|
public CalendarEntryDTO()
CalendarEntry
, which can be populated
with set calls.public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
PermissionCheckValue
getNodeRef
in interface PermissionCheckValue
getNodeRef
in interface CalendarEntry
public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
getContainerNodeRef
in interface CalendarEntry
public String getSystemName()
getSystemName
in interface CalendarEntry
public String getTitle()
getTitle
in interface CalendarEntry
public void setTitle(String title)
setTitle
in interface CalendarEntry
public String getDescription()
getDescription
in interface CalendarEntry
public void setDescription(String description)
setDescription
in interface CalendarEntry
public String getLocation()
getLocation
in interface CalendarEntry
public void setLocation(String location)
setLocation
in interface CalendarEntry
public Date getStart()
getStart
in interface CalendarEntry
public void setStart(Date start)
setStart
in interface CalendarEntry
public Date getEnd()
getEnd
in interface CalendarEntry
public void setEnd(Date end)
setEnd
in interface CalendarEntry
public String getRecurrenceRule()
getRecurrenceRule
in interface CalendarEntry
public void setRecurrenceRule(String recurrenceRule)
setRecurrenceRule
in interface CalendarEntry
public Date getLastRecurrence()
getLastRecurrence
in interface CalendarEntry
public void setLastRecurrence(Date lastRecurrence)
setLastRecurrence
in interface CalendarEntry
public boolean isOutlook()
isOutlook
in interface CalendarEntry
public void setOutlook(boolean outlook)
setOutlook
in interface CalendarEntry
public String getOutlookUID()
CalendarEntry.isOutlook()
getOutlookUID
in interface CalendarEntry
public void setOutlookUID(String outlookUID)
setOutlookUID
in interface CalendarEntry
public String getSharePointDocFolder()
getSharePointDocFolder
in interface CalendarEntry
public void setSharePointDocFolder(String docFolder)
setSharePointDocFolder
in interface CalendarEntry
public List<String> getTags()
getTags
in interface CalendarEntry
public Date getCreatedAt()
getCreatedAt
in interface CalendarEntry
public void setCreatedAt(Date createdAt)
public Date getModifiedAt()
getModifiedAt
in interface CalendarEntry
public void setModifiedAt(Date modifiedAt)
public static boolean isAllDay(CalendarEntry entry)
CalendarEntry
define 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.Copyright © 2005–2017 Alfresco Software. All rights reserved.