Interface PriceScheduleSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, PriceScheduleQuerySession

public interface PriceScheduleSearchSession extends PriceScheduleQuerySession

This session provides methods for searching PriceSchedule objects. The search query is constructed using the PriceScheduleQuery . The price schedule record Type also specifies the record for the price schedule query.

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

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

  • Method Details

    • getPriceScheduleSearch

      PriceScheduleSearch getPriceScheduleSearch()
      Gets a price schedule search.
      Returns:
      the price search
      Compliance:
      mandatory - This method must be implemented.
    • getPriceScheduleSearchOrder

      PriceScheduleSearchOrder getPriceScheduleSearchOrder()
      Gets a price schedule search order. The PriceScheduleSearchOrder is supplied to a PriceScheduleSearch to specify the ordering of results.
      Returns:
      the price schedule search order
      Compliance:
      mandatory - This method must be implemented.
    • getPriceSchedulesBySearch

      PriceScheduleSearchResults getPriceSchedulesBySearch(PriceScheduleQuery priceScheduleQuery, PriceScheduleSearch priceScheduleSearch) throws OperationFailedException, PermissionDeniedException
      Gets the price schedule search results matching the given search.
      Parameters:
      priceScheduleQuery - the price schedule query
      priceScheduleSearch - the price schedule search
      Returns:
      the price schedule search results
      Throws:
      NullArgumentException - priceScheduleQuery or priceScheduleSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - priceScheduleQuery or priceScheduleSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getPriceScheduleQueryFromInspector

      PriceScheduleQuery getPriceScheduleQueryFromInspector(PriceScheduleQueryInspector priceScheduleQueryInspector)
      Gets a price schedule query from an inspector. The inspector is available from a PriceScheduleSearchResults .
      Parameters:
      priceScheduleQueryInspector - a query inspector
      Returns:
      the price schedule query
      Throws:
      NullArgumentException - priceScheduleQueryInspector is null
      UnsupportedException - priceScheduleQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.