public interface SubscriptionQuery extends OsidRelationshipQuery
This is the query for searching subscriptions. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAddressIdTerms()
Clears the address
Id terms. |
void |
clearAddressTerms()
Clears the address terms.
|
void |
clearDispatchIdTerms()
Clears the dispatch
Id terms. |
void |
clearDispatchTerms()
Clears the dispatch terms.
|
void |
clearPublisherIdTerms()
Clears the publisher
Id terms. |
void |
clearPublisherTerms()
Clears the publisher terms.
|
void |
clearSubscriberIdTerms()
Clears the subscriber
Id terms. |
void |
clearSubscriberTerms()
Clears the subscriber terms.
|
AddressQuery |
getAddressQuery()
Gets the query for an address query.
|
DispatchQuery |
getDispatchQuery()
Gets the query for a dispatch query.
|
PublisherQuery |
getPublisherQuery()
Gets the query for a publisher query.
|
ResourceQuery |
getSubscriberQuery()
Gets the query for a subscriber query.
|
SubscriptionQueryRecord |
getSubscriptionQueryRecord(Type subscriptionRecordType)
Gets the subscription query record corresponding to the given
Subscription record Type. |
void |
matchAddressId(Id addressId,
boolean match)
Sets an address
Id. |
void |
matchAnyAddress(boolean match)
Matches any address.
|
void |
matchDispatchId(Id dispatchId,
boolean match)
Sets the dispatch
Id for this query to match
subscriptions assigned to dispatches. |
void |
matchPublisherId(Id publisherId,
boolean match)
Sets the dispatch
Id for this query to match
subscriptions assigned to publishers. |
void |
matchSubscriberId(Id resourceId,
boolean match)
Sets a subscriber
Id. |
boolean |
supportsAddressQuery()
Tests if an
AddressQuery is available. |
boolean |
supportsDispatchQuery()
Tests if a
DispatchQuery is available. |
boolean |
supportsPublisherQuery()
Tests if a
PublisherQuery is available. |
boolean |
supportsSubscriberQuery()
Tests if a
ResourceQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchDispatchId(Id dispatchId, boolean match)
Id
for this query to match
subscriptions assigned to dispatches.dispatchId
- a dispatch Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- dispatchId
is
null
mandatory
- This method must be implemented. void clearDispatchIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDispatchQuery()
DispatchQuery
is available. true
if a dispatch query is available,
false
otherwisemandatory
- This method must be implemented. DispatchQuery getDispatchQuery()
OR
term.UnimplementedException
- supportsDispatchQuery()
is false
optional
- This method must be implemented if
supportsDispatchQuery()
is true.
void clearDispatchTerms()
mandatory
- This method must be implemented. void matchSubscriberId(Id resourceId, boolean match)
Id.
resourceId
- a resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearSubscriberIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsSubscriberQuery()
ResourceQuery
is available. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getSubscriberQuery()
OR
term.UnimplementedException
-
supportsSubscriberQuery()
is false
optional
- This method must be implemented if
supportsSubscriberQuery()
is true.
void clearSubscriberTerms()
mandatory
- This method must be implemented. void matchAddressId(Id addressId, boolean match)
Id.
addressId
- an address Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressId
is
null
mandatory
- This method must be implemented. void clearAddressIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAddressQuery()
AddressQuery
is available. true
if an address query is available,
false
otherwisemandatory
- This method must be implemented. AddressQuery getAddressQuery()
OR
term.UnimplementedException
- supportsAddressQuery()
is false
optional
- This method must be implemented if
supportsAddressrQuery()
is true.
void matchAnyAddress(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearAddressTerms()
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. SubscriptionQueryRecord getSubscriptionQueryRecord(Type subscriptionRecordType) throws OperationFailedException
Subscription
record Type.
Multiple record
retrievals produce a nested OR
term.subscriptionRecordType
- a subscription record typeNullArgumentException
- subscriptionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(subscriptionRecordType)
is false
mandatory
- This method must be implemented.