public interface CyclicEventLookupSession extends OsidSession
This session provides methods for retrieving CyclicEvent
s.
This session defines views that offer differing behaviors when retrieving multiple objects.
CyclicEventAdminSession.
Cyclic events may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the CyclicEvent.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupCyclicEvents()
Tests if this user can perform
CyclicEvent lookups. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
CyclicEvent |
getCyclicEvent(Id cyclicEventId)
Gets the
CyclicEvent specified by its Id. |
CyclicEventList |
getCyclicEvents()
Gets all
CyclicEvents. |
CyclicEventList |
getCyclicEventsByGenusType(Type cyclicEventGenusType)
Gets a
CyclicEventList corresponding to the given event
genus Type which does not include cyclic events of
genus types derived from the specified Type. |
CyclicEventList |
getCyclicEventsByIds(IdList cyclicEventIds)
Gets a
CyclicEventList corresponding to the given
IdList. |
CyclicEventList |
getCyclicEventsByParentGenusType(Type cyclicEventGenusType)
Gets a
CyclicEventList corresponding to the given event
genus Type and include any additional cyclic event with
genus types derived from the specified Type. |
CyclicEventList |
getCyclicEventsByRecordType(Type cyclicEventRecordType)
Gets a
CyclicEventList containing the given event
record Type. |
void |
useComparativeCyclicEventView()
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 |
usePlenaryCyclicEventView()
A complete view of the
CyclicEvent returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canLookupCyclicEvents()
CyclicEvent
lookups. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED.
This is intended as a
hint to an application that may opt not to offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeCyclicEventView()
mandatory
- This method is must be implemented. void usePlenaryCyclicEventView()
CyclicEvent
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. CyclicEvent getCyclicEvent(Id cyclicEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEvent
specified by its Id.
In plenary mode, the exact Id
is found or a
NOT_FOUND
results. Otherwise, the returned
CyclicEvent
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a CyclicEvent
and retained for
compatibility.cyclicEventId
- Id
of the CyclicEvent
NotFoundException
- cyclicEventId
not
foundNullArgumentException
- cyclicEventId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. CyclicEventList getCyclicEventsByIds(IdList cyclicEventIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicEventList
corresponding to the given
IdList.
In plenary mode, the returned list contains all
of the cyclic events specified in the Id
list, in the
order of the list, including duplicates, or an error results if an
Id
in the supplied list is not found or inaccessible.
Otherwise, inaccessible CyclicEvents
may be omitted
from the list and may present the elements in any order including
returning a unique set.cyclicEventIds
- the list of Ids
to retrieve CyclicEvent
listNotFoundException
- an Id was
not foundNullArgumentException
- cyclicEventIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CyclicEventList getCyclicEventsByGenusType(Type cyclicEventGenusType) throws OperationFailedException, PermissionDeniedException
CyclicEventList
corresponding to the given event
genus Type
which does not include cyclic events of
genus types derived from the specified Type.
In plenary
mode, the returned list contains all known cyclic events or an error
results. Otherwise, the returned list may contain only those cyclic
events that are accessible through this session.cyclicEventGenusType
- a cyclic event genus type Event
listNullArgumentException
- cyclicEventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CyclicEventList getCyclicEventsByParentGenusType(Type cyclicEventGenusType) throws OperationFailedException, PermissionDeniedException
CyclicEventList
corresponding to the given event
genus Type
and include any additional cyclic event with
genus types derived from the specified Type.
In plenary
mode, the returned list contains all known cyclic events or an error
results. Otherwise, the returned list may contain only those cyclic
events that are accessible through this session.cyclicEventGenusType
- a cyclic event genus type CyclicEvent
listNullArgumentException
- cyclicEventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CyclicEventList getCyclicEventsByRecordType(Type cyclicEventRecordType) throws OperationFailedException, PermissionDeniedException
CyclicEventList
containing the given event
record Type.
In plenary mode, the returned list
contains all known cyclic events or an error results. Otherwise, the
returned list may contain only those cyclic events that are accessible
through this session.cyclicEventRecordType
- a cyclic event record type Event
listNullArgumentException
- cyclicEventRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CyclicEventList getCyclicEvents() throws OperationFailedException, PermissionDeniedException
CyclicEvents.
In plenary mode, the returned
list contains all known cyclic events or an error results. Otherwise,
the returned list may contain only those cyclic events that are
accessible through this session. CyclicEventList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.