public interface CyclicEventCalendarSession extends OsidSession
This session provides methods to retrieve CyclicEvent to
Calendar mappings. A CyclicEvent may appear
in multiple Calendars. Each Calendar may
have its own authorizations governing who is allowed to look at it.
This lookup session defines two views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupCyclicEventCalendarMappings()
Tests if this user can perform lookups of cyclic event/calendar
mappings.
|
IdList |
getCalendarIdsByCyclicEvent(Id cyclicEventId)
Gets the list of
Calendar Ids mapped to
a CyclicEvent. |
CalendarList |
getCalendarsByCyclicEvent(Id cyclicEventId)
Gets the list of
Calendars mapped to a
CyclicEvent. |
IdList |
getCyclicEventIdsByCalendar(Id calendarId)
Gets the list of
CyclicEvent Ids
associated with a Calendar. |
IdList |
getCyclicEventIdsByCalendars(IdList calendarIds)
Gets the list of
CyclicEvent Ids corresponding to a
list of Calendars. |
CyclicEventList |
getCyclicEventsByCalendar(Id calendarId)
Gets the list of
CyclicEvents associated with a
Calendar. |
CyclicEventList |
getCyclicEventsByCalendars(IdList calendarIds)
Gets the list of
CyclicEvents corresponding to a list
of Calendars. |
void |
useComparativeCalendarView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryCalendarView()
A complete view of the
CyclicEvent and Calendar
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupCyclicEventCalendarMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeCalendarView()
mandatory - This method is must be implemented. void usePlenaryCalendarView()
CyclicEvent and Calendar
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory - This method is must be implemented. IdList getCyclicEventIdsByCalendar(Id calendarId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEvent Ids
associated with a Calendar. calendarId - Id of the Calendar Ids NotFoundException - calendarId is not
foundNullArgumentException - calendarId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CyclicEventList getCyclicEventsByCalendar(Id calendarId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEvents associated with a
Calendar. calendarId - Id of the Calendar NotFoundException - calendarId is not
foundNullArgumentException - calendarId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCyclicEventIdsByCalendars(IdList calendarIds) throws OperationFailedException, PermissionDeniedException
CyclicEvent Ids corresponding to a
list of Calendars. calendarIds - list of calendar Ids Ids NullArgumentException - calendarIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CyclicEventList getCyclicEventsByCalendars(IdList calendarIds) throws OperationFailedException, PermissionDeniedException
CyclicEvents corresponding to a list
of Calendars. calendarIds - list of calendar Ids NullArgumentException - calendarIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCalendarIdsByCyclicEvent(Id cyclicEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Calendar Ids mapped to
a CyclicEvent. cyclicEventId - Id of a CyclicEvent
Ids NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CalendarList getCalendarsByCyclicEvent(Id cyclicEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Calendars mapped to a
CyclicEvent. cyclicEventId - Id of a CyclicEvent
NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.