Interface EventSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, EventQuerySession, OsidSession, OsidSession
This session provides methods for searching Event objects. The
search query is constructed using the EventQuery . The event
record Type also specifies the record for the event query.
getEventsByQuery() is the basic search method and returns a list
of Events . A more advanced search may be performed with
getEventsBySearch() . It accepts an EventSearch in addition to
the query for the purpose of specifying additional options affecting the
entire search, such as ordering. getEventsBySearch() returns an
EventSearchResults that can be used to access the resulting
EventList or be used to perform a search within the result set through
EventSearch .
This session defines views that offer differing behaviors for searching.
- federated calendar view: searches include events in calendars of which this calendar is an ancestor in the calendar hierarchy
- isolated calendar view: searches are restricted to events in this calendar
- denormalized event view: recurring events are expanded into a series of non-recurring events
- normalized event view: a series of recurring events is
represented by a single
Event
Events may have a query record indicated by their respective record
types. The query record is accessed via the EventQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetEventQueryFromInspector(EventQueryInspector eventQueryInspector) Gets an event query from an inspector.getEventsBySearch(EventQuery eventQuery, EventSearch eventSearch) Gets the search results matching the given search query using the given search.Gets an event search.Gets an event search order.Methods inherited from interface EventQuerySession
canSearchEvents, getCalendar, getCalendarId, getEventQuery, getEventsByQuery, useDenormalizedEventView, useFederatedCalendarView, useIsolatedCalendarView, useNormalizedEventView, useSequesteredEventView, useUnsequesteredEventViewModifier and TypeMethodDescriptionbooleanTests if this user can performEventssearches.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.Gets an event query.getEventsByQuery(EventQuery eventQuery) Gets a list ofEventsmatching the given event query.voidA denormalized view expands recurring events into a series ofEvents.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA normalized view uses a singleEventto represent a set of recurring events.voidThe returns from the search methods omit sequestered events.voidAll replies are returned including sequestered events.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getEventSearch
EventSearch getEventSearch()Gets an event search.- Returns:
- the event search
- Compliance:
mandatory- This method must be implemented.
-
getEventSearchOrder
EventSearchOrder getEventSearchOrder()Gets an event search order. TheEventSearchOrderis supplied to anEventSearchto specify the ordering of results.- Returns:
- the event search order
- Compliance:
mandatory- This method must be implemented.
-
getEventsBySearch
EventSearchResults getEventsBySearch(EventQuery eventQuery, EventSearch eventSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
eventQuery- the event search queryeventSearch- the event search- Returns:
- the event search results
- Throws:
NullArgumentException-eventQueryoreventSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-eventSearchoreventQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getEventQueryFromInspector
Gets an event query from an inspector. The inspector is available from anEventSearchResults.- Parameters:
eventQueryInspector- an event query inspector- Returns:
- the event query
- Throws:
NullArgumentException-eventQueryInspectorisnullUnsupportedException-eventQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-