public interface EventLookupSession extends OsidSession
This session provides methods for retrieving Event
s.
This session defines views that offer differing behaviors when retrieving multiple objects.
EventAdminSession.
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 |
canLookupEvents()
Tests if this user can perform
Event lookups. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
Event |
getEvent(Id eventId)
Gets the
Event specified by its Id. |
EventList |
getEvents()
Gets all
Events. |
EventList |
getEventsByGenusType(Type eventGenusType)
Gets an
EventList corresponding to the given event
genus Type which does not include events of genus types
derived from the specified Type. |
EventList |
getEventsByIds(IdList eventIds)
Gets an
EventList corresponding to the given
IdList. |
EventList |
getEventsByLocation(Id locationId)
Gets a list of events with the given location.
|
EventList |
getEventsByLocationInDateRange(Id locationId,
DateTime from,
DateTime to)
Gets an
EventList that fall within the given range
inclusive at the given location . |
EventList |
getEventsByLocationOnDate(Id locationId,
DateTime from,
DateTime to)
Gets an
EventList at the given location where the given
date range falls within the event dates inclusive. |
EventList |
getEventsByParentGenusType(Type eventGenusType)
Gets an
EventList corresponding to the given event
genus Type and include any additional event with genus
types derived from the specified Type. |
EventList |
getEventsByRecordType(Type eventRecordType)
Gets an
EventList containing the given event record
Type. |
EventList |
getEventsBySponsor(Id resourceId)
Gets a list of events with the given sponsor.
|
EventList |
getEventsBySponsorInDateRange(Id resourceId,
DateTime from,
DateTime to)
Gets an
EventList that fall within the given range
inclusive at the given location . |
EventList |
getEventsBySponsorOnDate(Id resourceId,
DateTime from,
DateTime to)
Gets an
EventList with the given sponsor where the
given date range falls within the event dates inclusive. |
EventList |
getEventsInDateRange(DateTime from,
DateTime to)
Gets an
EventList that fall within the given range
inclusive . |
EventList |
getEventsOnDate(DateTime from,
DateTime to)
Gets a list of events where the given date range falls within an event
inclusive.
|
EventList |
getUpcomingEvents(long number)
Gets the next upcoming events on this calendar.
|
void |
useAnyEffectiveEventView()
All events of any effective dates are returned by methods in this
session.
|
void |
useComparativeEventView()
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 |
useDenormalizedEventView()
A denormalized view expands recurring events into a series of
Events. |
void |
useEffectiveEventView()
Only events whose effective dates are current are returned by methods
in this session.
|
void |
useFederatedCalendarView()
Federates the view for methods in this session.
|
void |
useIsolatedCalendarView()
Isolates the view for methods in this session.
|
void |
useNormalizedEventView()
A normalized view uses a single
Event to represent a
set of recurring events. |
void |
usePlenaryEventView()
A complete view of the
Event returns is desired. |
void |
useSequesteredEventView()
The returns from the lookup methods omit sequestered events.
|
void |
useUnsequesteredEventView()
All events are returned including sequestered 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 canLookupEvents()
Event
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 useComparativeEventView()
mandatory
- This method is must be implemented. void usePlenaryEventView()
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 useEffectiveEventView()
mandatory
- This method is must be implemented. void useAnyEffectiveEventView()
mandatory
- This method is must be implemented. void useNormalizedEventView()
Event
to represent a
set of recurring events.mandatory
- This method is must be implemented. void useDenormalizedEventView()
Events.
mandatory
- This method is must be implemented. void useSequesteredEventView()
mandatory
- This method is must be implemented. void useUnsequesteredEventView()
mandatory
- This method is must be implemented. Event getEvent(Id eventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Event
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Event
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 normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.eventId
- Id
of the Event
NotFoundException
- eventId
not foundNullArgumentException
- eventId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. EventList getEventsByIds(IdList eventIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
EventList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
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 Events
may be omitted from the list and
may present the elements in any order including returning a unique
set.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.eventIds
- the list of Ids
to retrieve Event
listNotFoundException
- an Id was
not foundNullArgumentException
- eventIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByGenusType(Type eventGenusType) throws OperationFailedException, PermissionDeniedException
EventList
corresponding to the given event
genus Type
which does not include events of genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.eventGenusType
- an event genus type Event
listNullArgumentException
- eventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByParentGenusType(Type eventGenusType) throws OperationFailedException, PermissionDeniedException
EventList
corresponding to the given event
genus Type
and include any additional event with genus
types derived from the specified Type.
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.eventGenusType
- an event genus type Event
listNullArgumentException
- eventGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByRecordType(Type eventRecordType) throws OperationFailedException, PermissionDeniedException
EventList
containing the given event record
Type.
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.eventRecordType
- an event record type Event
listNullArgumentException
- eventRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.from
- starting dateto
- ending date Event
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsInDateRange(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
EventList
that fall within the given range
inclusive .
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.from
- start dateto
- end date Event
listInvalidArgumentException
- to
is less
than from
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getUpcomingEvents(long number) throws OperationFailedException, PermissionDeniedException
number
- the number of events Event
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByLocation(Id locationId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.locationId
- a location Event
listNullArgumentException
- locationId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByLocationOnDate(Id locationId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
EventList
at the given location where the given
date range falls within the event dates inclusive.
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.locationId
- a locationfrom
- start dateto
- end date Event
listInvalidArgumentException
- to
is less
than from
NullArgumentException
- locationId, from
, or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsByLocationInDateRange(Id locationId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
EventList
that fall within the given range
inclusive at the given location .
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.locationId
- a locationfrom
- start dateto
- end date Event
listInvalidArgumentException
- to
is less
than from
NullArgumentException
- locationId, from
, or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsBySponsor(Id resourceId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.resourceId
- a sponsor Event
listNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsBySponsorOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
EventList
with the given sponsor where the
given date range falls within the event dates inclusive.
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.resourceId
- a sponsorfrom
- start dateto
- end date Event
listInvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEventsBySponsorInDateRange(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
EventList
that fall within the given range
inclusive at the given location .
In plenary mode, the returned list contains all known
events or an error results. Otherwise, the returned list may contain
only those events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned.resourceId
- a sponsorfrom
- start dateto
- end date Event
listInvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. EventList getEvents() throws OperationFailedException, PermissionDeniedException
Events.
In plenary mode, the returned list contains all known events or an
error results. Otherwise, the returned list may contain only those
events that are accessible through this session.
In normalized mode, recurring events appear as a single event. In
denormalized mode, each element in the recurring series appears as a
separate event.
In effective mode, events are returned that are currently effective.
In any effective mode, effective events and those currently expired
are returned.
In sequestered mode, no sequestered events are returned. In
unsequestered mode, all events are returned. EventList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.