OSID Logo
OSID Specifications
subscription rules package
Version 3.1.0
Interfaceosid.subscription.rules.SubscriptionEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.subscription.rules.SubscriptionEnablerQuerySession
osid.subscription.rules.SubscriptionEnablerSearchSession
osid.subscription.rules.SubscriptionEnablerSmartPublisherSession
Description

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

MethodmatchRuledSubscriptionId
Description

Matches enablers mapped to the subscription.

Parametersosid.id.IdsubscriptionId the subscription Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT subscriptionId is null
Compliancemandatory This method must be implemented.
MethodclearRuledSubscriptionIdTerms
Description

Clears the subscription Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledSubscriptionQuery
Description

Tests if a SubscriptionQuery is available.

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

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

Returnosid.subscription.SubscriptionQuery the subscription query
ErrorsUNIMPLEMENTED supportsRuledSubscriptionQuery() is false
Complianceoptional This method must be implemented if supportsRuledSubscriptionQuery() is true.
MethodmatchAnyRuledSubscription
Description

Matches enablers mapped to any subscription.

Parametersbooleanmatch true for enablers mapped to any subscription, false to match enablers mapped to no subscription
Compliancemandatory This method must be implemented.
MethodclearRuledSubscriptionTerms
Description

Clears the subscription query terms.

Compliancemandatory This method must be implemented.
MethodmatchPublisherId
Description

Matches enablers mapped to the publisher.

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.
MethodgetSubscriptionEnablerQueryRecord
Description

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

Parametersosid.type.TypesubscriptionEnablerRecordType a subscription enabler record type
Returnosid.subscription.rules.records.SubscriptionEnablerQueryRecord the subscription enabler query record
ErrorsNULL_ARGUMENT subscriptionEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(subscriptionEnablerRecordType) is false
Compliancemandatory This method must be implemented.