OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.PriceSearchSession
Implementsosid.ordering.PriceQuerySession
Used Byosid.ordering.OrderingManager
osid.ordering.OrderingProxyManager
Description

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

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

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

Like all OsidSessions, PriceSearchSessions are dedicated to single processing threads and a single authenticated user.

MethodgetPriceSearch
Description

Gets a price search.

Returnosid.ordering.PriceSearch the price search
Compliancemandatory This method must be implemented.
MethodgetPriceSearchOrder
Description

Gets a price search order. The PriceSearchOrder is supplied to a PriceSearch to specify the ordering of results.

Returnosid.ordering.PriceSearchOrder the price search order
Compliancemandatory This method must be implemented.
MethodgetPricesBySearch
Description

Gets the price search results matching the given search.

Parametersosid.ordering.PriceQuerypriceQuery the price query
osid.ordering.PriceSearchpriceSearch the price search
Returnosid.ordering.PriceSearchResults the price search results
ErrorsNULL_ARGUMENT priceQuery or priceSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED priceQuery or priceSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetPriceQueryFromInspector
Description

Gets a price query from an inspector. The inspector is available from a PriceSearchResults.

Parametersosid.ordering.PriceQueryInspectorpriceQueryInspector a query inspector
Returnosid.ordering.PriceQuery the price query
ErrorsNULL_ARGUMENT priceQueryInspector is null
UNSUPPORTED priceQueryInspector is not of this service
Compliancemandatory This method must be implemented.