OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.subscription.rules.SubscriptionEnablerQuery
Implementsosid.OsidEnablerQuery
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.IdsubscriptionIdthe subscription Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT subscriptionId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledSubscriptionIdTerms
Description

Clears the subscription Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledSubscriptionQuery
Description

Tests if a SubscriptionQuery is available.

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

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

Returnosid.subscription.SubscriptionQuerythe subscription query
ErrorsUNIMPLEMENTED supportsRuledSubscriptionQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearRuledSubscriptionTerms
Description

Clears the subscription query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublisherId
Description

Matches enablers mapped to the publisher.

Parametersosid.id.IdpublisherIdthe publisher Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT publisherId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsPublisherQuery() is true.
MethodclearPublisherTerms
Description

Clears the publisher query terms.

CompliancemandatoryThis 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.TypesubscriptionEnablerRecordTypea subscription enabler record type
Returnosid.subscription.rules.records.SubscriptionEnablerQueryRecordthe subscription enabler query record
ErrorsNULL_ARGUMENT subscriptionEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(subscriptionEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.