public interface EventCyclicEventLookupSession extends OsidSession
This session provides methods to retrieve CyclicEvent to
Event mappings. An Event may be mapped to
multiple CyclicEvents explicitly or through a rule-based
generation.
This lookup session defines two views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupEventCyclicEventMappings()
Tests if this user can perform lookups of event/cyclic event mappings.
|
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
IdList |
getCyclicEventIdsByEvent(Id eventId)
Gets the list of
CyclicEvent Ids mapped
to an Event. |
CyclicEventList |
getCyclicEventsByEvent(Id eventId)
Gets the list of
CyclicEvents mapped to an
Event. |
IdList |
getEventIdsByCyclicEvent(Id cyclicEventId)
Gets the list of
Event Ids associated
with a CyclicEvent. |
IdList |
getEventIdsByCyclicEventAndDate(Id cyclicEventId,
DateTime from,
DateTime to)
Gets the list of
Event Ids between the
given date range included associated with a CyclicEvent. |
EventList |
getEventsByCyclicEvent(Id cyclicEventId)
Gets the list of
Events associated with a
CyclicEvent. |
EventList |
getEventsByCyclicEventAndDate(Id cyclicEventId,
DateTime from,
DateTime to)
Gets the list of
Events between the given date range
included associated with a CyclicEvent. |
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 |
useFederatedCalendarView()
Federates the view for methods in this session.
|
void |
useIsolatedCalendarView()
Isolates the view for methods in this session.
|
void |
usePlenaryCalendarView()
A complete view of the
CyclicEvent and Event
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCalendarId()
Calendar Id associated with
this session. Calendar Id associated with this sessionmandatory - This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar associated with this session. Calendar associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupEventCyclicEventMappings()
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 Event
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. void useFederatedCalendarView()
mandatory - This method is must be implemented. void useIsolatedCalendarView()
mandatory - This method is must be implemented. IdList getEventIdsByCyclicEvent(Id cyclicEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Event Ids associated
with a CyclicEvent. cyclicEventId - Id of the CyclicEvent
Ids NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. EventList getEventsByCyclicEvent(Id cyclicEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Events associated with a
CyclicEvent. cyclicEventId - Id of the CyclicEvent
NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getEventIdsByCyclicEventAndDate(Id cyclicEventId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException
Event Ids between the
given date range included associated with a CyclicEvent.
cyclicEventId - Id of the CyclicEvent
from - starting dateto - ending date Ids InvalidArgumentException - from is
greater than to NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. EventList getEventsByCyclicEventAndDate(Id cyclicEventId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException
Events between the given date range
included associated with a CyclicEvent. cyclicEventId - Id of the CyclicEvent
from - starting dateto - ending dateInvalidArgumentException - from is
greater than to NotFoundException - cyclicEventId is not
foundNullArgumentException - cyclicEventId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCyclicEventIdsByEvent(Id eventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEvent Ids mapped
to an Event. eventId - Id of an Event Ids NotFoundException - eventId is not foundNullArgumentException - eventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CyclicEventList getCyclicEventsByEvent(Id eventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEvents mapped to an
Event. eventId - Id of an Event NotFoundException - eventId is not foundNullArgumentException - eventId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.