public interface PostEntryQuery extends OsidObjectQuery, OsidSubjugateableQuery
This is the query for searching post entries. Each method match
specifies an AND
term while multiple invocations of the
same method produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAccountIdTerms()
Clears the account
Id terms. |
void |
clearAccountTerms()
Clears the account terms.
|
void |
clearActivityIdTerms()
Clears the activity
Id terms. |
void |
clearActivityTerms()
Clears the activity terms.
|
void |
clearAmountTerms()
Clears the amount terms.
|
void |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearDebitTerms()
Clears the debit terms.
|
void |
clearPostIdTerms()
Clears the post
Id terms. |
void |
clearPostTerms()
Clears the post terms.
|
AccountQuery |
getAccountQuery()
Gets the query for an account.
|
ActivityQuery |
getActivityQuery()
Gets the query for an activity.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
PostEntryQueryRecord |
getPostEntryQueryRecord(Type postEntryRecordType)
Gets the post entry query record corresponding to the given
PostEntry record Type. |
PostQuery |
getPostQuery()
Gets the query for a post.
|
void |
matchAccountId(Id accountId,
boolean match)
Sets the account
Id for this query. |
void |
matchActivityId(Id activityId,
boolean match)
Sets the activity
Id for this query. |
void |
matchAmount(Currency low,
Currency high,
boolean match)
Matches the amount between the given range inclusive.
|
void |
matchAnyAccount(boolean match)
Matches entries that have any account set.
|
void |
matchAnyActivity(boolean match)
Matches entries that have any activity set.
|
void |
matchAnyAmount(boolean match)
Matches entries that have any amount set.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match post
entries assigned to businesses. |
void |
matchDebit(boolean match)
Matches entries that have debit amounts.
|
void |
matchPostId(Id postId,
boolean match)
Sets the post
Id for this query. |
boolean |
supportsAccountQuery()
Tests if an
AccountQuery is available. |
boolean |
supportsActivityQuery()
Tests if an
ActivityQuery is available. |
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsPostQuery()
Tests if a
PostQuery 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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
void matchPostId(Id postId, boolean match)
Id
for this query.postId
- a post Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- postId
is
null
mandatory
- This method must be implemented. void clearPostIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPostQuery()
PostQuery
is available. true
if a post query is available, false
otherwisemandatory
- This method must be implemented. PostQuery getPostQuery()
OR
term.UnimplementedException
- supportsPostQuery()
is false
optional
- This method must be implemented if
supportsPostQuery()
is true.
void clearPostTerms()
mandatory
- This method must be implemented. void matchAccountId(Id accountId, boolean match)
Id
for this query.accountId
- an account Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- accountId
is
null
mandatory
- This method must be implemented. void clearAccountIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAccountQuery()
AccountQuery
is available. true
if an account query is available,
false
otherwisemandatory
- This method must be implemented. AccountQuery getAccountQuery()
OR
term.UnimplementedException
- supportsAccountQuery()
is false
optional
- This method must be implemented if
supportsAccountQuery()
is true.
void matchAnyAccount(boolean match)
match
- true
to match entries with any account,
false
to match entries with no accountmandatory
- This method must be implemented. void clearAccountTerms()
mandatory
- This method must be implemented. void matchActivityId(Id activityId, boolean match)
Id
for this query.activityId
- an activity Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActivityIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsActivityQuery()
ActivityQuery
is available. true
if an activity query is available,
false
otherwisemandatory
- This method must be implemented. ActivityQuery getActivityQuery()
OR
term.UnimplementedException
- supportsActivityQuery()
is false
optional
- This method must be implemented if
supportsActivityQuery()
is true.
void matchAnyActivity(boolean match)
match
- true
to match entries with any activity,
false
to match entries with no activitymandatory
- This method must be implemented. void clearActivityTerms()
mandatory
- This method must be implemented. void matchAmount(Currency low, Currency high, boolean match)
low
- start of rangehigh
- end of rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- low
is
greater than high
NullArgumentException
- low
or
high
is null
mandatory
- This method must be implemented. void matchAnyAmount(boolean match)
match
- true
to match entries with any amount,
false
to match entries with no amountmandatory
- This method must be implemented. void clearAmountTerms()
mandatory
- This method must be implemented. void matchDebit(boolean match)
match
- true
to match entries with a debit
amount, false
to match entries with a credit
amountmandatory
- This method must be implemented. void clearDebitTerms()
mandatory
- This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id
for this query to match post
entries assigned to businesses.businessId
- the business Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- businessId
is
null
mandatory
- This method must be implemented. void clearBusinessIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBusinessQuery()
BusinessQuery
is available. true
if a business query is available,
false
otherwisemandatory
- This method must be implemented. BusinessQuery getBusinessQuery()
OR
term.UnimplementedException
- supportsBusinessQuery()
is false
optional
- This method must be implemented if
supportsBusinessQuery()
is true.
void clearBusinessTerms()
mandatory
- This method must be implemented. PostEntryQueryRecord getPostEntryQueryRecord(Type postEntryRecordType) throws OperationFailedException
PostEntry
record Type.
Multiple record
retrievals produce a nested OR
term.postEntryRecordType
- a post entry record typeNullArgumentException
- postEntryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(postEntryRecordType)
is false
mandatory
- This method must be implemented.