public interface RecurringEventLookupSession extends OsidSession
This session provides methods for retrieving RecurringEvent
s.
This session defines views that offer differing behaviors when retrieving multiple objects.
RecurringEventAdminSession.
Events may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
Event.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupRecurringEvents()
Tests if this user can perform
RecurringEvent lookups. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
RecurringEvent |
getRecurringEvent(Id recurringEventId)
Gets the
RecurringEvent specified by its Id. |
RecurringEventList |
getRecurringEvents()
Gets all
RecurringEvents. |
RecurringEventList |
getRecurringEventsByGenusType(Type recurringEventGenusType)
Gets a
RecurringEventList corresponding to the given
recurring event genus Type which does not include
recurring events of genus types derived from the specified
Type. |
RecurringEventList |
getRecurringEventsByIds(IdList recurringEventIds)
Gets a
RecurringEventList corresponding to the given
IdList. |
RecurringEventList |
getRecurringEventsByParentGenusType(Type recurringEventGenusType)
Gets a
RecurringEventList corresponding to the given
recurring event genus Type and include any additional
recurring event with genus types derived from the specified
Type. |
RecurringEventList |
getRecurringEventsByRecordType(Type recurringEventRecordType)
Gets a
RecurringEventList containing the given
recurring event record Type. |
RecurringEventList |
getRecurringEventsByScheduleSlot(Id scheduleSlotId)
Gets the
RecurringEvents containing the given schedule
slot. |
void |
useActiveRecurringEventView()
Only active recurring events are returned by methods in this session.
|
void |
useAnyStatusRecurringEventView()
All active and inactive recurring events are returned by methods in
this session.
|
void |
useComparativeRecurringEventView()
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 |
usePlenaryRecurringEventView()
A complete view of the
Event returns is desired. |
void |
useSequesteredRecurringEventView()
The returns from the lookup methods omit sequestered recurring events.
|
void |
useUnsequesteredRecurringEventView()
All recurring events are returned including sequestered recurring
events.
|
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 canLookupRecurringEvents()
RecurringEvent
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 useComparativeRecurringEventView()
mandatory
- This method is must be implemented. void usePlenaryRecurringEventView()
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. void useActiveRecurringEventView()
mandatory
- This method is must be implemented. void useAnyStatusRecurringEventView()
mandatory
- This method is must be implemented. void useSequesteredRecurringEventView()
mandatory
- This method is must be implemented. void useUnsequesteredRecurringEventView()
mandatory
- This method is must be implemented. RecurringEvent getRecurringEvent(Id recurringEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RecurringEvent
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
RecurringEvent
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to an Event
and retained for compatibility.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.recurringEventId
- Id
of the
RecurringEvent
NotFoundException
- recurringEventId
not
foundNullArgumentException
- recurringEventId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. RecurringEventList getRecurringEventsByIds(IdList recurringEventIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
RecurringEventList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
recurring 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 RecurringEvents
may be omitted from the
list and may present the elements in any order including returning a
unique set.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.recurringEventIds
- the list of Ids
to retrieve RecurringEvent
listNotFoundException
- an Id was
not foundNullArgumentException
- recurringEventIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RecurringEventList getRecurringEventsByGenusType(Type recurringEventGenusType) throws OperationFailedException, PermissionDeniedException
RecurringEventList
corresponding to the given
recurring event genus Type
which does not include
recurring events of genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
recurring events or an error results. Otherwise, the returned list may
contain only those recurring events that are accessible through this
session.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.recurringEventGenusType
- a recurring event genus type RecurringEvent
listNullArgumentException
- recurringEventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RecurringEventList getRecurringEventsByParentGenusType(Type recurringEventGenusType) throws OperationFailedException, PermissionDeniedException
RecurringEventList
corresponding to the given
recurring event genus Type
and include any additional
recurring event with genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
recurring events or an error results. Otherwise, the returned list may
contain only those recurring events that are accessible through this
session.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.recurringEventGenusType
- a recurring event genus type RecurringEvent
listNullArgumentException
- recurringEventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RecurringEventList getRecurringEventsByRecordType(Type recurringEventRecordType) throws OperationFailedException, PermissionDeniedException
RecurringEventList
containing the given
recurring event record Type.
In plenary mode, the returned list contains all known
recurring events or an error results. Otherwise, the returned list may
contain only those recurring events that are accessible through this
session.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.recurringEventRecordType
- a recurring event record type RecurringEvent
listNullArgumentException
- recurringEventRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RecurringEventList getRecurringEventsByScheduleSlot(Id scheduleSlotId) throws OperationFailedException, PermissionDeniedException
RecurringEvents
containing the given schedule
slot.
In plenary mode, the returned list contains all
matching recurring events or an error results. Otherwise, the returned
list may contain only those recurring events that are accessible
through this session.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned.scheduleSlotId
- a schedule slot Id
RecurringEvent
listNullArgumentException
- scheduleSlotId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RecurringEventList getRecurringEvents() throws OperationFailedException, PermissionDeniedException
RecurringEvents.
In plenary mode, the returned list contains all known recurring events
or an error results. Otherwise, the returned list may contain only
those recurring events that are accessible through this session.
In active mode, recurring events are returned that are currently
active. In any status mode, active and inactive recurring events are
returned. RecurringEventList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.