Package org.alfresco.repo.calendar
Class CalendarServiceImpl
- java.lang.Object
-
- org.alfresco.repo.calendar.CalendarServiceImpl
-
- All Implemented Interfaces:
CalendarService
public class CalendarServiceImpl extends java.lang.Object implements CalendarService
- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCALENDAR_COMPONENTprotected static java.lang.StringCANNED_QUERY_GET_CHILDRENprotected static java.lang.StringCANNED_QUERY_GET_ENTRIES
-
Constructor Summary
Constructors Constructor Description CalendarServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarEntrycreateCalendarEntry(java.lang.String siteShortName, CalendarEntry entry)Stores a newCalendarEntryinto the given site.voiddeleteCalendarEntry(CalendarEntry entry)Deletes an existingCalendarEntryfrom the repositoryCalendarEntrygetCalendarEntry(java.lang.String siteShortName, java.lang.String entryName)Retrieves an existingCalendarEntryfrom the repositoryprotected org.alfresco.service.cmr.repository.NodeRefgetSiteCalendarContainer(java.lang.String siteShortName, boolean create)Fetches the Calendar Container on a site, creating as required if requested.org.alfresco.query.PagingResults<CalendarEntry>listCalendarEntries(java.lang.String[] siteShortNames, java.util.Date from, java.util.Date to, org.alfresco.query.PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given sites, between the specified date range.org.alfresco.query.PagingResults<CalendarEntry>listCalendarEntries(java.lang.String[] siteShortNames, org.alfresco.query.PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given sites.org.alfresco.query.PagingResults<CalendarEntry>listCalendarEntries(java.lang.String siteShortName, org.alfresco.query.PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given site.org.alfresco.query.PagingResults<CalendarEntry>listOutlookCalendarEntries(java.lang.String siteShortName, java.lang.String outlookUID, org.alfresco.query.PagingRequest paging)Retrieves all Outlook basedCalendarEntryinstances in the repository for the given site, optionally filtered by the Outlook Event UID.voidsetCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends java.lang.Object>> cannedQueryRegistry)Set the registry ofcanned queriesvoidsetNodeDAO(NodeDAO nodeDAO)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)voidsetSiteService(SiteService siteService)voidsetTaggingService(TaggingService taggingService)voidsetTransactionService(TransactionService transactionService)CalendarEntryupdateCalendarEntry(CalendarEntry entry)Updates an existingCalendarEntryin the repository.
-
-
-
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
-
-
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<org.alfresco.query.CannedQueryFactory<? extends java.lang.Object>> cannedQueryRegistry)
Set the registry ofcanned 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:CalendarServiceRetrieves an existingCalendarEntryfrom the repository- Specified by:
getCalendarEntryin interfaceCalendarService
-
createCalendarEntry
public CalendarEntry createCalendarEntry(java.lang.String siteShortName, CalendarEntry entry)
Description copied from interface:CalendarServiceStores a newCalendarEntryinto the given site. The concrete classCalendarEntryDTOcan be used to create aCalendarEntryinstance for this.- Specified by:
createCalendarEntryin interfaceCalendarService- Returns:
- The newly created CalendarEntry
-
updateCalendarEntry
public CalendarEntry updateCalendarEntry(CalendarEntry entry)
Description copied from interface:CalendarServiceUpdates an existingCalendarEntryin the repository.- Specified by:
updateCalendarEntryin interfaceCalendarService- Returns:
- The updated CalendarEntry
-
deleteCalendarEntry
public void deleteCalendarEntry(CalendarEntry entry)
Description copied from interface:CalendarServiceDeletes an existingCalendarEntryfrom the repository- Specified by:
deleteCalendarEntryin interfaceCalendarService
-
listCalendarEntries
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(java.lang.String siteShortName, org.alfresco.query.PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves allCalendarEntryinstances in the repository for the given site.- Specified by:
listCalendarEntriesin interfaceCalendarService
-
listCalendarEntries
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(java.lang.String[] siteShortNames, org.alfresco.query.PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves allCalendarEntryinstances in the repository for the given sites.- Specified by:
listCalendarEntriesin interfaceCalendarService
-
listCalendarEntries
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(java.lang.String[] siteShortNames, java.util.Date from, java.util.Date to, org.alfresco.query.PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves allCalendarEntryinstances in the repository for the given sites, between the specified date range.- Specified by:
listCalendarEntriesin interfaceCalendarService
-
listOutlookCalendarEntries
public org.alfresco.query.PagingResults<CalendarEntry> listOutlookCalendarEntries(java.lang.String siteShortName, java.lang.String outlookUID, org.alfresco.query.PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves all Outlook basedCalendarEntryinstances in the repository for the given site, optionally filtered by the Outlook Event UID.- Specified by:
listOutlookCalendarEntriesin interfaceCalendarService
-
-