public interface AgendaCalendarService
| Modifier and Type | Method and Description |
|---|---|
int |
countCalendars(String username)
Count available calendars for a designated user
|
Calendar |
createCalendar(Calendar calendar)
Creates a new calendar
|
Calendar |
createCalendar(Calendar calendar,
String username)
Creates a new calendar
|
Calendar |
createCalendarInstance(long ownerId)
Create new
Calendar object instance |
Calendar |
createCalendarInstance(long ownerId,
String username)
Create new
Calendar object instance |
void |
deleteCalendarById(long calendarId)
Deletes an existing calendar
|
void |
deleteCalendarById(long calendarId,
String username)
Deletes an existing calendar
|
Calendar |
getCalendarById(long calendarId)
Retrieves a calendar identified by its technical identifier.
|
Calendar |
getCalendarById(long calendarId,
String username)
Retrieves a calendar identified by its technical identifier.
|
List<Calendar> |
getCalendars(int offset,
int limit,
String username)
Retrieve list of calendars for a designated user
|
List<Calendar> |
getCalendarsByOwnerIds(List<Long> ownerIds,
String username) |
Calendar |
getOrCreateCalendarByOwnerId(long ownerId) |
void |
updateCalendar(Calendar calendar)
Updates an existing calendar
|
void |
updateCalendar(Calendar calendar,
String username)
Updates an existing calendar
|
List<Calendar> getCalendars(int offset, int limit, String username) throws Exception
int countCalendars(String username) throws Exception
username - User name accessing calendarsException - when an error occurs while accessing databaseCalendar getCalendarById(long calendarId, String username) throws IllegalAccessException
calendarId - technical identifier of a calendarusername - User name accessing calendarCalendar objectIllegalAccessException - when user is not authorized to access
calendarCalendar getCalendarById(long calendarId)
calendarId - technical identifier of a calendarCalendar objectCalendar getOrCreateCalendarByOwnerId(long ownerId)
List<Calendar> getCalendarsByOwnerIds(List<Long> ownerIds, String username) throws IllegalAccessException
ownerIds - List of Identity technical identifierusername - User accessing list of calendarsList Calendar corresponding to calendar objects of
owners.IllegalAccessException - when user doesn't have acces to one of the
calendarsCalendar createCalendar(Calendar calendar, String username) throws IllegalAccessException
calendar - Calendar object to createusername - User name creating calendarCalendar with generated technical identifierIllegalAccessException - when user is not authorized to create a
calendar for the designated owner defined in objectCalendar createCalendarInstance(long ownerId)
Calendar object instanceCalendar createCalendarInstance(long ownerId, String username) throws IllegalAccessException
Calendar object instanceownerId - Identity technical id of the Calendarusername - user accessing CalendarCalendar object instanceIllegalAccessException - when user is not authorized to access
calendar of the designated ownervoid updateCalendar(Calendar calendar, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
calendar - Calendar object to updateusername - User name updating calendarIllegalAccessException - when user is not authorized to update the
calendarorg.exoplatform.commons.exception.ObjectNotFoundException - when the calendar identified by its
technical identifier is not foundvoid updateCalendar(Calendar calendar) throws org.exoplatform.commons.exception.ObjectNotFoundException
calendar - Calendar object to updateorg.exoplatform.commons.exception.ObjectNotFoundException - when the calendar identified by its
technical identifier is not foundvoid deleteCalendarById(long calendarId,
String username)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException
calendarId - Calendar technical identifier to deleteusername - User name deleting calendarIllegalAccessException - when user is not authorized to delete the
calendarorg.exoplatform.commons.exception.ObjectNotFoundException - when the calendar identified by its
technical identifier is not foundvoid deleteCalendarById(long calendarId)
throws org.exoplatform.commons.exception.ObjectNotFoundException
calendarId - Calendar technical identifier to deleteorg.exoplatform.commons.exception.ObjectNotFoundException - when the calendar identified by its
technical identifier is not foundCopyright © 2003–2021 eXo Platform SAS. All rights reserved.