public interface DispatchQuery extends OsidGovernatorQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAddressGenusTypeTerms()
Clears the address genus
Type terms. |
void |
clearPublisherIdTerms()
Clears the publisher
Id terms. |
void |
clearPublisherTerms()
Clears the publisher terms.
|
void |
clearSubscriptionIdTerms()
Clears the subscription
Id terms. |
void |
clearSubscriptionTerms()
Clears the subscription terms.
|
DispatchQueryRecord |
getDispatchQueryRecord(Type dispatchRecordType)
Gets the dispatch query record corresponding to the given
Dispatch record Type. |
PublisherQuery |
getPublisherQuery()
Gets the query for a publisher query.
|
SubscriptionQuery |
getSubscriptionQuery()
Gets the query for a dispatch.
|
void |
matchAddressGenusType(Type addressGenusType,
boolean match)
Matches an address genus
Type accepted by a dispatch. |
void |
matchAnyAddressGenusType(boolean match)
Matches dispatches with any address genus type.
|
void |
matchAnySubscription(boolean match)
Matches dispatches with any subscription.
|
void |
matchPublisherId(Id publisherId,
boolean match)
Sets the dispatch
Id for this query to match
subscriptions assigned to publishers. |
void |
matchSubscriptionId(Id subscriptionId,
boolean match)
Sets the subscription
Id for this query to match
subscriptions assigned to dispatches. |
boolean |
supportsPublisherQuery()
Tests if a
PublisherQuery is available. |
boolean |
supportsSubscriptionQuery()
Tests if a subscription query is available.
|
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalclearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryvoid matchAddressGenusType(Type addressGenusType, boolean match)
Type accepted by a dispatch.addressGenusType - an address genus Type match - true for a positive match, false
for a negative matchNullArgumentException - addressGenusType
is null mandatory - This method must be implemented. void matchAnyAddressGenusType(boolean match)
match - true to match dispatches with any addres
sgenus type, false to match dispatches with no
address genus typesmandatory - This method must be implemented. void clearAddressGenusTypeTerms()
Type terms.mandatory - This method must be implemented. void matchSubscriptionId(Id subscriptionId, boolean match)
Id for this query to match
subscriptions assigned to dispatches.subscriptionId - a subscription Id match - true for a positive match, false
for a negative matchNullArgumentException - subscriptionId
is null mandatory - This method must be implemented. void clearSubscriptionIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsSubscriptionQuery()
true if a subscription query is available,
false otherwisemandatory - This method must be implemented. SubscriptionQuery getSubscriptionQuery()
UnimplementedException -
supportsSubscriptionQuery() is false optional - This method must be implemented if
supportsSubscriptionQuery() is true.
void matchAnySubscription(boolean match)
match - true to match dispatches with any
subscription, false to match dispatches with no
subscriptionsmandatory - This method must be implemented. void clearSubscriptionTerms()
mandatory - This method must be implemented. void matchPublisherId(Id publisherId, boolean match)
Id for this query to match
subscriptions assigned to publishers.publisherId - a publisher Id match - true for a positive match, false
for a negative matchNullArgumentException - publisherId is
null mandatory - This method must be implemented. void clearPublisherIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsPublisherQuery()
PublisherQuery is available. true if a publisher query is available,
false otherwisemandatory - This method must be implemented. PublisherQuery getPublisherQuery()
OR term.UnimplementedException -
supportsPublisherQuery() is false optional - This method must be implemented if
supportsPublisherQuery() is true. void clearPublisherTerms()
mandatory - This method must be implemented. DispatchQueryRecord getDispatchQueryRecord(Type dispatchRecordType) throws OperationFailedException
Dispatch record Type. Multiple record
retrievals produce a nested boolean OR term.dispatchRecordType - a dispatch record typeNullArgumentException - dispatchRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(dispatchRecordType) is false
mandatory - This method must be implemented.