Package org.alfresco.repo.calendar
Class CalendarEntryImpl
- java.lang.Object
-
- org.alfresco.service.cmr.calendar.CalendarEntryDTO
-
- org.alfresco.repo.calendar.CalendarEntryImpl
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,CalendarEntry
public class CalendarEntryImpl extends CalendarEntryDTO
- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCalendarEntryImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, java.lang.String systemName)Wraps an existing Calendar Entry node
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetContainerNodeRef()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.java.lang.StringgetSystemName()protected voidpopulate(java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties)Populates this entry from the given node properties Doesn't handle tags, those are done in the service itself.protected static voidpopulate(CalendarEntry entry, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties)Populates a Calendar Entry from the given node properties.protected voidrecordStorageDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, java.lang.String systemName)protected voidsetTags(java.util.List<java.lang.String> tags)Sets the list of tags for the entryprotected static java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>toNodeProperties(CalendarEntry entry)Builds up the node properties for a given Calendar Entry Doesn't handle tags, those must be done in the service itself.-
Methods inherited from class org.alfresco.service.cmr.calendar.CalendarEntryDTO
getCreatedAt, getDescription, getEnd, getLastRecurrence, getLocation, getModifiedAt, getOutlookUID, getRecurrenceRule, getSharePointDocFolder, getStart, getTags, getTitle, isAllDay, isOutlook, setCreatedAt, setDescription, setEnd, setLastRecurrence, setLocation, setModifiedAt, setOutlook, setOutlookUID, setRecurrenceRule, setSharePointDocFolder, setStart, setTitle
-
-
-
-
Method Detail
-
recordStorageDetails
protected void recordStorageDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, java.lang.String systemName)
-
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- Overrides:
getNodeRefin classCalendarEntryDTO- Returns:
- the NodeRef of the underlying calendar entry
-
getContainerNodeRef
public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
- Specified by:
getContainerNodeRefin interfaceCalendarEntry- Overrides:
getContainerNodeRefin classCalendarEntryDTO- Returns:
- the NodeRef of the calendar's container in the site
-
getSystemName
public java.lang.String getSystemName()
- Specified by:
getSystemNamein interfaceCalendarEntry- Overrides:
getSystemNamein classCalendarEntryDTO- Returns:
- the System generated name for the event
-
toNodeProperties
protected static java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> toNodeProperties(CalendarEntry entry)
Builds up the node properties for a given Calendar Entry Doesn't handle tags, those must be done in the service itself.
-
populate
protected static void populate(CalendarEntry entry, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties)
Populates a Calendar Entry from the given node properties. Doesn't handle tags, those must be done in the service itself.
-
populate
protected void populate(java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> properties)
Populates this entry from the given node properties Doesn't handle tags, those are done in the service itself.
-
setTags
protected void setTags(java.util.List<java.lang.String> tags)
Sets the list of tags for the entry
-
-