Interface EntryQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching entries. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR.
Like all OsidQueries, EntryQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the blogIdterms.voidClears the blog terms.voidClears the posterIdterms.voidClears the poster terms.voidClears the posting agentIdterms.voidClears the posting agent terms.voidClears the subject line terms.voidClears the summary terms.voidClears the text terms.voidClears the timestamp terms.Gets the query for a blog.getEntryQueryRecord(Type entryRecordType) Gets the query record corresponding to the givenEntryrecordType.Multiple retrievals produce a nestedORterm.Gets the query for a resource.Gets the query for an agent.voidmatchAnySubjectLine(boolean match) Matches entries with any subject line.voidmatchAnySummary(boolean match) Matches entries with any summary.voidmatchAnyText(boolean match) Matches entries with any text.voidmatchBlogId(Id blogId, boolean match) Sets the blogIdfor this query.voidmatchPosterId(Id resourceId, boolean match) Matches the poster of the entry.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.voidmatchSummary(String summary, Type stringMatchType, boolean match) Adds a summary 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 aBlogQueryis available.booleanTests if aResourceQueryis available for querying posters.booleanTests if anAgentQueryis available for querying senders.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods 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, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeMethods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
-
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-Idof aResourceto 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 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-Idof anAgentto 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 senders.- 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- subject line 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.
-
matchSummary
Adds a summary to match. Multiple summaries matches can be added to perform a booleanORamong them.- Parameters:
summary- summary to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-summary isnot ofstringMatchTypeNullArgumentException-summaryorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnySummary
void matchAnySummary(boolean match) Matches entries with any summary.- Parameters:
match-trueto match entries with any summary,falseto match entries with no summary- Compliance:
mandatory- This method must be implemented.
-
clearSummaryTerms
void clearSummaryTerms()Clears the summary 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.
-
matchBlogId
Sets the blogIdfor this query.- Parameters:
blogId- the blogIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-blogIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBlogIdTerms
void clearBlogIdTerms()Clears the blogIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsBlogQuery
boolean supportsBlogQuery()Tests if aBlogQueryis available.- Returns:
trueif a blog query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBlogQuery
BlogQuery getBlogQuery()Gets the query for a blog. Multiple retrievals produce a nestedORterm.- Returns:
- the blog query
- Throws:
UnimplementedException-supportsBlogQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBlogQuery()} is {@code true}.
-
clearBlogTerms
void clearBlogTerms()Clears the blog terms.- Compliance:
mandatory- This method must be implemented.
-
getEntryQueryRecord
Gets the query record corresponding to the givenEntryrecordType.Multiple retrievals produce a nestedORterm.- Parameters:
entryRecordType- an entry record type- Returns:
- the entry query record
- Throws:
NullArgumentException-entryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(entryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-