Interface CatalogueSearchSession

All Superinterfaces:
AutoCloseable, CatalogueQuerySession, Closeable, OsidSession, OsidSession

public interface CatalogueSearchSession extends CatalogueQuerySession

This session provides methods for searching Catalogues. The search query is constructed using the CatalogueQuery. The catalogue record Type also specifies the catalogue query record for the catalogue query.

getCataloguesByQuery() is the basic search method and returns a list of Catalogue elements. A more advanced search may be performed with getCataloguesBySearch(). It accepts a CatalogueSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCataloguesBySearch() returns a CatalogueSearchResults that can be used to access the resulting CatalogueList or be used to perform a search within the result set through CatalogueSearch.

Catalogues may have a query record indicated by their respective record types. The query record is accessed via the CatalogueQuery. The returns in this session may not be cast directly to these interfaces.

  • Method Details

    • getCatalogueSearch

      CatalogueSearch getCatalogueSearch()
      Gets a catalogue search.
      Returns:
      the catalogue search
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogueSearchOrder

      CatalogueSearchOrder getCatalogueSearchOrder()
      Gets a catalogue search order. The CatalogueSearchOrder is supplied to a CatalogueSearch to specify the ordering of results.
      Returns:
      the catalogue search order
      Compliance:
      mandatory - This method must be implemented.
    • getCataloguesBySearch

      CatalogueSearchResults getCataloguesBySearch(CatalogueQuery catalogueQuery, CatalogueSearch catalogueSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search.
      Parameters:
      catalogueQuery - the catalogue query
      catalogueSearch - the catalogue search
      Returns:
      the search results
      Throws:
      NullArgumentException - catalogueQuery or catalogueSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - catalogueQuery or catalogueSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getCatalogueQueryFromInspector

      CatalogueQuery getCatalogueQueryFromInspector(CatalogueQueryInspector catalogueQueryInspector)
      Gets a catalogue query from an inspector. The inspector is available from a CatalogueSearchResults.
      Parameters:
      catalogueQueryInspector - a catalogue query inspector
      Returns:
      the catalogue query
      Throws:
      NullArgumentException - catalogueQueryInspector is null
      UnsupportedException - icatalogueQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.