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

@@ -59,31 +59,44 @@ public interface CalendarEntry extends Serializable {
/**
* Sets the Description of the event
*/
void setDescription();
void setDescription(String description);
/**
* @return the Location of the event
*/
String getLocation();
// TODO More setters
/**
* @return the Tags associated with the event
* Sets the Location of the event
*/
List<String> getTags();
void setLocation(String location);
/**
* @return the Start date and time
*/
Date getStart();
/**
* Sets the event start date and time
*/
void setStart(Date start);
/**
* @return the End date and time
*/
Date getEnd();
// TODO All Date
/**
* Sets the event end date and time
*/
void setEnd(Date end);
/**
* @return the Tags associated with the event
*/
List<String> getTags();
// TODO All Day events
// TODO Doc folder

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);
}