org.alfresco.repo.calendar
Class CalendarServiceImpl

java.lang.Object
  extended by org.alfresco.repo.calendar.CalendarServiceImpl
All Implemented Interfaces:
CalendarService

public class CalendarServiceImpl
extends java.lang.Object
implements CalendarService

Since:
4.0

Field Summary
static java.lang.String CALENDAR_COMPONENT
           
protected static java.lang.String CANNED_QUERY_GET_CHILDREN
           
protected static java.lang.String CANNED_QUERY_GET_ENTRIES
           
 
Constructor Summary
CalendarServiceImpl()
           
 
Method Summary
 CalendarEntry createCalendarEntry(java.lang.String siteShortName, CalendarEntry entry)
          Stores a new CalendarEntry into the given site.
 void deleteCalendarEntry(CalendarEntry entry)
          Deletes an existing CalendarEntry from the repository
 CalendarEntry getCalendarEntry(java.lang.String siteShortName, java.lang.String entryName)
          Retrieves an existing CalendarEntry from the repository
protected  org.alfresco.service.cmr.repository.NodeRef getSiteCalendarContainer(java.lang.String siteShortName, boolean create)
          Fetches the Calendar Container on a site, creating as required if requested.
 org.alfresco.query.PagingResults listCalendarEntries(java.lang.String[] siteShortNames, java.util.Date from, java.util.Date to, org.alfresco.query.PagingRequest paging)
          Retrieves all CalendarEntry instances in the repository for the given sites, between the specified date range
 org.alfresco.query.PagingResults listCalendarEntries(java.lang.String[] siteShortNames, org.alfresco.query.PagingRequest paging)
          Retrieves all CalendarEntry instances in the repository for the given sites.
 org.alfresco.query.PagingResults listCalendarEntries(java.lang.String siteShortName, org.alfresco.query.PagingRequest paging)
          Retrieves all CalendarEntry instances in the repository for the given site.
 void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry)
          Set the registry of canned queries
 void setNodeDAO(NodeDAO nodeDAO)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setSiteService(SiteService siteService)
           
 void setTaggingService(TaggingService taggingService)
           
 void setTransactionService(TransactionService transactionService)
           
 CalendarEntry updateCalendarEntry(CalendarEntry entry)
          Updates an existing CalendarEntry in the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALENDAR_COMPONENT

public static final java.lang.String CALENDAR_COMPONENT
See Also:
Constant Field Values

CANNED_QUERY_GET_CHILDREN

protected static final java.lang.String CANNED_QUERY_GET_CHILDREN
See Also:
Constant Field Values

CANNED_QUERY_GET_ENTRIES

protected static final java.lang.String CANNED_QUERY_GET_ENTRIES
See Also:
Constant Field Values
Constructor Detail

CalendarServiceImpl

public CalendarServiceImpl()
Method Detail

setNodeDAO

public void setNodeDAO(NodeDAO nodeDAO)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setSiteService

public void setSiteService(SiteService siteService)

setTaggingService

public void setTaggingService(TaggingService taggingService)

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)

setTransactionService

public void setTransactionService(TransactionService transactionService)

setCannedQueryRegistry

public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry)
Set the registry of canned queries


getSiteCalendarContainer

protected org.alfresco.service.cmr.repository.NodeRef getSiteCalendarContainer(java.lang.String siteShortName,
                                                                               boolean create)
Fetches the Calendar Container on a site, creating as required if requested.


getCalendarEntry

public CalendarEntry getCalendarEntry(java.lang.String siteShortName,
                                      java.lang.String entryName)
Description copied from interface: CalendarService
Retrieves an existing CalendarEntry from the repository

Specified by:
getCalendarEntry in interface CalendarService

createCalendarEntry

public CalendarEntry createCalendarEntry(java.lang.String siteShortName,
                                         CalendarEntry entry)
Description copied from interface: CalendarService
Stores a new CalendarEntry into the given site. The concrete class CalendarEntryDTO can be used to create a CalendarEntry instance for this.

Specified by:
createCalendarEntry in interface CalendarService
Returns:
The newly created CalendarEntry

updateCalendarEntry

public CalendarEntry updateCalendarEntry(CalendarEntry entry)
Description copied from interface: CalendarService
Updates an existing CalendarEntry in the repository.

Specified by:
updateCalendarEntry in interface CalendarService
Returns:
The updated CalendarEntry

deleteCalendarEntry

public void deleteCalendarEntry(CalendarEntry entry)
Description copied from interface: CalendarService
Deletes an existing CalendarEntry from the repository

Specified by:
deleteCalendarEntry in interface CalendarService

listCalendarEntries

public org.alfresco.query.PagingResults listCalendarEntries(java.lang.String siteShortName,
                                                            org.alfresco.query.PagingRequest paging)
Description copied from interface: CalendarService
Retrieves all CalendarEntry instances in the repository for the given site.

Specified by:
listCalendarEntries in interface CalendarService

listCalendarEntries

public org.alfresco.query.PagingResults listCalendarEntries(java.lang.String[] siteShortNames,
                                                            org.alfresco.query.PagingRequest paging)
Description copied from interface: CalendarService
Retrieves all CalendarEntry instances in the repository for the given sites.

Specified by:
listCalendarEntries in interface CalendarService

listCalendarEntries

public org.alfresco.query.PagingResults listCalendarEntries(java.lang.String[] siteShortNames,
                                                            java.util.Date from,
                                                            java.util.Date to,
                                                            org.alfresco.query.PagingRequest paging)
Description copied from interface: CalendarService
Retrieves all CalendarEntry instances in the repository for the given sites, between the specified date range

Specified by:
listCalendarEntries in interface CalendarService


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