org.alfresco.repo.calendar
Class CalendarEntryImpl

java.lang.Object
  extended by org.alfresco.service.cmr.calendar.CalendarEntryDTO
      extended by org.alfresco.repo.calendar.CalendarEntryImpl
All Implemented Interfaces:
java.io.Serializable, PermissionCheckValue, CalendarEntry

public class CalendarEntryImpl
extends CalendarEntryDTO

Since:
4.0
See Also:
Serialized Form

Constructor Summary
protected CalendarEntryImpl(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
 org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
           
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Get the underlying node value that needs to be permission checked.
 java.lang.String getSystemName()
           
protected static void populate(CalendarEntry entry, java.util.Map properties)
          Populates a Calendar Entry from the given node properties.
protected  void populate(java.util.Map properties)
          Populates this entry from the given node properties Doesn't handle tags, those are done in the service itself.
protected  void recordStorageDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, java.lang.String systemName)
           
protected  void setTags(java.util.List tags)
          Sets the list of tags for the entry
protected static java.util.Map 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarEntryImpl

protected CalendarEntryImpl(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 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: PermissionCheckValue
Get the underlying node value that needs to be permission checked.

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

getContainerNodeRef

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

getSystemName

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

toNodeProperties

protected static java.util.Map 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 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 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 tags)
Sets the list of tags for the entry



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.