org.alfresco.service.cmr.calendar
Interface CalendarService

All Known Implementing Classes:
CalendarServiceImpl

public interface CalendarService

The Calendar service.

Since:
4.0

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
 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.
 CalendarEntry updateCalendarEntry(CalendarEntry entry)
          Updates an existing CalendarEntry in the repository.
 

Method Detail

createCalendarEntry

@NotAuditable
CalendarEntry createCalendarEntry(java.lang.String siteShortName,
                                               CalendarEntry entry)
Stores a new CalendarEntry into the given site. The concrete class CalendarEntryDTO can be used to create a CalendarEntry instance for this.

Returns:
The newly created CalendarEntry

updateCalendarEntry

@NotAuditable
CalendarEntry updateCalendarEntry(CalendarEntry entry)
Updates an existing CalendarEntry in the repository.

Returns:
The updated CalendarEntry

deleteCalendarEntry

@NotAuditable
void deleteCalendarEntry(CalendarEntry entry)
Deletes an existing CalendarEntry from the repository


getCalendarEntry

@NotAuditable
CalendarEntry getCalendarEntry(java.lang.String siteShortName,
                                            java.lang.String entryName)
Retrieves an existing CalendarEntry from the repository


listCalendarEntries

@NotAuditable
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.


listCalendarEntries

@NotAuditable
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.


listCalendarEntries

@NotAuditable
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



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