Interface ReplyQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidContainableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSubjugateableQuery, Suppliable
This is the query for searching for replies. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the contained replyIdterms.voidClears the contained reply terms.voidClears the containing replyIdterms.voidClears the containing reply terms.voidClears the forumIdterms.voidClears the forum terms.voidClears the poster resourceIdterms.voidClears the poster terms.voidClears the postIdterms.voidClears the posting agentIdterms.voidClears the posting agent terms.voidClears the post terms.voidClears the subject line terms.voidClears the text terms.voidClears the timestamp terms.Gets the query for a contained reply.Gets the query for a containing reply.Gets the query for a forum query.Gets the query for a resource.Gets the query for an agent.Gets the query for a post query.getReplyQueryRecord(Type replyRecordType) Gets the reply query record corresponding to the givenReplyrecordType.Multiple record retrievals produce a nestedORterm.voidmatchAnyContainedReply(boolean match) Matches replies with any descednant reply.voidmatchAnyContainingReply(boolean match) Matches replies with any ancestor reply.voidmatchAnySubjectLine(boolean match) Matches entries with any subject line.voidmatchAnyText(boolean match) Matches entries with any text.voidmatchContainedReplyId(Id replyId, boolean match) Sets the replyIdfor this query to match replies that have the specified reply as a descendant.voidmatchContainingReplyId(Id replyId, boolean match) Sets the replyIdfor this query to match replies that have the specified reply as an ancestor.voidmatchForumId(Id forumId, boolean match) Sets the postIdfor this query to match replies assigned to forums.voidmatchPosterId(Id resourceId, boolean match) Matches the poster of the entry.voidmatchPostId(Id postId, boolean match) Sets the postIdfor this query to match replies to posts.voidmatchPostingAgentId(Id agentId, boolean match) Matches the posting agent of the entry.voidmatchSubjectLine(String subject, Type stringMatchType, boolean match) Adds a subject line to match.voidAdds text to match.voidmatchTimestamp(DateTime startTime, DateTime endTime, boolean match) Matches entries whose sent time is between the supplied range inclusive.booleanTests if a contained reply query is available.booleanTests if a containing reply query is available.booleanTests if aForumQueryis available.booleanTests if aResourceQueryis available for querying posters.booleanTests if anAgentQueryis available for querying posting agents.booleanTests if aPostQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidContainableQuery
clearSequesteredTerms, matchSequesteredModifier and TypeMethodDescriptionvoidClears the sequestered query terms.voidmatchSequestered(boolean match) Match containables that are sequestered.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.
-
Method Details
-
matchPostId
Sets the postIdfor this query to match replies to posts.- Parameters:
postId- a postIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-postIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPostIdTerms
void clearPostIdTerms()Clears the postIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPostQuery
boolean supportsPostQuery()Tests if aPostQueryis available.- Returns:
trueif a post query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPostQuery
PostQuery getPostQuery()Gets the query for a post query. Multiple retrievals produce a nestedORterm.- Returns:
- the post query
- Throws:
UnimplementedException-supportsPostQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPostQuery()} is {@code true} .
-
clearPostTerms
void clearPostTerms()Clears the post terms.- Compliance:
mandatory- This method must be implemented.
-
matchTimestamp
Matches entries whose sent time is between the supplied range inclusive.- Parameters:
startTime- start timeendTime- end timematch-trueif for a positive match,falsefor a negative match- Throws:
InvalidArgumentException-startTimeis greater thanendTimeNullArgumentException-startTimeorendTimeisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimestampTerms
void clearTimestampTerms()Clears the timestamp terms.- Compliance:
mandatory- This method must be implemented.
-
matchPosterId
Matches the poster of the entry.- Parameters:
resourceId- resourceIdto matchmatch-trueif for a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPosterIdTerms
void clearPosterIdTerms()Clears the poster resourceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPosterQuery
boolean supportsPosterQuery()Tests if aResourceQueryis available for querying posters.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPosterQuery
ResourceQuery getPosterQuery()Gets the query for a resource.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsPosterQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPosterQuery()} is {@code true} .
-
clearPosterTerms
void clearPosterTerms()Clears the poster terms.- Compliance:
mandatory- This method must be implemented.
-
matchPostingAgentId
Matches the posting agent of the entry.- Parameters:
agentId- agentIdto matchmatch-trueif for a positive match,falsefor a negative match- Throws:
NullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPostingAgentIdTerms
void clearPostingAgentIdTerms()Clears the posting agentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPostingAgentQuery
boolean supportsPostingAgentQuery()Tests if anAgentQueryis available for querying posting agents.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPostingAgentQuery
AgentQuery getPostingAgentQuery()Gets the query for an agent.- Returns:
- the agent query
- Throws:
UnimplementedException-supportsPostingAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPostingAgentQuery()} is {@code true} .
-
clearPostingAgentTerms
void clearPostingAgentTerms()Clears the posting agent terms.- Compliance:
mandatory- This method must be implemented.
-
matchSubjectLine
Adds a subject line to match. Multiple subject line matches can be added to perform a booleanORamong them.- Parameters:
subject- display name to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-subject isnot ofstringMatchTypeNullArgumentException-subjectorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnySubjectLine
void matchAnySubjectLine(boolean match) Matches entries with any subject line.- Parameters:
match-trueto match entries with any subject line,falseto match entries with no subject line- Compliance:
mandatory- This method must be implemented.
-
clearSubjectLineTerms
void clearSubjectLineTerms()Clears the subject line terms.- Compliance:
mandatory- This method must be implemented.
-
matchText
Adds text to match. Multiple text matches can be added to perform a booleanORamong them.- Parameters:
text- text to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-text isnot ofstringMatchTypeNullArgumentException-textorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyText
void matchAnyText(boolean match) Matches entries with any text.- Parameters:
match-trueto match entries with any text,falseto match entries with no text- Compliance:
mandatory- This method must be implemented.
-
clearTextTerms
void clearTextTerms()Clears the text terms.- Compliance:
mandatory- This method must be implemented.
-
matchContainingReplyId
Sets the replyIdfor this query to match replies that have the specified reply as an ancestor.- Parameters:
replyId- a replyIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-replyIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearContainingReplyIdTerms
void clearContainingReplyIdTerms()Clears the containing replyIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsContainingReplyQuery
boolean supportsContainingReplyQuery()Tests if a containing reply query is available.- Returns:
trueif a containing reply query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getContainingReplyQuery
ReplyQuery getContainingReplyQuery()Gets the query for a containing reply.- Returns:
- the containing reply query
- Throws:
UnimplementedException-supportsContainingReplyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsContainingReplyQuery()} is {@code true} .
-
matchAnyContainingReply
void matchAnyContainingReply(boolean match) Matches replies with any ancestor reply.- Parameters:
match-trueto match replies with any ancestor reply,falseto match replies with no ancestor replies- Compliance:
mandatory- This method must be implemented.
-
clearContainingReplyTerms
void clearContainingReplyTerms()Clears the containing reply terms.- Compliance:
mandatory- This method must be implemented.
-
matchContainedReplyId
Sets the replyIdfor this query to match replies that have the specified reply as a descendant.- Parameters:
replyId- a replyIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-replyIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearContainedReplyIdTerms
void clearContainedReplyIdTerms()Clears the contained replyIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsContainedReplyQuery
boolean supportsContainedReplyQuery()Tests if a contained reply query is available.- Returns:
trueif a contained reply query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getContainedReplyQuery
ReplyQuery getContainedReplyQuery()Gets the query for a contained reply.- Returns:
- the contained reply query
- Throws:
UnimplementedException-supportsContainedReplyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsContainedReplyQuery()} is {@code true} .
-
matchAnyContainedReply
void matchAnyContainedReply(boolean match) Matches replies with any descednant reply.- Parameters:
match-trueto match replies with any descendant reply,falseto match replies with no descendant replies- Compliance:
mandatory- This method must be implemented.
-
clearContainedReplyTerms
void clearContainedReplyTerms()Clears the contained reply terms.- Compliance:
mandatory- This method must be implemented.
-
matchForumId
Sets the postIdfor this query to match replies assigned to forums.- Parameters:
forumId- a forumIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-forumIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearForumIdTerms
void clearForumIdTerms()Clears the forumIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsForumQuery
boolean supportsForumQuery()Tests if aForumQueryis available.- Returns:
trueif a forum query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getForumQuery
ForumQuery getForumQuery()Gets the query for a forum query. Multiple retrievals produce a nestedORterm.- Returns:
- the forum query
- Throws:
UnimplementedException-supportsForumQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsForumQuery()} is {@code true} .
-
clearForumTerms
void clearForumTerms()Clears the forum terms.- Compliance:
mandatory- This method must be implemented.
-
getReplyQueryRecord
Gets the reply query record corresponding to the givenReplyrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
replyRecordType- a reply record type- Returns:
- the reply query record
- Throws:
NullArgumentException-replyRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(replyRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-