Package org.alfresco.repo.calendar
Class CalendarServiceImpl
java.lang.Object
org.alfresco.repo.calendar.CalendarServiceImpl
- All Implemented Interfaces:
CalendarService
- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCalendarEntry(String siteShortName, CalendarEntry entry) Stores a newCalendarEntryinto the given site.voiddeleteCalendarEntry(CalendarEntry entry) Deletes an existingCalendarEntryfrom the repositorygetCalendarEntry(String siteShortName, String entryName) Retrieves an existingCalendarEntryfrom the repositoryprotected NodeRefgetSiteCalendarContainer(String siteShortName, boolean create) Fetches the Calendar Container on a site, creating as required if requested.org.alfresco.query.PagingResults<CalendarEntry>listCalendarEntries(String[] siteShortNames, Date from, 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(String[] siteShortNames, org.alfresco.query.PagingRequest paging) Retrieves allCalendarEntryinstances in the repository for the given sites.org.alfresco.query.PagingResults<CalendarEntry>listCalendarEntries(String siteShortName, org.alfresco.query.PagingRequest paging) Retrieves allCalendarEntryinstances in the repository for the given site.org.alfresco.query.PagingResults<CalendarEntry>listOutlookCalendarEntries(String siteShortName, 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 Object>> cannedQueryRegistry) Set the registry ofcanned queriesvoidsetNodeDAO(NodeDAO nodeDAO) voidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) voidsetSiteService(SiteService siteService) voidsetTaggingService(TaggingService taggingService) voidsetTransactionService(TransactionService transactionService) updateCalendarEntry(CalendarEntry entry) Updates an existingCalendarEntryin the repository.
-
Field Details
-
CALENDAR_COMPONENT
- See Also:
-
CANNED_QUERY_GET_CHILDREN
- See Also:
-
CANNED_QUERY_GET_ENTRIES
- See Also:
-
-
Constructor Details
-
CalendarServiceImpl
public CalendarServiceImpl()
-
-
Method Details
-
setNodeDAO
-
setNodeService
-
setSiteService
-
setTaggingService
-
setPermissionService
-
setTransactionService
-
setCannedQueryRegistry
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry) Set the registry ofcanned queries -
getSiteCalendarContainer
Fetches the Calendar Container on a site, creating as required if requested. -
getCalendarEntry
Description copied from interface:CalendarServiceRetrieves an existingCalendarEntryfrom the repository- Specified by:
getCalendarEntryin interfaceCalendarService
-
createCalendarEntry
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
Description copied from interface:CalendarServiceUpdates an existingCalendarEntryin the repository.- Specified by:
updateCalendarEntryin interfaceCalendarService- Returns:
- The updated CalendarEntry
-
deleteCalendarEntry
Description copied from interface:CalendarServiceDeletes an existingCalendarEntryfrom the repository- Specified by:
deleteCalendarEntryin interfaceCalendarService
-
listCalendarEntries
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(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(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(String[] siteShortNames, Date from, 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(String siteShortName, 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
-