org.sakaiproject.component.legacy.calendar
Interface BaseCalendarService.Storage

All Known Implementing Classes:
DbCalendarService.DbStorage
Enclosing interface:
BaseCalendarService

protected static interface BaseCalendarService.Storage

Storage implementation


Method Summary
 void cancelCalendar(CalendarEdit edit)
          Cancel a calendar edit.
 void cancelEvent(Calendar calendar, CalendarEventEdit edit)
          Cancel an edit.
 boolean checkCalendar(String ref)
          Return true if the identified calendar exists.
 boolean checkEvent(Calendar calendar, String eventId)
          Does this events exist in a calendar?
 void close()
          Write and Close.
 void commitCalendar(CalendarEdit edit)
          Commit a calendar edit.
 void commitEvent(Calendar calendar, CalendarEventEdit edit)
          Commit an edit.
 CalendarEdit editCalendar(String ref)
          Get a calendar locked for update
 CalendarEventEdit editEvent(Calendar calendar, String eventId)
          Get a event from a calendar locked for update
 Calendar getCalendar(String ref)
          Return the identified calendar, or null if not found.
 List getCalendars()
          Get a list of all calendars
 CalendarEvent getEvent(Calendar calendar, String eventId)
          Get a event from a calendar.
 List getEvents(Calendar calendar)
          Get the events from a calendar (within this time range, or all if null)
 void open()
          Open and read.
 CalendarEdit putCalendar(String ref)
          Keep a new calendar.
 CalendarEventEdit putEvent(Calendar calendar, String id)
          Make and lock a new event.
 void removeCalendar(CalendarEdit calendar)
          Forget about a calendar.
 void removeEvent(Calendar calendar, CalendarEventEdit edit)
          Forget about a event.
 

Method Detail

open

public void open()
Open and read.


close

public void close()
Write and Close.


getCalendar

public Calendar getCalendar(String ref)
Return the identified calendar, or null if not found.


checkCalendar

public boolean checkCalendar(String ref)
Return true if the identified calendar exists.


getCalendars

public List getCalendars()
Get a list of all calendars


putCalendar

public CalendarEdit putCalendar(String ref)
Keep a new calendar.


editCalendar

public CalendarEdit editCalendar(String ref)
Get a calendar locked for update


commitCalendar

public void commitCalendar(CalendarEdit edit)
Commit a calendar edit.


cancelCalendar

public void cancelCalendar(CalendarEdit edit)
Cancel a calendar edit.


removeCalendar

public void removeCalendar(CalendarEdit calendar)
Forget about a calendar.


getEvent

public CalendarEvent getEvent(Calendar calendar,
                              String eventId)
Get a event from a calendar.


editEvent

public CalendarEventEdit editEvent(Calendar calendar,
                                   String eventId)
Get a event from a calendar locked for update


commitEvent

public void commitEvent(Calendar calendar,
                        CalendarEventEdit edit)
Commit an edit.


cancelEvent

public void cancelEvent(Calendar calendar,
                        CalendarEventEdit edit)
Cancel an edit.


checkEvent

public boolean checkEvent(Calendar calendar,
                          String eventId)
Does this events exist in a calendar?


getEvents

public List getEvents(Calendar calendar)
Get the events from a calendar (within this time range, or all if null)


putEvent

public CalendarEventEdit putEvent(Calendar calendar,
                                  String id)
Make and lock a new event.


removeEvent

public void removeEvent(Calendar calendar,
                        CalendarEventEdit edit)
Forget about a event.