Interface BookQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidCatalogQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching books. Each method specifies an
AND term while multiple invocations of the same method produce a nested
OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the ancestor bookIdterms.voidClears the ancestor book terms.voidClears the commentIdterms.voidClears the comment terms.voidClears the descendant bookIdterms.voidClears the descendant book terms.Gets the query for a book.getBookQueryRecord(Type bookRecordType) Gets the book query record corresponding to the givenBookrecordType.Multiple record retrievals produce a nested booleanORterm.Gets the query for a comment.Gets the query for a book.voidmatchAncestorBookId(Id bookId, boolean match) Sets the bookIdfor this query to match books that have the specified book as an ancestor.voidmatchAnyAncestorBook(boolean match) Matches books with any ancestor.voidmatchAnyComment(boolean match) Matches books with any comment.voidmatchAnyDescendantBook(boolean match) Matches books with any descendant.voidmatchCommentId(Id commentId, boolean match) Sets the commentIdfor this query to match comments assigned to books.voidmatchDescendantBookId(Id bookId, boolean match) Sets the bookIdfor this query to match books that have the specified book as a descendant.booleanTests if aBookQueryis available.booleanTests if a comment query is available.booleanTests if aBookQueryis 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
clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears 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 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.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.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 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
-
matchCommentId
Sets the commentIdfor this query to match comments assigned to books.- Specified by:
matchCommentIdin interfaceOsidObjectQuery- Parameters:
commentId- a commentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-commentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCommentIdTerms
void clearCommentIdTerms()Clears the commentIdterms.- Specified by:
clearCommentIdTermsin interfaceOsidObjectQuery- Compliance:
mandatory- This method must be implemented.
-
supportsCommentQuery
boolean supportsCommentQuery()Tests if a comment query is available.- Specified by:
supportsCommentQueryin interfaceOsidObjectQuery- Returns:
trueif a comment query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCommentQuery
CommentQuery getCommentQuery()Gets the query for a comment.- Specified by:
getCommentQueryin interfaceOsidObjectQuery- Returns:
- the comment query
- Throws:
UnimplementedException-supportsCommentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommentQuery()} is {@code true} .
-
matchAnyComment
void matchAnyComment(boolean match) Matches books with any comment.- Specified by:
matchAnyCommentin interfaceOsidObjectQuery- Parameters:
match-trueto match books with any comment,falseto match books with no comments- Compliance:
mandatory- This method must be implemented.
-
clearCommentTerms
void clearCommentTerms()Clears the comment terms.- Specified by:
clearCommentTermsin interfaceOsidObjectQuery- Compliance:
mandatory- This method must be implemented.
-
matchAncestorBookId
Sets the bookIdfor this query to match books that have the specified book as an ancestor.- Parameters:
bookId- a bookIdmatch-truefor a positive match, afalsefor a negative match- Throws:
NullArgumentException-bookIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAncestorBookIdTerms
void clearAncestorBookIdTerms()Clears the ancestor bookIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAncestorBookQuery
boolean supportsAncestorBookQuery()Tests if aBookQueryis available.- Returns:
trueif a book query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAncestorBookQuery
BookQuery getAncestorBookQuery()Gets the query for a book. Multiple retrievals produce a nestedORterm.- Returns:
- the book query
- Throws:
UnimplementedException-supportsAncestorBookQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAncestorBookQuery()} is {@code true} .
-
matchAnyAncestorBook
void matchAnyAncestorBook(boolean match) Matches books with any ancestor.- Parameters:
match-trueto match books with any ancestor,falseto match root books- Compliance:
mandatory- This method must be implemented.
-
clearAncestorBookTerms
void clearAncestorBookTerms()Clears the ancestor book terms.- Compliance:
mandatory- This method must be implemented.
-
matchDescendantBookId
Sets the bookIdfor this query to match books that have the specified book as a descendant.- Parameters:
bookId- a bookIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-bookIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescendantBookIdTerms
void clearDescendantBookIdTerms()Clears the descendant bookIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsDescendantBookQuery
boolean supportsDescendantBookQuery()Tests if aBookQueryis available.- Returns:
trueif a book query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDescendantBookQuery
BookQuery getDescendantBookQuery()Gets the query for a book. Multiple retrievals produce a nestedORterm.- Returns:
- the book query
- Throws:
UnimplementedException-supportsDescendantBookQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDescendantBookQuery()} is {@code true} .
-
matchAnyDescendantBook
void matchAnyDescendantBook(boolean match) Matches books with any descendant.- Parameters:
match-trueto match books with any descendant,falseto match leaf books- Compliance:
mandatory- This method must be implemented.
-
clearDescendantBookTerms
void clearDescendantBookTerms()Clears the descendant book terms.- Compliance:
mandatory- This method must be implemented.
-
getBookQueryRecord
Gets the book query record corresponding to the givenBookrecordType.Multiple record retrievals produce a nested booleanORterm.- Parameters:
bookRecordType- a book record type- Returns:
- the book query record
- Throws:
NullArgumentException-bookRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(bookRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-