public class CalendarServiceImpl extends Object implements CalendarService
Modifier and Type | Field and Description |
---|---|
static String |
CALENDAR_COMPONENT |
protected static String |
CANNED_QUERY_GET_CHILDREN |
protected static String |
CANNED_QUERY_GET_ENTRIES |
Constructor and Description |
---|
CalendarServiceImpl() |
Modifier and Type | Method and Description |
---|---|
CalendarEntry |
createCalendarEntry(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(String siteShortName,
String entryName)
Retrieves an existing
CalendarEntry from the repository |
protected org.alfresco.service.cmr.repository.NodeRef |
getSiteCalendarContainer(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 all
CalendarEntry instances 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 all
CalendarEntry instances in the repository
for the given sites. |
org.alfresco.query.PagingResults<CalendarEntry> |
listCalendarEntries(String siteShortName,
org.alfresco.query.PagingRequest paging)
Retrieves all
CalendarEntry instances 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 based
CalendarEntry instances in the repository
for the given site, optionally filtered by the Outlook Event UID. |
void |
setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> 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. |
public static final String CALENDAR_COMPONENT
protected static final String CANNED_QUERY_GET_CHILDREN
protected static final String CANNED_QUERY_GET_ENTRIES
public void setNodeDAO(NodeDAO nodeDAO)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setTaggingService(TaggingService taggingService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setTransactionService(TransactionService transactionService)
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry)
canned queries
protected org.alfresco.service.cmr.repository.NodeRef getSiteCalendarContainer(String siteShortName, boolean create)
public CalendarEntry getCalendarEntry(String siteShortName, String entryName)
CalendarService
CalendarEntry
from the repositorygetCalendarEntry
in interface CalendarService
public CalendarEntry createCalendarEntry(String siteShortName, CalendarEntry entry)
CalendarService
CalendarEntry
into the given site.
The concrete class CalendarEntryDTO
can be used
to create a CalendarEntry
instance for this.createCalendarEntry
in interface CalendarService
public CalendarEntry updateCalendarEntry(CalendarEntry entry)
CalendarService
CalendarEntry
in the repository.updateCalendarEntry
in interface CalendarService
public void deleteCalendarEntry(CalendarEntry entry)
CalendarService
CalendarEntry
from the repositorydeleteCalendarEntry
in interface CalendarService
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(String siteShortName, org.alfresco.query.PagingRequest paging)
CalendarService
CalendarEntry
instances in the repository
for the given site.listCalendarEntries
in interface CalendarService
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(String[] siteShortNames, org.alfresco.query.PagingRequest paging)
CalendarService
CalendarEntry
instances in the repository
for the given sites.listCalendarEntries
in interface CalendarService
public org.alfresco.query.PagingResults<CalendarEntry> listCalendarEntries(String[] siteShortNames, Date from, Date to, org.alfresco.query.PagingRequest paging)
CalendarService
CalendarEntry
instances in the repository
for the given sites, between the specified date range.listCalendarEntries
in interface CalendarService
public org.alfresco.query.PagingResults<CalendarEntry> listOutlookCalendarEntries(String siteShortName, String outlookUID, org.alfresco.query.PagingRequest paging)
CalendarService
CalendarEntry
instances in the repository
for the given site, optionally filtered by the Outlook Event UID.listOutlookCalendarEntries
in interface CalendarService
Copyright © 2005–2017 Alfresco Software. All rights reserved.