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

This session provides methods for searching among DispatchProcessors. The search query is constructed using the DispatchProcessorQuery.

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetDispatchProcessorSearch
Description

Gets a dispatch processor search.

Returnosid.subscription.rules.DispatchProcessorSearch the dispatch processor search
Compliancemandatory This method must be implemented.
MethodgetDispatchProcessorSearchOrder
Description

Gets a dispatch processor search order. The DispatchProcessorSearchOrder is supplied to a DispatchProcessorSearch to specify the ordering of results.

Returnosid.subscription.rules.DispatchProcessorSearchOrder the dispatch processor search order
Compliancemandatory This method must be implemented.
MethodgetDispatchProcessorsBySearch
Description

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

Parametersosid.subscription.rules.DispatchProcessorQuerydispatchProcessorQuery the dispatch processor query
osid.subscription.rules.DispatchProcessorSearchdispatchProcessorSearch the dispatch processor search
Returnosid.subscription.rules.DispatchProcessorSearchResults the returned search results
ErrorsNULL_ARGUMENT dispatchProcessorQuery or dispatchProcessorSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED dispatchProcessorQuery or dispatchProcessorSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDispatchProcessorQueryFromInspector
Description

Gets a dispatch processor query from an inspector. The inspector is available from a DispatchProcessorSearchResults.

Parametersosid.subscription.rules.DispatchProcessorQueryInspectordispatchProcessorQueryInspector a dispatch processor query inspector
Returnosid.subscription.rules.DispatchProcessorQuery the dispatch processor query
ErrorsNULL_ARGUMENT dispatchProcessorQueryInspector is null
UNSUPPORTED dispatchProcessorQueryInspector is not of this service
Compliancemandatory This method must be implemented.