OSID Logo
OSID Specifications
subscription rules package
Version 3.1.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.IddispatchId the dispatch Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT dispatchId is null
Compliancemandatory This method must be implemented.
MethodclearRuledDispatchIdTerms
Description

Clears the dispatch Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledDispatchQuery
Description

Tests if a DispatchQuery is available.

Returnboolean true if a dispatch query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledDispatchQuery
Description

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

Returnosid.subscription.DispatchQuery the dispatch query
ErrorsUNIMPLEMENTED supportsRuledDispatchQuery() is false
Complianceoptional This method must be implemented if supportsRuledDispatchQuery() is true.
MethodmatchAnyRuledDispatch
Description

Matches dispatch constrainers mapped to any dispatch.

Parametersbooleanmatch true for dispatch constraienrs mapped to any dispatch, false to match dispatch constrainers mapped to no dispatch
Compliancemandatory This method must be implemented.
MethodclearRuledDispatchTerms
Description

Clears the dispatch enabler query terms.

Compliancemandatory This method must be implemented.
MethodmatchPublisherId
Description

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

Parametersosid.id.IdpublisherId the publisher Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT publisherId is null
Compliancemandatory This method must be implemented.
MethodclearPublisherIdTerms
Description

Clears the publisher Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPublisherQuery
Description

Tests if a PublisherQuery is available.

Returnboolean true if a publisher query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPublisherQuery
Description

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

Returnosid.subscription.PublisherQuery the publisher query
ErrorsUNIMPLEMENTED supportsPublisherQuery() is false
Complianceoptional This method must be implemented if supportsPublisherQuery() is true.
MethodclearPublisherTerms
Description

Clears the publisher query terms.

Compliancemandatory This 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.TypedispatchConstrainerRecordType a dispatch constrainer record type
Returnosid.subscription.rules.records.DispatchConstrainerQueryRecord the dispatch constrainer query record
ErrorsNULL_ARGUMENT dispatchConstrainerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(dispatchConstrainerRecordType) is false
Compliancemandatory This method must be implemented.