OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Interfaceosid.subscription.rules.DispatchConstrainerQuery
Implementsosid.OsidConstrainerQuery
Used Byosid.subscription.rules.DispatchConstrainerEnablerQuery
osid.subscription.rules.DispatchConstrainerQuerySession
osid.subscription.rules.DispatchConstrainerSearchSession
osid.subscription.rules.DispatchConstrainerSmartPublisherSession
Description

This is the query for searching dispatch constrainers. 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 constrainers mapped to any dispatch.

Parametersbooleanmatchtrue for dispatch constraienrs mapped to any dispatch, false to match dispatch constrainers 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.
MethodgetDispatchConstrainerQueryRecord
Description

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

Parametersosid.type.TypedispatchConstrainerRecordTypea dispatch constrainer record type
Returnosid.subscription.rules.records.DispatchConstrainerQueryRecordthe dispatch constrainer query record
ErrorsNULL_ARGUMENTdispatchConstrainerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(dispatchConstrainerRecordType) is false
CompliancemandatoryThis method must be implemented.