Interface PressSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, PressQuerySession

public interface PressSearchSession extends PressQuerySession

This session provides methods for searching among Presses . The search query is constructed using the PressQuery .

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

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

  • Method Details

    • getPressSearch

      PressSearch getPressSearch()
      Gets an press search.
      Returns:
      the press search
      Compliance:
      mandatory - This method must be implemented.
    • getPressSearchOrder

      PressSearchOrder getPressSearchOrder()
      Gets an press search order. The PressSearchOrder is supplied to a PressSearch to specify the ordering of results.
      Returns:
      the press search order
      Compliance:
      mandatory - This method must be implemented.
    • getPressesBySearch

      PressSearchResults getPressesBySearch(PressQuery pressQuery, PressSearch pressSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      pressQuery - the press query
      pressSearch - the press search
      Returns:
      the press search results
      Throws:
      NullArgumentException - pressQuery or pressSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - pressQuery or pressSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getPressQueryFromInspector

      PressQuery getPressQueryFromInspector(PressQueryInspector pressQueryInspector)
      Gets an press query from an inspector. The inspector is available from a PressSearchResults .
      Parameters:
      pressQueryInspector - an press query inspector
      Returns:
      the press query
      Throws:
      NullArgumentException - pressQueryInspector is null
      UnsupportedException - pressQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.