OSID Logo
OSID Specifications
subscription package
Version 3.0.0
Interfaceosid.subscription.SubscriptionQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.subscription.DispatchQuery
osid.subscription.PublisherQuery
osid.subscription.SubscriptionQuerySession
osid.subscription.SubscriptionSearchSession
osid.subscription.SubscriptionSmartPublisherSession
osid.subscription.rules.SubscriptionEnablerQuery
Description

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

MethodmatchDispatchId
Description

Sets the dispatch Id for this query to match subscriptions assigned to dispatches.

Parametersosid.id.IddispatchIda dispatch Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdispatchId is null
CompliancemandatoryThis method must be implemented.
MethodclearDispatchIdTerms
Description

Clears the dispatch Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDispatchQuery
Description

Tests if a DispatchQuery is available.

Returnbooleantrue if a dispatch query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDispatchQuery
Description

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

Returnosid.subscription.DispatchQuerythe dispatch query
ErrorsUNIMPLEMENTEDsupportsDispatchQuery() is false
ComplianceoptionalThis method must be implemented if supportsDispatchQuery() is true .
MethodclearDispatchTerms
Description

Clears the dispatch terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSubscriberId
Description

Sets a subscriber Id .

Parametersosid.id.IdresourceIda resource Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSubscriberIdTerms
Description

Clears the subscriber Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSubscriberQuery
Description

Tests if a ResourceQuery is available.

Returnbooleantrue if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSubscriberQuery
Description

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

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTEDsupportsSubscriberQuery() is false
ComplianceoptionalThis method must be implemented if supportsSubscriberQuery() is true .
MethodclearSubscriberTerms
Description

Clears the subscriber terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressId
Description

Sets an address Id .

Parametersosid.id.IdaddressIdan address Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressIdTerms
Description

Clears the address Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddressQuery
Description

Tests if an AddressQuery is available.

Returnbooleantrue if an address query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddressQuery
Description

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

Returnosid.contact.AddressQuerythe address query
ErrorsUNIMPLEMENTEDsupportsAddressQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddressrQuery() is true .
MethodmatchAnyAddress
Description

Matches any address.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearAddressTerms
Description

Clears the address terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublisherId
Description

Sets the dispatch Id for this query to match subscriptions assigned to publishers.

Parametersosid.id.IdpublisherIda 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 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 query. 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 terms.

CompliancemandatoryThis method must be implemented.
MethodgetSubscriptionQueryRecord
Description

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

Parametersosid.type.TypesubscriptionRecordTypea subscription record type
Returnosid.subscription.records.SubscriptionQueryRecordthe subscription query record
ErrorsNULL_ARGUMENTsubscriptionRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(subscriptionRecordType) is false
CompliancemandatoryThis method must be implemented.