OSID Logo
OSID Specifications
subscription package
Version 3.1.0
Interfaceosid.subscription.DispatchQuery
Implementsosid.OsidGovernatorQuery
Used Byosid.subscription.DispatchQuerySession
osid.subscription.DispatchSearchSession
osid.subscription.DispatchSmartPublisherSession
osid.subscription.PublisherQuery
osid.subscription.SubscriptionQuery
osid.subscription.rules.DispatchConstrainerQuery
osid.subscription.rules.DispatchEnablerQuery
osid.subscription.rules.DispatchEnablerSmartPublisherSession
osid.subscription.rules.DispatchProcessorQuery
Description

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

MethodmatchEditorId
Description

Sets a editor Id for this query.

Parametersosid.id.IdeditorId a editor Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT editorId is null
Compliancemandatory This method must be implemented.
MethodclearEditorIdTerms
Description

Clears the editor Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsEditorQuery
Description

Tests if a ResourceQuery is available.

Returnboolean true if a editor query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEditorQuery
Description

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

Returnosid.resource.ResourceQuery the editor query
ErrorsUNIMPLEMENTED supportsEditorQuery() is false
Complianceoptional This method must be implemented if supportsEditorQuery() is true.
MethodmatchAnyEditor
Description

Matches objects with any editor.

Parametersbooleanmatch true to match objects with any editor, false to match objects with no editor
Compliancemandatory This method must be implemented.
MethodclearEditorTerms
Description

Clears the editor query terms.

Compliancemandatory This method must be implemented.
MethodmatchAddressGenusType
Description

Matches an address genus Type accepted by a dispatch.

Parametersosid.type.TypeaddressGenusType an address genus Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressGenusType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyAddressGenusType
Description

Matches dispatches with any address genus type.

Parametersbooleanmatch true to match dispatches with any addres sgenus type, false to match dispatches with no address genus types
Compliancemandatory This method must be implemented.
MethodclearAddressGenusTypeTerms
Description

Clears the address genus Type terms.

Compliancemandatory This method must be implemented.
MethodmatchSubscriptionId
Description

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

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

Clears the subscription Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsSubscriptionQuery
Description

Tests if a subscription query is available.

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

Gets the query for a dispatch.

Returnosid.subscription.SubscriptionQuery the subscription query
ErrorsUNIMPLEMENTED supportsSubscriptionQuery() is false
Complianceoptional This method must be implemented if supportsSubscriptionQuery() is true.
MethodmatchAnySubscription
Description

Matches dispatches with any subscription.

Parametersbooleanmatch true to match dispatches with any subscription, false to match dispatches with no subscriptions
Compliancemandatory This method must be implemented.
MethodclearSubscriptionTerms
Description

Clears the subscription terms.

Compliancemandatory This method must be implemented.
MethodmatchPublisherId
Description

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

Parametersosid.id.IdpublisherId a publisher Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT publisherId is null
Compliancemandatory This method must be implemented.
MethodclearPublisherIdTerms
Description

Clears the publisher Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPublisherQuery
Description

Tests if a PublisherQuery is available.

Returnboolean true if a publisher query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPublisherQuery
Description

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

Returnosid.subscription.PublisherQuery the publisher query
ErrorsUNIMPLEMENTED supportsPublisherQuery() is false
Complianceoptional This method must be implemented if supportsPublisherQuery() is true.
MethodclearPublisherTerms
Description

Clears the publisher terms.

Compliancemandatory This method must be implemented.
MethodgetDispatchQueryRecord
Description

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

Parametersosid.type.TypedispatchRecordType a dispatch record type
Returnosid.subscription.records.DispatchQueryRecord the dispatch query record
ErrorsNULL_ARGUMENT dispatchRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(dispatchRecordType) is false
Compliancemandatory This method must be implemented.