OSID Logo
OSID Specifications
subscription rules package
Version 3.1.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.DispatchEnablerSearch the dispatch enabler search
Compliancemandatory This 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.DispatchEnablerSearchOrder the dispatch enabler search order
Compliancemandatory This method must be implemented.
MethodgetDispatchEnablersBySearch
Description

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

Parametersosid.subscription.rules.DispatchEnablerQuerydispatchEnablerQuery the dispatch enabler query
osid.subscription.rules.DispatchEnablerSearchdispatchEnablerSearch the dispatch enabler search
Returnosid.subscription.rules.DispatchEnablerSearchResults the returned search results
ErrorsNULL_ARGUMENT dispatchEnablerQuery or dispatchEnablerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED dispatchEnablerQuery or dispatchEnablerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDispatchEnablerQueryFromInspector
Description

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

Parametersosid.subscription.rules.DispatchEnablerQueryInspectordispatchEnablerQueryInspector a dispatch enabler query inspector
Returnosid.subscription.rules.DispatchEnablerQuery the dispatch enabler query
ErrorsNULL_ARGUMENT dispatchEnablerQueryInspector is null
UNSUPPORTED dispatchEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.