OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Interfaceosid.subscription.rules.DispatchEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.subscription.rules.DispatchEnablerQuerySession
osid.subscription.rules.DispatchEnablerSearchSession
osid.subscription.rules.DispatchEnablerSmartPublisherSession
Description

This is the query for searching dispatch enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

MethodmatchRuledDispatchId
Description

Matches enablers mapped to the dispatch.

Parametersosid.id.IddispatchIdthe dispatch Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdispatchId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledDispatchIdTerms
Description

Clears the dispatch Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledDispatchQuery
Description

Tests if a DispatchQuery is available.

Returnbooleantrue if a dispatch query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledDispatchQuery
Description

Gets the query for a dispatch. Multiple retrievals produce a nested OR term.

Returnosid.subscription.DispatchQuerythe dispatch query
ErrorsUNIMPLEMENTEDsupportsRuledDispatchQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledDispatchQuery() is true .
MethodmatchAnyRuledDispatch
Description

Matches dispatch enablers mapped to any dispatch.

Parametersbooleanmatchtrue for dispatch enabelrs mapped to any dispatch, false to match dispatch enablers mapped to no dispatch
CompliancemandatoryThis method must be implemented.
MethodclearRuledDispatchTerms
Description

Clears the dispatch enabler query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublisherId
Description

Sets the publisher Id for this query to match dispatches assigned to publishers.

Parametersosid.id.IdpublisherIdthe publisher Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpublisherId is null
CompliancemandatoryThis method must be implemented.
MethodclearPublisherIdTerms
Description

Clears the publisher Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPublisherQuery
Description

Tests if a PublisherQuery is available.

Returnbooleantrue if a publisher query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPublisherQuery
Description

Gets the query for a publisher. Multiple retrievals produce a nested OR term.

Returnosid.subscription.PublisherQuerythe publisher query
ErrorsUNIMPLEMENTEDsupportsPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsPublisherQuery() is true .
MethodclearPublisherTerms
Description

Clears the publisher query terms.

CompliancemandatoryThis method must be implemented.
MethodgetDispatchEnablerQueryRecord
Description

Gets the dispatch enabler query record corresponding to the given DispatchEnabler record Type . Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypedispatchEnablerRecordTypea dispatch enabler record type
Returnosid.subscription.rules.records.DispatchEnablerQueryRecordthe dispatch enabler query record
ErrorsNULL_ARGUMENTdispatchEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(dispatchEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.