OSID Logo
OSID Specifications
subscription rules package
Version 3.0.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.DispatchConstrainerSearchthe dispatch constrainer search
CompliancemandatoryThis 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.DispatchConstrainerSearchOrderthe dispatch constrainer search order
CompliancemandatoryThis method must be implemented.
MethodgetDispatchConstrainersBySearch
Description

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

Parametersosid.subscription.rules.DispatchConstrainerQuerydispatchConstrainerQuerythe dispatch constrainer query
osid.subscription.rules.DispatchConstrainerSearchdispatchConstrainerSearchthe dispatch constrainer search
Returnosid.subscription.rules.DispatchConstrainerSearchResultsthe returned search results
ErrorsNULL_ARGUMENTdispatchConstrainerQuery or dispatchConstrainerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDdispatchConstrainerQuery or dispatchConstrainerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDispatchConstrainerQueryFromInspector
Description

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

Parametersosid.subscription.rules.DispatchConstrainerQueryInspectordispatchConstrainerQueryInspectora dispatch constrainer query inspector
Returnosid.subscription.rules.DispatchConstrainerQuerythe dispatch constrainer query
ErrorsNULL_ARGUMENTdispatchConstrainerQueryInspector is null
UNSUPPORTEDdispatchConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.