OSID Logo
OSID Specifications
subscription package
Version 3.0.0
Release Candidate Preview
Interfaceosid.subscription.PublisherQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchSubscriptionId
Description

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

Parametersosid.id.IdsubscriptionIda subscription Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT subscriptionId is null
CompliancemandatoryThis method must be implemented.
MethodclearSubscriptionIdTerms
Description

Clears the subscription Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSubscriptionQuery
Description

Tests if a subscription query is available.

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

Gets the query for a publisher.

Returnosid.subscription.SubscriptionQuerythe subscription query
ErrorsUNIMPLEMENTED supportsSubscriptionQuery() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionQuery() is true.
MethodmatchAnySubscription
Description

Matches publishers with any subscription.

Parametersbooleanmatch true to match publishers with any subscription, false to match publishers with no subscriptions
CompliancemandatoryThis method must be implemented.
MethodclearSubscriptionTerms
Description

Clears the subscription terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDispatchId
Description

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

Parametersosid.id.IddispatchIda dispatch Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT dispatchId 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.

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

Matches publishers with any dispatch.

Parametersbooleanmatch true to match publishers with any dispatch, false to match publishers with no dispatches
CompliancemandatoryThis method must be implemented.
MethodclearDispatchTerms
Description

Clears the dispatch terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorPublisherId
Description

Sets the publisher Id for this query to match publishers that have the specified publisher as an ancestor.

Parametersosid.id.IdpublisherIda publisher Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT publisherId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPublisherIdTerms
Description

Clears the ancestor publisher Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorPublisherQuery
Description

Tests if a PublisherQuery is available.

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

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

Returnosid.subscription.PublisherQuerythe publisher query
ErrorsUNIMPLEMENTED supportsAncestorPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorPublisherQuery() is true.
MethodmatchAnyAncestorPublisher
Description

Matches publishers with any ancestor.

Parametersbooleanmatch true to match publishers with any ancestor, false to match root publishers
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPublisherTerms
Description

Clears the ancestor publisher terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantPublisherId
Description

Sets the publisher Id for this query to match publishers that have the specified publisher as a descendant.

Parametersosid.id.IdpublisherIda publisher Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT publisherId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPublisherIdTerms
Description

Clears the descendant publisher Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantPublisherQuery
Description

Tests if a PublisherQuery is available.

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

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

Returnosid.subscription.PublisherQuerythe publisher query
ErrorsUNIMPLEMENTED supportsDescendantPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantPublisherQuery() is true.
MethodmatchAnyDescendantPublisher
Description

Matches publishers with any descendant.

Parametersbooleanmatch true to match publishers with any descendant, false to match leaf publishers
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPublisherTerms
Description

Clears the descendant publisher terms.

CompliancemandatoryThis method must be implemented.
MethodgetPublisherQueryRecord
Description

Gets the publisher query record corresponding to the given Publisher record Type. Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypepublisherRecordTypea publisher record type
Returnosid.subscription.records.PublisherQueryRecordthe publisher query record
ErrorsNULL_ARGUMENT publisherRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(publisherRecordType) is false
CompliancemandatoryThis method must be implemented.