OSID Logo
OSID Specifications
subscription rules package
Version 3.0.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.DispatchProcessorSearchthe dispatch processor search
CompliancemandatoryThis 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.DispatchProcessorSearchOrderthe dispatch processor search order
CompliancemandatoryThis method must be implemented.
MethodgetDispatchProcessorsBySearch
Description

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

Parametersosid.subscription.rules.DispatchProcessorQuerydispatchProcessorQuerythe dispatch processor query
osid.subscription.rules.DispatchProcessorSearchdispatchProcessorSearchthe dispatch processor search
Returnosid.subscription.rules.DispatchProcessorSearchResultsthe returned search results
ErrorsNULL_ARGUMENTdispatchProcessorQuery or dispatchProcessorSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDdispatchProcessorQuery or dispatchProcessorSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDispatchProcessorQueryFromInspector
Description

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

Parametersosid.subscription.rules.DispatchProcessorQueryInspectordispatchProcessorQueryInspectora dispatch processor query inspector
Returnosid.subscription.rules.DispatchProcessorQuerythe dispatch processor query
ErrorsNULL_ARGUMENTdispatchProcessorQueryInspector is null
UNSUPPORTEDdispatchProcessorQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.