OSID Logo
OSID Specifications
subscription package
Version 3.0.0
Interfaceosid.subscription.PublisherQuery
Implementsosid.OsidCatalogQuery
Used Byosid.subscription.DispatchQuery
osid.subscription.PublisherQuery
osid.subscription.PublisherQuerySession
osid.subscription.PublisherSearchSession
osid.subscription.SubscriptionQuery
osid.subscription.rules.DispatchConstrainerEnablerQuery
osid.subscription.rules.DispatchConstrainerQuery
osid.subscription.rules.DispatchEnablerQuery
osid.subscription.rules.DispatchProcessorEnablerQuery
osid.subscription.rules.DispatchProcessorQuery
show 1 more…
osid.subscription.rules.SubscriptionEnablerQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTsubscriptionId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsSubscriptionQuery() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionQuery() is true .
MethodmatchAnySubscription
Description

Matches publishers with any subscription.

Parametersbooleanmatchtrue 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
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 .
MethodmatchAnyDispatch
Description

Matches publishers with any dispatch.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpublisherId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorPublisherQuery() is true .
MethodmatchAnyAncestorPublisher
Description

Matches publishers with any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpublisherId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantPublisherQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantPublisherQuery() is true .
MethodmatchAnyDescendantPublisher
Description

Matches publishers with any descendant.

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