Interface PersonQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching persons. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all birth date terms.voidClears all death date terms.voidClears all forename alias terms.voidClears all generation qualifier terms.voidClears all given name terms.voidClears all institutional identifier terms.voidClears all living date terms.voidClears all middle name terms.voidClears all preferred name terms.voidClears all qualification suffix terms.voidClears all realmIdterms.voidClears all realm terms.voidClears all salutation terms.voidClears all surname alias terms.voidClears all surname terms.getPersonQueryRecord(Type personRecordType) Gets the person query record corresponding to the givenPersonrecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a realm query.voidmatchAnyBirthDate(boolean match) Matches persons with any birth date.voidmatchAnyDeathDate(boolean match) Matches persons with any death date.voidmatchAnyForenameAlias(boolean match) Matches persons with any forename alias.voidmatchAnyGenerationQualifier(boolean match) Matches persons with any generation qualifier.voidmatchAnyGivenName(boolean match) Matches persons with any given name.voidmatchAnyInstitutionalIdentifier(boolean match) Matches persons with any institutional identifier.voidmatchAnyMiddleName(boolean match) Matches persons with any middle name.voidmatchAnyPreferredName(boolean match) Matches persons with any preferred name.voidmatchAnyQualificationSuffix(boolean match) Matches persons with any qualification suffix.voidmatchAnySalutation(boolean match) Matches persons with any salutation.voidmatchAnySurname(boolean match) Matches persons with any surname.voidmatchAnySurnameAlias(boolean match) Matches persons with any surname alias.voidmatchBirthDate(DateTime from, DateTime to, boolean match) Matches a birth date bwteen the given range inclusive.voidmatchDeathDate(DateTime from, DateTime to, boolean match) Matches a death date between the given range inclusive.voidmatchForenameAlias(String forenameAlias, Type stringMatchType, boolean match) Matches a forename alias.voidmatchGenerationQualifier(String generationQualifier, Type stringMatchType, boolean match) Matches a generation qualifier.voidmatchGivenName(String givenName, Type stringMatchType, boolean match) Matches a given name.voidmatchInstitutionalIdentifier(String identifier, Type stringMatchType, boolean match) Matches an institutional identifier.voidmatchLivingDate(DateTime from, DateTime to, boolean match) Matches a persons alive within the given dates inclusive.voidmatchMiddleName(String middleName, Type stringMatchType, boolean match) Matches a middle name.voidmatchPreferredName(String preferredName, Type stringMatchType, boolean match) Matches a preferred name.voidmatchQualificationSuffix(String qualificationSuffix, Type stringMatchType, boolean match) Matches a qualification suffix.voidmatchRealmId(Id realmId, boolean match) Sets the realmIdfor this query to match persons assigned to realms.voidmatchSalutation(String salutation, Type stringMatchType, boolean match) Matches a salutation.voidmatchSurname(String surname, Type stringMatchType, boolean match) Matches a surname.voidmatchSurnameAlias(String surnameAlias, Type stringMatchType, boolean match) Matches a surname alias.booleanTests if aRealmQueryis 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
-
matchSalutation
Matches a salutation.- Parameters:
salutation- a salutationstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-salutationis not ofstringMatchTypeNullArgumentException-salutationorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnySalutation
void matchAnySalutation(boolean match) Matches persons with any salutation.- Parameters:
match-trueto match persons with any salutation,falseto match persons with no salutation- Compliance:
mandatory- This method must be implemented.
-
clearSalutationTerms
void clearSalutationTerms()Clears all salutation terms.- Compliance:
mandatory- This method must be implemented.
-
matchGivenName
Matches a given name.- Parameters:
givenName- a given namestringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-givenNameis not ofstringMatchTypeNullArgumentException-givenNameorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyGivenName
void matchAnyGivenName(boolean match) Matches persons with any given name.- Parameters:
match-trueto match persons with any given name,falseto match persons with no given name- Compliance:
mandatory- This method must be implemented.
-
clearGivenNameTerms
void clearGivenNameTerms()Clears all given name terms.- Compliance:
mandatory- This method must be implemented.
-
matchPreferredName
Matches a preferred name.- Parameters:
preferredName- a preferred namestringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-preferredNameis not ofstringMatchTypeNullArgumentException-preferredNameorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyPreferredName
void matchAnyPreferredName(boolean match) Matches persons with any preferred name.- Parameters:
match-trueto match persons with any preferred name,falseto match persons with no preferred name- Compliance:
mandatory- This method must be implemented.
-
clearPreferredNameTerms
void clearPreferredNameTerms()Clears all preferred name terms.- Compliance:
mandatory- This method must be implemented.
-
matchForenameAlias
Matches a forename alias.- Parameters:
forenameAlias- a forename aliasstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-forenameAliasis not ofstringMatchTypeNullArgumentException-forenameAliasorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyForenameAlias
void matchAnyForenameAlias(boolean match) Matches persons with any forename alias.- Parameters:
match-trueto match persons with any forename alias,falseto match persons with no forename aliases- Compliance:
mandatory- This method must be implemented.
-
clearForenameAliasTerms
void clearForenameAliasTerms()Clears all forename alias terms.- Compliance:
mandatory- This method must be implemented.
-
matchMiddleName
Matches a middle name.- Parameters:
middleName- a middle namestringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-middleNameis not ofstringMatchTypeNullArgumentException-middleNameorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyMiddleName
void matchAnyMiddleName(boolean match) Matches persons with any middle name.- Parameters:
match-trueto match persons with any middle name,falseto match persons with no middle name- Compliance:
mandatory- This method must be implemented.
-
clearMiddleNameTerms
void clearMiddleNameTerms()Clears all middle name terms.- Compliance:
mandatory- This method must be implemented.
-
matchSurname
Matches a surname.- Parameters:
surname- a surnamestringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-surNameis not ofstringMatchTypeNullArgumentException-surNameorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnySurname
void matchAnySurname(boolean match) Matches persons with any surname.- Parameters:
match-trueto match persons with any surname,falseto match persons with no surname- Compliance:
mandatory- This method must be implemented.
-
clearSurnameTerms
void clearSurnameTerms()Clears all surname terms.- Compliance:
mandatory- This method must be implemented.
-
matchSurnameAlias
Matches a surname alias.- Parameters:
surnameAlias- a surname aliasstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-surnameAliasis not ofstringMatchTypeNullArgumentException-surnameAliasorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnySurnameAlias
void matchAnySurnameAlias(boolean match) Matches persons with any surname alias.- Parameters:
match-trueto match persons with any surname alias,falseto match persons with no surname alias- Compliance:
mandatory- This method must be implemented.
-
clearSurnameAliasTerms
void clearSurnameAliasTerms()Clears all surname alias terms.- Compliance:
mandatory- This method must be implemented.
-
matchGenerationQualifier
Matches a generation qualifier.- Parameters:
generationQualifier- a generation qualifierstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-generationQualifieris not ofstringMatchTypeNullArgumentException-generationQualifierorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyGenerationQualifier
void matchAnyGenerationQualifier(boolean match) Matches persons with any generation qualifier.- Parameters:
match-trueto match persons with any generation qualifier,falseto match persons with no generation qualifier- Compliance:
mandatory- This method must be implemented.
-
clearGenerationQualifierTerms
void clearGenerationQualifierTerms()Clears all generation qualifier terms.- Compliance:
mandatory- This method must be implemented.
-
matchQualificationSuffix
Matches a qualification suffix.- Parameters:
qualificationSuffix- a qualification suffixstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-qualificationSuffixis not ofstringMatchTypeNullArgumentException-qualificationSuffixorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyQualificationSuffix
void matchAnyQualificationSuffix(boolean match) Matches persons with any qualification suffix.- Parameters:
match-trueto match persons with any qualification sufix,falseto match persons with no qualification suffix- Compliance:
mandatory- This method must be implemented.
-
clearQualificationSuffixTerms
void clearQualificationSuffixTerms()Clears all qualification suffix terms.- Compliance:
mandatory- This method must be implemented.
-
matchBirthDate
Matches a birth date bwteen the given range inclusive.- Parameters:
from- a starting dateto- an ending datematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyBirthDate
void matchAnyBirthDate(boolean match) Matches persons with any birth date.- Parameters:
match-trueto match persons with any date of birth,falseto match persons with no date of birth- Compliance:
mandatory- This method must be implemented.
-
clearBirthDateTerms
void clearBirthDateTerms()Clears all birth date terms.- Compliance:
mandatory- This method must be implemented.
-
matchDeathDate
Matches a death date between the given range inclusive.- Parameters:
from- a starting dateto- an ending datematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyDeathDate
void matchAnyDeathDate(boolean match) Matches persons with any death date.- Parameters:
match-trueto match persons with any date of death,falseto match persons who might still be alive- Compliance:
mandatory- This method must be implemented.
-
clearDeathDateTerms
void clearDeathDateTerms()Clears all death date terms.- Compliance:
mandatory- This method must be implemented.
-
matchLivingDate
Matches a persons alive within the given dates inclusive.- Parameters:
from- a starting dateto- an ending datematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
clearLivingDateTerms
void clearLivingDateTerms()Clears all living date terms.- Compliance:
mandatory- This method must be implemented.
-
matchInstitutionalIdentifier
Matches an institutional identifier.- Parameters:
identifier- an institutional identifierstringMatchType- a string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-identifieris not ofstringMatchTypeNullArgumentException-identifierorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyInstitutionalIdentifier
void matchAnyInstitutionalIdentifier(boolean match) Matches persons with any institutional identifier.- Parameters:
match-trueto match persons with any institutional identifier,falseto match persons with no instituional identifier- Compliance:
mandatory- This method must be implemented.
-
clearInstitutionalIdentifierTerms
void clearInstitutionalIdentifierTerms()Clears all institutional identifier terms.- Compliance:
mandatory- This method must be implemented.
-
matchRealmId
Sets the realmIdfor this query to match persons assigned to realms.- Parameters:
realmId- a realmIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-realmIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRealmIdTerms
void clearRealmIdTerms()Clears all realmIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsRealmQuery
boolean supportsRealmQuery()Tests if aRealmQueryis available.- Returns:
trueif a realm query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRealmQuery
RealmQuery getRealmQuery()Gets the query for a realm query. Multiple retrievals produce a nestedORterm.- Returns:
- the realm query
- Throws:
UnimplementedException-supportsRealmQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRealmQuery()} is {@code true} .
-
clearRealmTerms
void clearRealmTerms()Clears all realm terms.- Compliance:
mandatory- This method must be implemented.
-
getPersonQueryRecord
Gets the person query record corresponding to the givenPersonrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
personRecordType- a person record type- Returns:
- the person query record
- Throws:
NullArgumentException-personRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(personRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-