Interface CheckSearchSession

All Superinterfaces:
AutoCloseable, CheckQuerySession, Closeable, OsidSession, OsidSession

public interface CheckSearchSession extends CheckQuerySession

This session provides methods for searching among Check objects. The search query is constructed using the CheckQuery.

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

This session defines views that offer differing behaviors for searching.

  • federated engine view: searches include checks in engines of which this engine is an ancestor in the engine hierarchy
  • isolated engine view: searches are restricted to checks in this engine

Checks may have a query record indicated by their respective record types. The query record is accessed via the CheckQuery.

  • Method Details

    • getCheckSearch

      CheckSearch getCheckSearch()
      Gets a check search.
      Returns:
      the check search
      Compliance:
      mandatory - This method must be implemented.
    • getCheckSearchOrder

      CheckSearchOrder getCheckSearchOrder()
      Gets a check search order. The CheckSearchOrder is supplied to a CheckSearch to specify the ordering of results.
      Returns:
      the check search order
      Compliance:
      mandatory - This method must be implemented.
    • getChecksBySearch

      Gets the search results matching the given search query using the given search.
      Parameters:
      checkQuery - the check query
      checkSearch - the check search
      Returns:
      the check search results
      Throws:
      NullArgumentException - checkQuery or checkSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - checkQuery or checkSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getCheckQueryFromInspector

      CheckQuery getCheckQueryFromInspector(CheckQueryInspector checkQueryInspector)
      Gets a check query from an inspector. The inspector is available from a CheckSearchResults.
      Parameters:
      checkQueryInspector - a check query inspector
      Returns:
      the check query
      Throws:
      NullArgumentException - checkQueryInspector is null
      UnsupportedException - checkQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.