public interface PostQuery extends OsidObjectQuery, OsidAggregateableQuery
This is the query for searching posts. 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 |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearCorrectedPostIdTerms()
Clears the corrected post
Id terms. |
void |
clearCorrectedPostTerms()
Clears the corrected post terms.
|
void |
clearDateTerms()
Clears the date terms.
|
void |
clearFiscalPeriodIdTerms()
Clears the fiscal period
Id terms. |
void |
clearFiscalPeriodTerms()
Clears the fiscal period terms.
|
void |
clearPostedTerms()
Clears the posted terms.
|
void |
clearPostEntryIdTerms()
Clears the post entry
Id terms. |
void |
clearPostEntryTerms()
Clears the post entry terms.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
PostQuery |
getCorrectedPostQuery()
Gets the query for a corrected posts.
|
FiscalPeriodQuery |
getFiscalPeriodQuery()
Gets the query for a fiscal period.
|
PostEntryQuery |
getPostEntryQuery()
Gets the query for a post entries.
|
PostQueryRecord |
getPostQueryRecord(Type postRecordType)
Gets the post query record corresponding to the given
Post
record Type. |
void |
matchAnyCorrectedPost(boolean match)
Matches any posts with corrected posts.
|
void |
matchAnyDate(boolean match)
Matches items that have any date set.
|
void |
matchAnyFiscalPeriod(boolean match)
Matches any fiscal period.
|
void |
matchAnyPostEntry(boolean match)
Matches any posts with post entries.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match posts
assigned to businesses. |
void |
matchCorrectedPostId(Id postId,
boolean match)
Sets the post entry
Id for this query to match posts
that have a corrected post. |
void |
matchDate(DateTime low,
DateTime high,
boolean match)
Matches the date between the given range inclusive.
|
void |
matchFiscalPeriodId(Id fiscalPeriodId,
boolean match)
Sets the fiscal period
Id for this query. |
void |
matchPosted(boolean match)
Matches posts that have been posted.
|
void |
matchPostEntryId(Id postEntryId,
boolean match)
Sets the post entry
Id for this query to match posts
that have a related post entries. |
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsCorrectedPostQuery()
Tests if a
PostQuery is available. |
boolean |
supportsFiscalPeriodQuery()
Tests if a
FiscalPeriod is available. |
boolean |
supportsPostEntryQuery()
Tests if a
PostEntryQuery is available for the
location. |
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 matchFiscalPeriodId(Id fiscalPeriodId, boolean match)
Id
for this query.fiscalPeriodId
- a fiscal period Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- foscalPeriodId
is null
mandatory
- This method must be implemented. void clearFiscalPeriodIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsFiscalPeriodQuery()
FiscalPeriod
is available. true
if a fiscal period query is available,
false
otherwisemandatory
- This method must be implemented. FiscalPeriodQuery getFiscalPeriodQuery()
OR
term.UnimplementedException
-
supportsFiscalPeriodQuery()
is false
optional
- This method must be implemented if
supportsFiscalPeriodQuery()
is true.
void matchAnyFiscalPeriod(boolean match)
match
- true
to match posts with any fiscal
period, false
to match posts with no fiscal
periodmandatory
- This method must be implemented. void clearFiscalPeriodTerms()
mandatory
- This method must be implemented. void matchPosted(boolean match)
match
- true
to match posted posts false
to match unposted postsmandatory
- This method must be implemented. void clearPostedTerms()
mandatory
- This method must be implemented. void matchDate(DateTime low, DateTime 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 matchAnyDate(boolean match)
match
- true
to match items with any date,
false
to match items with no datemandatory
- This method must be implemented. void clearDateTerms()
mandatory
- This method must be implemented. void matchPostEntryId(Id postEntryId, boolean match)
Id
for this query to match posts
that have a related post entries.postEntryId
- a post entry Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- postEntryId
is
null
mandatory
- This method must be implemented. void clearPostEntryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPostEntryQuery()
PostEntryQuery
is available for the
location. true
if a post entry query is available,
false
otherwisemandatory
- This method must be implemented. PostEntryQuery getPostEntryQuery()
OR
term.UnimplementedException
-
supportsPostEntryQuery()
is false
optional
- This method must be implemented if
supportsPostEntryQuery()
is true.
void matchAnyPostEntry(boolean match)
match
- true
to match posts with any post entry,
false
to match posts with no entriesmandatory
- This method must be implemented. void clearPostEntryTerms()
mandatory
- This method must be implemented. void matchCorrectedPostId(Id postId, boolean match)
Id
for this query to match posts
that have a corrected post.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 clearCorrectedPostIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCorrectedPostQuery()
PostQuery
is available. true
if a post query is available, false
otherwisemandatory
- This method must be implemented. PostQuery getCorrectedPostQuery()
OR
term.UnimplementedException
-
supportsCorrectedPostQuery()
is false
optional
- This method must be implemented if
supportsCorrectedPostQuery()
is true.
void matchAnyCorrectedPost(boolean match)
match
- true
to match posts with any corrected
post, false
to match posts with no corrected
postsmandatory
- This method must be implemented. void clearCorrectedPostTerms()
mandatory
- This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id
for this query to match posts
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. PostQueryRecord getPostQueryRecord(Type postRecordType) throws OperationFailedException
Post
record Type.
Multiple record retrievals produce
a nested OR
term.postRecordType
- a post record typeNullArgumentException
- postRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(postRecordType)
is false
mandatory
- This method must be implemented.