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 .
-
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, 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.Methods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryModifier and TypeMethodDescriptionvoidClears all assetIdterms.voidClears all branding terms.voidClears all license terms.voidClears all providerIdterms.voidClears all provider terms.getBrandingQuery(boolean match) Gets the query for an asset.getProviderQuery(boolean match) Gets the query for the provider.voidmatchAnyBranding(boolean match) Match sourceables with any branding.voidmatchAnyLicense(boolean match) Matches any object with a license.voidmatchAnyProvider(boolean match) Match sourceables with a provider value.voidmatchBrandingId(Id assetId, boolean match) Match theIdof an asset used for branding.voidmatchLicense(String license, Type stringMatchType, boolean match) Adds a license to match.voidmatchProviderId(Id resourceId, boolean match) Match theIdof the provider resource.booleanTests if anAssetQueryfor the branding is available.booleanTests if aResourceQueryfor the provider is available.
-
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.
-