public interface ICalendarManager extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
default void |
beginConversation()
Mark the current transient conversation long-running.
|
void |
close()
Release any resources
|
void |
deleteCalendar(String calendarID)
Deletes a calendar for given calendar ID.
|
default void |
endConversation()
Mark the current long-running conversation transient.
|
ICalendar |
getCalendarByAlias(String alias)
Returns calendar object by its alias.
|
ICalendar |
getCalendarByID(String calendarID)
Returns calendar object by its ID.
|
String |
getDefaultCalendarID()
Returns system default calendar ID.
|
default boolean |
isConversation()
Returns if the conversation is marked transient or long-running
|
List<ICalendar> |
listCalendars(String location)
Returns list of
ICalendar objects stored in the specified location |
void |
setDefaultCalendarID(String calendarID)
Sets the calendar with the supplied ID as the default system calendar.
|
void |
storeCalendar(String location,
ICalendar calendar)
Stores specified calendar object at the specified location folder.
|
ICalendar getCalendarByID(String calendarID) throws CalendarException
calendarID
- ICalendar
object for specified ID or nullCalendarException
ICalendar getCalendarByAlias(String alias) throws CalendarException
alias
- calendar alias valueICalendar
object for specified alias or nullCalendarException
List<ICalendar> listCalendars(String location) throws CalendarException
ICalendar
objects stored in the specified locationlocation
- ID or alias of the storage folder for calendarsCalendarException
void deleteCalendar(String calendarID) throws CalendarException
calendarID
- CalendarException
void storeCalendar(String location, ICalendar calendar) throws CalendarException
location
- ID or alias of the folder to store calendar atcalendar
- calendar object to store. If this is a new calendar then its ID will be populated with
valid valueCalendarException
String getDefaultCalendarID() throws CalendarException
CalendarException
void setDefaultCalendarID(String calendarID) throws CalendarException
calendarID
- calendar IDCalendarException
void close()
close
in interface AutoCloseable
default void beginConversation()
#end()
is invoked.default void endConversation()
default boolean isConversation()