Interface ParameterSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ParameterQuerySession

public interface ParameterSearchSession extends ParameterQuerySession

This session provides methods for searching among Parameters . The search query is constructed using the ParameteryQuery .

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

This session defines views that offer differing behaviors for searching.

  • federated press view: searches include parameters in presses of which this press is an ancestor in the press hierarchy
  • isolated press view: searches are restricted to parameters in this press

Parameters may have a parameter record indicated by their respective record types. The parameter record is accessed via the ParameterQuery .

  • Method Details

    • getParameterSearch

      ParameterSearch getParameterSearch()
      Gets a parameter search.
      Returns:
      the parameter search
      Compliance:
      mandatory - This method must be implemented.
    • getParameterSearchOrder

      ParameterSearchOrder getParameterSearchOrder()
      Gets a parameter search order. The ParameterSearchOrder is supplied to a ParameterSearch to specify the ordering of results.
      Returns:
      the parameter search order
      Compliance:
      mandatory - This method must be implemented.
    • getParametersBySearch

      ParameterSearchResults getParametersBySearch(ParameterQuery parameterQuery, ParameterSearch parameterSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      parameterQuery - the parameter query
      parameterSearch - the parameter search
      Returns:
      the parameter search results
      Throws:
      NullArgumentException - parameterQuery or parameterSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - parameterQuery or parameterSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getParameterQueryFromInspector

      ParameterQuery getParameterQueryFromInspector(ParameterQueryInspector parameterQueryInspector)
      Gets a parameter query from an inspector. The inspector is available from a ParameterSearchResults .
      Parameters:
      parameterQueryInspector - a parameter query inspector
      Returns:
      the parameter query
      Throws:
      NullArgumentException - parameterQueryInspector is null
      UnsupportedException - parameterQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.