OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Interfaceosid.subscription.rules.DispatchEnablerSearchSession
Implementsosid.subscription.rules.DispatchEnablerQuerySession
Used Byosid.subscription.rules.SubscriptionRulesManager
osid.subscription.rules.SubscriptionRulesProxyManager
Description

This session provides methods for searching among DispatchEnablers . The search query is constructed using the DispatchEnablerQuery .

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetDispatchEnablerSearch
Description

Gets a dispatch enabler search.

Returnosid.subscription.rules.DispatchEnablerSearchthe dispatch enabler search
CompliancemandatoryThis method must be implemented.
MethodgetDispatchEnablerSearchOrder
Description

Gets a dispatch enabler search order. The DispatchEnablerSearchOrder is supplied to a DispatchEnablerSearch to specify the ordering of results.

Returnosid.subscription.rules.DispatchEnablerSearchOrderthe dispatch enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetDispatchEnablersBySearch
Description

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

Parametersosid.subscription.rules.DispatchEnablerQuerydispatchEnablerQuerythe dispatch enabler query
osid.subscription.rules.DispatchEnablerSearchdispatchEnablerSearchthe dispatch enabler search
Returnosid.subscription.rules.DispatchEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENTdispatchEnablerQuery or dispatchEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDdispatchEnablerQuery or dispatchEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDispatchEnablerQueryFromInspector
Description

Gets a dispatch enabler query from an inspector. The inspector is available from a DispatchEnablerSearchResults .

Parametersosid.subscription.rules.DispatchEnablerQueryInspectordispatchEnablerQueryInspectora dispatch enabler query inspector
Returnosid.subscription.rules.DispatchEnablerQuerythe dispatch enabler query
ErrorsNULL_ARGUMENTdispatchEnablerQueryInspector is null
UNSUPPORTEDdispatchEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.