public interface CommentQuery extends OsidRelationshipQuery
This is the query for searching comments. Each method specifies an
AND term while multiple invocations of the same method
produce a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearBookIdTerms()
Clears the book
Id terms. |
void |
clearBookTerms()
Clears the book terms.
|
void |
clearCommentingAgentIdTerms()
Clears the agent
Id terms. |
void |
clearCommentingAgentTerms()
Clears the agent terms.
|
void |
clearCommentorIdTerms()
Clears the resource
Id terms. |
void |
clearCommentorTerms()
Clears the resource terms.
|
void |
clearRatingIdTerms()
Clears the rating
Id terms. |
void |
clearRatingTerms()
Clears the rating terms.
|
void |
clearReferenceIdTerms()
Clears the reference
Id terms. |
void |
clearTextTerms()
Clears the text terms.
|
BookQuery |
getBookQuery()
Gets the query for a book query.
|
AgentQuery |
getCommentingAgentQuery()
Gets the query for an agent query.
|
ResourceQuery |
getCommentorQuery()
Gets the query for a resource query.
|
CommentQueryRecord |
getCommentQueryRecord(Type commentRecordType)
Gets the comment query record corresponding to the given
Comment record Type. |
GradeQuery |
getRatingQuery()
Gets the query for a rating query.
|
void |
matchAnyRating(boolean match)
Matches books with any rating.
|
void |
matchAnyText(boolean match)
Matches a comment that has any text assigned.
|
void |
matchBookId(Id bookId,
boolean match)
Sets the book
Id for this query to match comments
assigned to books. |
void |
matchCommentingAgentId(Id agentId,
boolean match)
Sets an agent
Id. |
void |
matchCommentorId(Id resourceId,
boolean match)
Sets a resource
Id to match a commentor. |
void |
matchRatingId(Id gradeId,
boolean match)
Sets a grade
Id. |
void |
matchReferenceId(Id sourceId,
boolean match)
Sets reference
Id. |
void |
matchText(java.lang.String text,
Type stringMatchType,
boolean match)
Matches text.
|
boolean |
supportsBookQuery()
Tests if a
BookQuery is available. |
boolean |
supportsCommentingAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsCommentorQuery()
Tests if a
ResourceQuery is available. |
boolean |
supportsRatingQuery()
Tests if a
GradeQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryclearCommentIdTerms, 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, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchReferenceId(Id sourceId, boolean match)
Id. sourceId - a source Id match - true for a positive match, false
for a negative matchNullArgumentException - sourceId is
null mandatory - This method must be implemented. void clearReferenceIdTerms()
Id terms.mandatory - This method must be implemented. void matchCommentorId(Id resourceId, boolean match)
Id to match a commentor.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 clearCommentorIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCommentorQuery()
ResourceQuery is available. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getCommentorQuery()
OR term.UnimplementedException -
supportsCommentorQuery() is false optional - This method must be implemented if
supportsCommentorQuery() is true. void clearCommentorTerms()
mandatory - This method must be implemented. void matchCommentingAgentId(Id agentId, boolean match)
Id. agentId - an agent Id match - true for a positive match, false
for a negative matchNullArgumentException - agentId is
null mandatory - This method must be implemented. void clearCommentingAgentIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCommentingAgentQuery()
AgentQuery is available. true if an agent query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getCommentingAgentQuery()
OR term.UnimplementedException -
supportsCommentingAgentQuery() is false optional - This method must be implemented if
supportsCommentingAgentQuery() is true.
void clearCommentingAgentTerms()
mandatory - This method must be implemented. void matchText(java.lang.String text,
Type stringMatchType,
boolean match)
text - the textstringMatchType - a string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - text is not
of stringMatchType NullArgumentException - text is
null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyText(boolean match)
match - true to match comments with any text,
false to match comments with no textmandatory - This method must be implemented. void clearTextTerms()
mandatory - This method must be implemented. void matchRatingId(Id gradeId, boolean match)
Id. gradeId - a grade Id match - true for a positive match, false
for a negative matchNullArgumentException - gradeId is
null mandatory - This method must be implemented. void clearRatingIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsRatingQuery()
GradeQuery is available. true if a rating query is available,
false otherwisemandatory - This method must be implemented. GradeQuery getRatingQuery()
OR term.UnimplementedException - supportsRatingQuery()
is false optional - This method must be implemented if
supportsRatingQuery() is true. void matchAnyRating(boolean match)
match - true to match comments with any rating,
false to match comments with no ratingsmandatory - This method must be implemented. void clearRatingTerms()
mandatory - This method must be implemented. void matchBookId(Id bookId, boolean match)
Id for this query to match comments
assigned to books.bookId - a book Id match - true for a positive match, false
for a negative matchNullArgumentException - bookId is
null mandatory - This method must be implemented. void clearBookIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsBookQuery()
BookQuery is available. true if a book query is available, false
otherwisemandatory - This method must be implemented. BookQuery getBookQuery()
OR term.UnimplementedException - supportsBookQuery()
is false optional - This method must be implemented if
supportsBookQuery() is true. void clearBookTerms()
mandatory - This method must be implemented. CommentQueryRecord getCommentQueryRecord(Type commentRecordType) throws OperationFailedException
Comment record Type. Multiple record retrievals
produce a nested OR term.commentRecordType - a comment record typeNullArgumentException - commentRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(commentRecordType) is false
mandatory - This method must be implemented.