OSID Logo
OSID Specifications
subscription package
Version 3.1.0
Interfaceosid.subscription.DispatchSearchSession
Implementsosid.subscription.DispatchQuerySession
Used Byosid.subscription.SubscriptionManager
osid.subscription.SubscriptionProxyManager
Description

This session provides methods for searching Dispatches. The search query is constructed using the DispatchQuery. The dispatch record Type also specifies the record for the dispatch query.

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

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

MethodgetDispatchSearch
Description

Gets a dispatch search.

Returnosid.subscription.DispatchSearch the dispatch search
Compliancemandatory This method must be implemented.
MethodgetDispatchSearchOrder
Description

Gets a dispatch search order. The DispatchSearchOrder is supplied to a DispatchSearch to specify the ordering of results.

Returnosid.subscription.DispatchSearchOrder the dispatch search order
Compliancemandatory This method must be implemented.
MethodgetDispatchesBySearch
Description

Gets the search results matching the given search.

Parametersosid.subscription.DispatchQuerydispatchQuery the dispatch query
osid.subscription.DispatchSearchdispatchSearch the dispatch search
Returnosid.subscription.DispatchSearchResults the dispatch search results
ErrorsNULL_ARGUMENT dispatchQuery or dispatchSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED dispatchQuery or dispatchSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDispatchQueryFromInspector
Description

Gets an entry query from an inspector. The inspector is available from an DispatchSearchResults.

Parametersosid.subscription.DispatchQueryInspectordispatchQueryInspector a query inspector
Returnosid.subscription.DispatchQuery the entry query
ErrorsNULL_ARGUMENT dispatchQueryInspector is null
UNSUPPORTED dispatchQueryInspector is not of this service
Compliancemandatory This method must be implemented.