OSID Logo
OSID Specifications
subscription rules package
Version 3.0.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.IdsubscriptionIdthe subscription Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTsubscriptionId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsRuledSubscriptionQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledSubscriptionQuery() is true .
MethodmatchAnyRuledSubscription
Description

Matches enablers mapped to any subscription.

Parametersbooleanmatchtrue 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
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.
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_ARGUMENTsubscriptionEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(subscriptionEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.