org.alfresco.service.cmr.calendar
Class CalendarEntryDTO

java.lang.Object
  extended by 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
See Also:
Serialized Form

Constructor Summary
CalendarEntryDTO()
          Creates an empty CalendarEntry, 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 a CalendarEntry with common properties.
 
Method Summary
 org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
           
 java.util.Date getCreatedAt()
          Gets when this entry was created
 java.lang.String getDescription()
           
 java.util.Date getEnd()
           
 java.util.Date getLastRecurrence()
          Gets the date of the last instance of this recurring event
 java.lang.String getLocation()
           
 java.util.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.
 java.lang.String getOutlookUID()
          Gets the UID used by Outlook for this event.
 java.lang.String getRecurrenceRule()
          Gets the event recurrence rule.
 java.lang.String getSharePointDocFolder()
          Gets the SharePoint "Doc Folder" for the event.
 java.util.Date getStart()
           
 java.lang.String getSystemName()
           
 java.util.List getTags()
           
 java.lang.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(java.util.Date createdAt)
           
 void setDescription(java.lang.String description)
          Sets the Description of the event
 void setEnd(java.util.Date end)
          Sets the event end date and time
 void setLastRecurrence(java.util.Date lastRecurrence)
          Sets the date of the last instance of this recurring event
 void setLocation(java.lang.String location)
          Sets the Location of the event
 void setModifiedAt(java.util.Date modifiedAt)
           
 void setOutlook(boolean outlook)
          Sets if this is an outlook based event or not
 void setOutlookUID(java.lang.String outlookUID)
          Sets the UID used by Outlook for this event.
 void setRecurrenceRule(java.lang.String recurrenceRule)
          Sets the event recurrence rule
 void setSharePointDocFolder(java.lang.String docFolder)
          Sets the SharePoint "Doc Folder" for the event.
 void setStart(java.util.Date start)
          Sets the event start date and time
 void setTitle(java.lang.String title)
          Sets the Title ("what") of the event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarEntryDTO

public CalendarEntryDTO()
Creates an empty CalendarEntry, 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 a CalendarEntry with common properties.

Method Detail

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface: PermissionCheckValue
Get the underlying node value that needs to be permission checked.

Specified by:
getNodeRef in interface PermissionCheckValue
Specified by:
getNodeRef in interface CalendarEntry
Returns:
the NodeRef of the underlying calendar entry

getContainerNodeRef

public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
Specified by:
getContainerNodeRef in interface CalendarEntry
Returns:
the NodeRef of the calendar's container in the site

getSystemName

public java.lang.String getSystemName()
Specified by:
getSystemName in interface CalendarEntry
Returns:
the System generated name for the event

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface CalendarEntry
Returns:
the Title ("what") of the event

setTitle

public void setTitle(java.lang.String title)
Sets the Title ("what") of the event

Specified by:
setTitle in interface CalendarEntry

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface CalendarEntry
Returns:
the Description of the event

setDescription

public void setDescription(java.lang.String description)
Sets the Description of the event

Specified by:
setDescription in interface CalendarEntry

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface CalendarEntry
Returns:
the Location of the event

setLocation

public void setLocation(java.lang.String location)
Sets the Location of the event

Specified by:
setLocation in interface CalendarEntry

getStart

public java.util.Date getStart()
Specified by:
getStart in interface CalendarEntry
Returns:
the Start date and time

setStart

public void setStart(java.util.Date start)
Sets the event start date and time

Specified by:
setStart in interface CalendarEntry

getEnd

public java.util.Date getEnd()
Specified by:
getEnd in interface CalendarEntry
Returns:
the End date and time

setEnd

public void setEnd(java.util.Date end)
Sets the event end date and time

Specified by:
setEnd in interface CalendarEntry

getRecurrenceRule

public java.lang.String getRecurrenceRule()
Gets the event recurrence rule.

Specified by:
getRecurrenceRule in interface CalendarEntry

setRecurrenceRule

public void setRecurrenceRule(java.lang.String recurrenceRule)
Sets the event recurrence rule

Specified by:
setRecurrenceRule in interface CalendarEntry

getLastRecurrence

public java.util.Date getLastRecurrence()
Gets the date of the last instance of this recurring event

Specified by:
getLastRecurrence in interface CalendarEntry

setLastRecurrence

public void setLastRecurrence(java.util.Date lastRecurrence)
Sets the date of the last instance of this recurring event

Specified by:
setLastRecurrence in interface CalendarEntry

isOutlook

public boolean isOutlook()
Is this an outlook based event?

Specified by:
isOutlook in interface CalendarEntry

setOutlook

public void setOutlook(boolean outlook)
Sets if this is an outlook based event or not

Specified by:
setOutlook in interface CalendarEntry

getOutlookUID

public java.lang.String getOutlookUID()
Gets the UID used by Outlook for this event. See CalendarEntry.isOutlook()

Specified by:
getOutlookUID in interface CalendarEntry

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:
setOutlookUID in interface CalendarEntry

getSharePointDocFolder

public java.lang.String getSharePointDocFolder()
Gets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events

Specified by:
getSharePointDocFolder in interface CalendarEntry

setSharePointDocFolder

public void setSharePointDocFolder(java.lang.String docFolder)
Sets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events

Specified by:
setSharePointDocFolder in interface CalendarEntry

getTags

public java.util.List getTags()
Specified by:
getTags in interface CalendarEntry
Returns:
the Tags associated with the event

getCreatedAt

public java.util.Date getCreatedAt()
Gets when this entry was created

Specified by:
getCreatedAt in interface CalendarEntry
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:
getModifiedAt in interface CalendarEntry
Returns:
the modification date and time

setModifiedAt

public void setModifiedAt(java.util.Date modifiedAt)

isAllDay

public 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. 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 - 2010 Alfresco Software, Inc. All Rights Reserved.