Interface QualifierQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching qualifiers. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the ancestor qualifierIdquery terms.voidClears the ancestor qualifier query terms.voidClears the authorizationIdquery terms.voidClears the authorization query terms.voidClears the descendant qualifierIdquery terms.voidClears the descendant qualifier query terms.voidClears the qualifier hierarchyIdquery terms.voidClears the qualifier hierarchy query terms.voidClears the vaultIdquery terms.voidClears the vault query terms.Gets the query for a qualifier.Gets the query for an authorization.Gets the query for a qualifier.Gets the query for a qualifier hierarchy.getQualifierQueryRecord(Type qualifierRecordType) Gets the qualifier query record corresponding to the givenQualifierrecordType.Gets the query for a vault.voidmatchAncestorQualifierId(Id qualifierId, boolean match) Sets the qualifierIdfor this query to match qualifiers that have the specified qualifier as an ancestor.voidmatchAnyAncestorQualifier(boolean match) Matches qualifiers that have any ancestor.voidmatchAnyAuthorization(boolean match) Matches qualifiers that have any authorization mapping.voidmatchAnyDescendantQualifier(boolean match) Matches qualifiers that have any ancestor.voidmatchAuthorizationId(Id authorizationId, boolean match) Sets the authorizationIdfor this query.voidmatchDescendantQualifierId(Id qualifierId, boolean match) Sets the qualifierIdfor this query to match qualifiers that have the specified qualifier as a descendant.voidmatchQualifierHierarchyId(Id qualifierHierarchyId, boolean match) Sets the qualifier hierarchyIdfor this query.voidmatchVaultId(Id vaultId, boolean match) Sets the vaultIdfor this query.booleanTests if aQualifierQueryis available.booleanTests if anAuthorizationQueryis available.booleanTests if aQualifierQueryis available.booleanTests if aHierarchyQueryis available.booleanTests if aVaultQueryis 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
-
matchQualifierHierarchyId
Sets the qualifier hierarchyIdfor this query.- Parameters:
qualifierHierarchyId- a hierarchyIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-qualifierHierarchyIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearQualifierHierarchyIdTerms
void clearQualifierHierarchyIdTerms()Clears the qualifier hierarchyIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsQualifierHierarchyQuery
boolean supportsQualifierHierarchyQuery()Tests if aHierarchyQueryis available.- Returns:
trueif a qualifier hierarchy query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getQualifierHierarchyQuery
HierarchyQuery getQualifierHierarchyQuery()Gets the query for a qualifier hierarchy. Multiple retrievals produce a nestedORterm.- Returns:
- the qualifier hierarchy query
- Throws:
UnimplementedException-supportsQualifierHierarchyQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsQualifierHierarchyQuery()} is {@code true} .
-
clearQualifierHierarchyTerms
void clearQualifierHierarchyTerms()Clears the qualifier hierarchy query terms.- Compliance:
mandatory- This method must be implemented.
-
matchAuthorizationId
Sets the authorizationIdfor this query.- Parameters:
authorizationId- an authorizationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-authorizationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAuthorizationIdTerms
void clearAuthorizationIdTerms()Clears the authorizationIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAuthorizationQuery
boolean supportsAuthorizationQuery()Tests if anAuthorizationQueryis available.- Returns:
trueif an authorization query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationQuery
AuthorizationQuery getAuthorizationQuery()Gets the query for an authorization. Multiple retrievals produce a nestedORterm.- Returns:
- the authorization query
- Throws:
UnimplementedException-supportsAuthorizationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAuthorizationQuery()} is {@code true} .
-
matchAnyAuthorization
void matchAnyAuthorization(boolean match) Matches qualifiers that have any authorization mapping.- Parameters:
match-trueto match qualifiers with any authorization mapping,falseto match qualifiers with no authorization mapping- Compliance:
mandatory- This method must be implemented.
-
clearAuthorizationTerms
void clearAuthorizationTerms()Clears the authorization query terms.- Compliance:
mandatory- This method must be implemented.
-
matchAncestorQualifierId
Sets the qualifierIdfor this query to match qualifiers that have the specified qualifier as an ancestor.- Parameters:
qualifierId- a qualifierIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-qualifierIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAncestorQualifierIdTerms
void clearAncestorQualifierIdTerms()Clears the ancestor qualifierIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAncestorQualifierQuery
boolean supportsAncestorQualifierQuery()Tests if aQualifierQueryis available.- Returns:
trueif a qualifier query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAncestorQualifierQuery
QualifierQuery getAncestorQualifierQuery()Gets the query for a qualifier. Multiple retrievals produce a nestedORterm.- Returns:
- the qualifier query
- Throws:
UnimplementedException-supportsAncestorQualifierQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAncestorQualifierQuery()} is {@code true} .
-
matchAnyAncestorQualifier
void matchAnyAncestorQualifier(boolean match) Matches qualifiers that have any ancestor.- Parameters:
match-trueto match qualifiers with any ancestor,falseto match root qualifiers- Compliance:
mandatory- This method must be implemented.
-
clearAncestorQualifierTerms
void clearAncestorQualifierTerms()Clears the ancestor qualifier query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDescendantQualifierId
Sets the qualifierIdfor this query to match qualifiers that have the specified qualifier as a descendant.- Parameters:
qualifierId- a qualifierIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-qualifierIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescendantQualifierIdTerms
void clearDescendantQualifierIdTerms()Clears the descendant qualifierIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDescendantQualifierQuery
boolean supportsDescendantQualifierQuery()Tests if aQualifierQueryis available.- Returns:
trueif a qualifier query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDescendantQualifierQuery
QualifierQuery getDescendantQualifierQuery()Gets the query for a qualifier. Multiple retrievals produce a nestedORterm.- Returns:
- the qualifier query
- Throws:
UnimplementedException-supportsDescendantQualifierQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDescendantQualifierQuery()} is {@code true} .
-
matchAnyDescendantQualifier
void matchAnyDescendantQualifier(boolean match) Matches qualifiers that have any ancestor.- Parameters:
match-trueto match qualifiers with any ancestor,falseto match leaf qualifiers- Compliance:
mandatory- This method must be implemented.
-
clearDescendantQualifierTerms
void clearDescendantQualifierTerms()Clears the descendant qualifier query terms.- Compliance:
mandatory- This method must be implemented.
-
matchVaultId
Sets the vaultIdfor this query.- Parameters:
vaultId- a vaultIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-vaultIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearVaultIdTerms
void clearVaultIdTerms()Clears the vaultIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsVaultQuery
boolean supportsVaultQuery()Tests if aVaultQueryis available.- Returns:
trueif a vault query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getVaultQuery
VaultQuery getVaultQuery()Gets the query for a vault. Multiple retrievals produce a nestedORterm.- Returns:
- the vault query
- Throws:
UnimplementedException-supportsVaultQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsVaultQuery()} is {@code true} .
-
clearVaultTerms
void clearVaultTerms()Clears the vault query terms.- Compliance:
mandatory- This method must be implemented.
-
getQualifierQueryRecord
QualifierQueryRecord getQualifierQueryRecord(Type qualifierRecordType) throws OperationFailedException Gets the qualifier query record corresponding to the givenQualifierrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
qualifierRecordType- a qualifier record type- Returns:
- the qualifier query record
- Throws:
NullArgumentException-qualifierRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(qualifierRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-