Package org.alfresco.repo.calendar
Class CalendarServiceImpl
- java.lang.Object
-
- org.alfresco.repo.calendar.CalendarServiceImpl
-
- All Implemented Interfaces:
CalendarService
public class CalendarServiceImpl extends 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 StringCALENDAR_COMPONENTprotected static StringCANNED_QUERY_GET_CHILDRENprotected static StringCANNED_QUERY_GET_ENTRIES
-
Constructor Summary
Constructors Constructor Description CalendarServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarEntrycreateCalendarEntry(String siteShortName, CalendarEntry entry)Stores a newCalendarEntryinto the given site.voiddeleteCalendarEntry(CalendarEntry entry)Deletes an existingCalendarEntryfrom the repositoryCalendarEntrygetCalendarEntry(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.PagingResults<CalendarEntry>listCalendarEntries(String[] siteShortNames, Date from, Date to, PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given sites, between the specified date range.PagingResults<CalendarEntry>listCalendarEntries(String[] siteShortNames, PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given sites.PagingResults<CalendarEntry>listCalendarEntries(String siteShortName, PagingRequest paging)Retrieves allCalendarEntryinstances in the repository for the given site.PagingResults<CalendarEntry>listOutlookCalendarEntries(String siteShortName, String outlookUID, PagingRequest paging)Retrieves all Outlook basedCalendarEntryinstances in the repository for the given site, optionally filtered by the Outlook Event UID.voidsetCannedQueryRegistry(NamedObjectRegistry<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)CalendarEntryupdateCalendarEntry(CalendarEntry entry)Updates an existingCalendarEntryin the repository.
-
-
-
Field Detail
-
CALENDAR_COMPONENT
public static final String CALENDAR_COMPONENT
- See Also:
- Constant Field Values
-
CANNED_QUERY_GET_CHILDREN
protected static final String CANNED_QUERY_GET_CHILDREN
- See Also:
- Constant Field Values
-
CANNED_QUERY_GET_ENTRIES
protected static final String CANNED_QUERY_GET_ENTRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNodeDAO
public void setNodeDAO(NodeDAO nodeDAO)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setSiteService
public void setSiteService(SiteService siteService)
-
setTaggingService
public void setTaggingService(TaggingService taggingService)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
setCannedQueryRegistry
public void setCannedQueryRegistry(NamedObjectRegistry<CannedQueryFactory<? extends Object>> cannedQueryRegistry)
Set the registry ofcanned queries
-
getSiteCalendarContainer
protected NodeRef getSiteCalendarContainer(String siteShortName, boolean create)
Fetches the Calendar Container on a site, creating as required if requested.
-
getCalendarEntry
public CalendarEntry getCalendarEntry(String siteShortName, String entryName)
Description copied from interface:CalendarServiceRetrieves an existingCalendarEntryfrom the repository- Specified by:
getCalendarEntryin interfaceCalendarService
-
createCalendarEntry
public CalendarEntry createCalendarEntry(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 PagingResults<CalendarEntry> listCalendarEntries(String siteShortName, PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves allCalendarEntryinstances in the repository for the given site.- Specified by:
listCalendarEntriesin interfaceCalendarService
-
listCalendarEntries
public PagingResults<CalendarEntry> listCalendarEntries(String[] siteShortNames, PagingRequest paging)
Description copied from interface:CalendarServiceRetrieves allCalendarEntryinstances in the repository for the given sites.- Specified by:
listCalendarEntriesin interfaceCalendarService
-
listCalendarEntries
public PagingResults<CalendarEntry> listCalendarEntries(String[] siteShortNames, Date from, Date to, 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 PagingResults<CalendarEntry> listOutlookCalendarEntries(String siteShortName, String outlookUID, 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
-
-