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

This session provides methods for searching OrderItem objects. The search query is constructed using the OrderItemQuery. The order item record Type also specifies the record for the order item query.

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

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

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

MethodgetOrderItemSearch
Description

Gets an order item search.

Returnosid.ordering.OrderItemSearch the order item search
Compliancemandatory This method must be implemented.
MethodgetOrderItemSearchOrder
Description

Gets an order item search order. The OrderItemSearchOrder is supplied to an OrderItemSearch to specify the ordering of results.

Returnosid.ordering.OrderItemSearchOrder the order item search order
Compliancemandatory This method must be implemented.
MethodgetOrderItemsBySearch
Description

Gets the search results matching the given search.

Parametersosid.ordering.OrderItemQueryorderItemQuery the order item query
osid.ordering.OrderItemSearchorderItemSearch the order item search
Returnosid.ordering.OrderItemSearchResults the order item search results
ErrorsNULL_ARGUMENT orderItemQuery or orderItemSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED orderItemQuery or orderItemSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetOrderItemQueryFromInspector
Description

Gets an order item query from an inspector. The inspector is available from a OrderItemSearchResults.

Parametersosid.ordering.OrderItemQueryInspectororderItemQueryInspector a query inspector
Returnosid.ordering.OrderItemQuery the order item query
ErrorsNULL_ARGUMENT orderItemQueryInspector is null
UNSUPPORTED orderItemQueryInspector is not of this service
Compliancemandatory This method must be implemented.