OSID Logo
OSID Specifications
subscription rules package
Version 3.1.0
Interfaceosid.subscription.rules.DispatchConstrainerSearchSession
Implementsosid.subscription.rules.DispatchConstrainerQuerySession
Used Byosid.subscription.rules.SubscriptionRulesManager
osid.subscription.rules.SubscriptionRulesProxyManager
Description

This session provides methods for searching among DispatchConstrainers. The search query is constructed using the DispatchConstrainerQuery.

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

This session defines views that offer differing behaviors for searching.

  • federated publisher view: searches include dispatch constrainers in publishers of which this publisher is an ancestor in the publisher hierarchy
  • isolated publisher view: searches are restricted to dispatch constrainers in this publisher

Dispatch constrainers may have a query record indicated by their respective record types. The query record is accessed via the DispatchConstrainerQuery.

MethodgetDispatchConstrainerSearch
Description

Gets a dispatch constrainer search.

Returnosid.subscription.rules.DispatchConstrainerSearch the dispatch constrainer search
Compliancemandatory This method must be implemented.
MethodgetDispatchConstrainerSearchOrder
Description

Gets a dispatch constrainer search order. The DispatchConstrainerSearchOrder is supplied to a DispatchConstrainerSearch to specify the ordering of results.

Returnosid.subscription.rules.DispatchConstrainerSearchOrder the dispatch constrainer search order
Compliancemandatory This method must be implemented.
MethodgetDispatchConstrainersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.subscription.rules.DispatchConstrainerQuerydispatchConstrainerQuery the dispatch constrainer query
osid.subscription.rules.DispatchConstrainerSearchdispatchConstrainerSearch the dispatch constrainer search
Returnosid.subscription.rules.DispatchConstrainerSearchResults the returned search results
ErrorsNULL_ARGUMENT dispatchConstrainerQuery or dispatchConstrainerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED dispatchConstrainerQuery or dispatchConstrainerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDispatchConstrainerQueryFromInspector
Description

Gets a dispatch constrainer query from an inspector. The inspector is available from a DispatchConstrainerSearchResults.

Parametersosid.subscription.rules.DispatchConstrainerQueryInspectordispatchConstrainerQueryInspector a dispatch constrainer query inspector
Returnosid.subscription.rules.DispatchConstrainerQuery the dispatch constrainer query
ErrorsNULL_ARGUMENT dispatchConstrainerQueryInspector is null
UNSUPPORTED dispatchConstrainerQueryInspector is not of this service
Compliancemandatory This method must be implemented.