OSID Logo
OSID Specifications
subscription package
Version 3.0.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.IdeditorIda editor Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTeditorId is null
CompliancemandatoryThis method must be implemented.
MethodclearEditorIdTerms
Description

Clears the editor Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEditorQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuerythe editor query
ErrorsUNIMPLEMENTEDsupportsEditorQuery() is false
ComplianceoptionalThis method must be implemented if supportsEditorQuery() is true .
MethodmatchAnyEditor
Description

Matches objects with any editor.

Parametersbooleanmatchtrue to match objects with any editor, false to match objects with no editor
CompliancemandatoryThis method must be implemented.
MethodclearEditorTerms
Description

Clears the editor query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressGenusType
Description

Matches an address genus Type accepted by a dispatch.

Parametersosid.type.TypeaddressGenusTypean address genus Type
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressGenusType is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAddressGenusType
Description

Matches dispatches with any address genus type.

Parametersbooleanmatchtrue to match dispatches with any addres sgenus type, false to match dispatches with no address genus types
CompliancemandatoryThis method must be implemented.
MethodclearAddressGenusTypeTerms
Description

Clears the address genus Type terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSubscriptionId
Description

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

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 dispatch.

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

Matches dispatches with any subscription.

Parametersbooleanmatchtrue to match dispatches with any subscription, false to match dispatches with no subscriptions
CompliancemandatoryThis method must be implemented.
MethodclearSubscriptionTerms
Description

Clears the subscription 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.
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.TypedispatchRecordTypea dispatch record type
Returnosid.subscription.records.DispatchQueryRecordthe dispatch query record
ErrorsNULL_ARGUMENTdispatchRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(dispatchRecordType) is false
CompliancemandatoryThis method must be implemented.