Interface CyclicEventSearchSession

All Superinterfaces:
AutoCloseable, Closeable, CyclicEventQuerySession, OsidSession, OsidSession

public interface CyclicEventSearchSession extends CyclicEventQuerySession

This session provides methods for searching CyclicEvents . The search query is constructed using the CyclicEventQuery . the cyclic event record Type also specifies the record for the cyclic event query.

getCyclicEventsByQuery() is the basic search method and returns a list of CyclicEvents . A more advanced search may be performed with getCyclicEventsBySearch() .It accepts a CyclicEventSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCyclicEventsBySearch() returns a CyclicEventSearchResults that can be used to access the resulting CyclicEventList or be used to perform a search within the result set through CyclicEventSearch .

This session defines views that offer differing behaviors for searching.

  • federated calendar view: searches include cyclic events in calendars of which this calendar is an ancestor in the calendar hierarchy
  • isolated calendar view: searches are restricted to cyclic events in this calendar

Cyclic events may have a query record indicated by their respective record types. The query record is accessed via the CyclicEventQuery .

  • Method Details

    • getCyclicEventSearch

      CyclicEventSearch getCyclicEventSearch()
      Gets a cyclic event search.
      Returns:
      the cyclic event search
      Compliance:
      mandatory - This method must be implemented.
    • getCyclicEventSearchOrder

      CyclicEventSearchOrder getCyclicEventSearchOrder()
      Gets a cyclic event search order. The CyclicEventSearchOrder is supplied to a CyclicEventSearch to specify the ordering of results.
      Returns:
      the cyclic event search order
      Compliance:
      mandatory - This method must be implemented.
    • getCyclicEventsBySearch

      CyclicEventSearchResults getCyclicEventsBySearch(CyclicEventQuery cyclicEventQuery, CyclicEventSearch cyclicEventSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      cyclicEventQuery - the cyclic event search query
      cyclicEventSearch - the cyclic event search
      Returns:
      the cyclic event search results
      Throws:
      NullArgumentException - cyclicEventQuery or cyclicEventSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - cyclicEventSearch or cyclicEventQuery is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getCyclicEventQueryFromInspector

      CyclicEventQuery getCyclicEventQueryFromInspector(CyclicEventQueryInspector cyclicEventQueryInspector)
      Gets a cyclic event query from an inspector. The inspector is available from a CyclicEventSearchResults .
      Parameters:
      cyclicEventQueryInspector - a cyclic event query inspector
      Returns:
      the cyclic event query
      Throws:
      NullArgumentException - cyclicEventQueryInspector is null
      UnsupportedException - cyclicEventQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.