Interface DistributorSearchSession

All Superinterfaces:
AutoCloseable, Closeable, DistributorQuerySession, OsidSession, OsidSession

public interface DistributorSearchSession extends DistributorQuerySession

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

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

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

  • Method Details

    • getDistributorSearch

      DistributorSearch getDistributorSearch()
      Gets a distributor search.
      Returns:
      the distributor search
      Compliance:
      mandatory - This method must be implemented.
    • getDistributorSearchOrder

      DistributorSearchOrder getDistributorSearchOrder()
      Gets a distributor search order. The DistributorSearchOrder is supplied to a DistributorSearch to specify the ordering of results.
      Returns:
      the distributor search order
      Compliance:
      mandatory - This method must be implemented.
    • getDistributorsBySearch

      DistributorSearchResults getDistributorsBySearch(DistributorQuery distributorQuery, DistributorSearch distributorSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      distributorQuery - the distributor query
      distributorSearch - the distributor search
      Returns:
      the distributor search results
      Throws:
      NullArgumentException - distributorQuery or distributorSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - distributorQuery or distributorSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getDistributorQueryFromInspector

      DistributorQuery getDistributorQueryFromInspector(DistributorQueryInspector distributorQueryInspector)
      Gets a distributor query from an inspector. The inspector is available from a DistributorSearchResults .
      Parameters:
      distributorQueryInspector - a distributor query inspector
      Returns:
      the distributor query
      Throws:
      NullArgumentException - distributorQueryInspector is null
      UnsupportedException - distributorQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.