ALF-9156 - Partial CRUD support for Calendar Entries on a new Java Service, with stubbed tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-07-04 19:03:52 +00:00
parent 629bfa0735
commit e83d743100
8 changed files with 621 additions and 77 deletions

View File

@@ -18,6 +18,8 @@
*/
package org.alfresco.service.cmr.calendar;
import java.util.Date;
import org.alfresco.service.NotAuditable;
import org.alfresco.service.cmr.site.SiteInfo;
@@ -31,29 +33,30 @@ import org.alfresco.service.cmr.site.SiteInfo;
*/
public interface CalendarService {
/**
* Creates a new {@link CalendarEntry} in the repository for the
* specified site.
* Creates a new {@link CalendarEntry} for the given site, but
* doesn't save it to the repository.
*
* @return The System Assigned Name for the new entry
* @return The newly cre
*/
@NotAuditable
String createCalendarEntry(SiteInfo site, CalendarEntry entry);
CalendarEntry createCalendarEntry(String siteShortName, String eventTitle,
String eventDescription, Date from, Date to);
/**
* Updates an existing {@link CalendarEntry} in the repository
* Saves a {@link CalendarEntry} in the repository.
*/
@NotAuditable
void updateCalendarEntry(SiteInfo site, CalendarEntry entry);
void saveCalendarEntry(CalendarEntry entry);
/**
* Deletes an existing {@link CalendarEntry} from the repository
*/
@NotAuditable
void deleteCalendarEntry(SiteInfo site, CalendarEntry entry);
void deleteCalendarEntry(CalendarEntry entry);
/**
* Retrieves an existing {@link CalendarEntry} from the repository
*/
@NotAuditable
CalendarEntry getCalendarEntry(SiteInfo site, String name);
CalendarEntry getCalendarEntry(String siteShortName, String entryName);
}