Interface PostQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching for posts. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the forumIdterms.voidClears the forum terms.voidClears the posterIdterms.voidClears the poster terms.voidClears the posting agentIdterms.voidClears the posting agent terms.voidClears the replyIdterms.voidClears the reply terms.voidClears the subject line terms.voidClears the text terms.voidClears the timestamp terms.Gets the query for a forum query.Gets the query for a resource.Gets the query for an agent.getPostQueryRecord(Type postRecordType) Gets the post query record corresponding to the givenPostrecordType.Multiple record retrievals produce a nested booleanORterm.Gets the query for a post.voidmatchAnyReply(boolean match) Matches posts with any reply.voidmatchAnySubjectLine(boolean match) Matches entries with any subject line.voidmatchAnyText(boolean match) Matches entries with any text.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.voidmatchPostingAgentId(Id agentId, boolean match) Matches the posting agent of the entry.voidmatchReplyId(Id replyId, boolean match) Sets the replyIdfor this query to match replies assigned to posts.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 aForumQueryis available.booleanTests if aResourceQueryis available for querying senders.booleanTests if anAgentQueryis available for querying posters.booleanTests if a reply query is 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 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
-
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-Idto 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 posterIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPosterQuery
boolean supportsPosterQuery()Tests if aResourceQueryis available for querying senders.- 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-Idto 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 posters.- 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.
-
matchReplyId
Sets the replyIdfor this query to match replies assigned to posts.- Parameters:
replyId- a replyIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-replyIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearReplyIdTerms
void clearReplyIdTerms()Clears the replyIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsReplyQuery
boolean supportsReplyQuery()Tests if a reply query is available.- Returns:
trueif a reply query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getReplyQuery
ReplyQuery getReplyQuery()Gets the query for a post.- Returns:
- the reply query
- Throws:
UnimplementedException-supportsReplyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReplyQuery()} is {@code true} .
-
matchAnyReply
void matchAnyReply(boolean match) Matches posts with any reply.- Parameters:
match-trueto match posts with any reply,falseto match posts with no replies- Compliance:
mandatory- This method must be implemented.
-
clearReplyTerms
void clearReplyTerms()Clears the 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.
-
getPostQueryRecord
Gets the post query record corresponding to the givenPostrecordType.Multiple record retrievals produce a nested booleanORterm.- Parameters:
postRecordType- a post record type- Returns:
- the post query record
- Throws:
NullArgumentException-postRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(postRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-