OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.PersonQuery
Implementsosid.OsidObjectQuery
Description

This is the query for searching persons. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchSalutation
Description

Matches a salutation.

Parametersstringsalutationa salutation
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT salutation is not of stringMatchType
NULL_ARGUMENT salutation or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySalutation
Description

Matches persons with any salutation.

Parametersbooleanmatch true to match persons with any salutation, false to match persons with no salutation
CompliancemandatoryThis method must be implemented.
MethodclearSalutationTerms
Description

Clears all salutation terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGivenName
Description

Matches a given name.

ParametersstringgivenNamea given name
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT givenName is not of stringMatchType
NULL_ARGUMENT givenName or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyGivenName
Description

Matches persons with any given name.

Parametersbooleanmatch true to match persons with any given name, false to match persons with no given name
CompliancemandatoryThis method must be implemented.
MethodclearGivenNameTerms
Description

Clears all given name terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPreferredName
Description

Matches a preferred name.

ParametersstringpreferredNamea preferred name
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT preferredName is not of stringMatchType
NULL_ARGUMENT preferredName or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPreferredName
Description

Matches persons with any preferred name.

Parametersbooleanmatch true to match persons with any preferred name, false to match persons with no preferred name
CompliancemandatoryThis method must be implemented.
MethodclearPreferredNameTerms
Description

Clears all preferred name terms.

CompliancemandatoryThis method must be implemented.
MethodmatchForenameAlias
Description

Matches a forename alias.

ParametersstringforenameAliasa forename alias
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT forenameAlias is not of stringMatchType
NULL_ARGUMENT forenameAlias or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyForenameAlias
Description

Matches persons with any forename alias.

Parametersbooleanmatch true to match persons with any forename alias, false to match persons with no forename aliases
CompliancemandatoryThis method must be implemented.
MethodclearForenameAliasTerms
Description

Clears all forename alias terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMiddleName
Description

Matches a middle name.

ParametersstringmiddleNamea middle name
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT middleName is not of stringMatchType
NULL_ARGUMENT middleName or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyMiddleName
Description

Matches persons with any middle name.

Parametersbooleanmatch true to match persons with any middle name, false to match persons with no middle name
CompliancemandatoryThis method must be implemented.
MethodclearMiddleNameTerms
Description

Clears all middle name terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSurname
Description

Matches a surname.

ParametersstringsurNamea surname
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT surName is not of stringMatchType
NULL_ARGUMENT surName or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySurname
Description

Matches persons with any surname.

Parametersbooleanmatch true to match persons with any surname, false to match persons with no surname
CompliancemandatoryThis method must be implemented.
MethodclearSurnameTerms
Description

Clears all surname terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSurnameAlias
Description

Matches a surname alias.

ParametersstringsurnameAliasa surname alias
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT surnameAlias is not of stringMatchType
NULL_ARGUMENT surnameAlias or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySurnameAlias
Description

Matches persons with any surname alias.

Parametersbooleanmatch true to match persons with any surname alias, false to match persons with no surname alias
CompliancemandatoryThis method must be implemented.
MethodclearSurnameAliasTerms
Description

Clears all surname alias terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGenerationQualifier
Description

Matches a generation qualifier.

ParametersstringgenerationQualifiera generation qualifier
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT generationQualifier is not of stringMatchType
NULL_ARGUMENT generationQualifier or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyGenerationQualifier
Description

Matches persons with any generation qualifier.

Parametersbooleanmatch true to match persons with any generation qualifier, false to match persons with no generation qualifier
CompliancemandatoryThis method must be implemented.
MethodclearGenerationQualifierTerms
Description

Clears all generation qualifier terms.

CompliancemandatoryThis method must be implemented.
MethodmatchQualificationSuffix
Description

Matches a qualification suffix.

ParametersstringqualificationSuffixa qualification suffix
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT qualificationSuffix is not of stringMatchType
NULL_ARGUMENT qualificationSuffix or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyQualificationSuffix
Description

Matches persons with any qualification suffix.

Parametersbooleanmatch true to match persons with any qualification sufix, false to match persons with no qualification suffix
CompliancemandatoryThis method must be implemented.
MethodclearQualificationSuffixTerms
Description

Clears all qualification suffix terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBirthDate
Description

Matches a birth date bwteen the given range inclusive.

Parametersosid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyBirthDate
Description

Matches persons with any birth date.

Parametersbooleanmatch true to match persons with any date of birth, false to match persons with no date of birth
CompliancemandatoryThis method must be implemented.
MethodclearBirthDateTerms
Description

Clears all birth date terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDeathDate
Description

Matches a death date between the given range inclusive.

Parametersosid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDeathDate
Description

Matches persons with any death date.

Parametersbooleanmatch true to match persons with any date of death, false to match persons who might still be alive
CompliancemandatoryThis method must be implemented.
MethodclearDeathDateTerms
Description

Clears all death date terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLivingDate
Description

Matches a persons alive within the given dates inclusive.

Parametersosid.calendaring.DateTimefroma starting date
osid.calendaring.DateTimetoan ending date
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearLivingDateTerms
Description

Clears all living date terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInstitutionalIdentifier
Description

Matches an institutional identifier.

Parametersstringidentifieran institutional identifier
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT identifier is not of stringMatchType
NULL_ARGUMENT identifier or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyInstitutionalIdentifier
Description

Matches persons with any institutional identifier.

Parametersbooleanmatch true to match persons with any institutional identifier, false to match persons with no instituional identifier
CompliancemandatoryThis method must be implemented.
MethodclearInstitutionalIdentifierTerms
Description

Clears all institutional identifier terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRealmId
Description

Sets the realm Id for this query to match persons assigned to realms.

Parametersosid.id.IdrealmIda realm Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT realmId is null
CompliancemandatoryThis method must be implemented.
MethodclearRealmIdTerms
Description

Clears all realm Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRealmQuery
Description

Tests if a RealmQuery is available.

Returnboolean true if a realm query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRealmQuery
Description

Gets the query for a realm query. Multiple retrievals produce a nested OR term.

Returnosid.personnel.RealmQuerythe realm query
ErrorsUNIMPLEMENTED supportsRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsRealmQuery() is true.
MethodclearRealmTerms
Description

Clears all realm terms.

CompliancemandatoryThis method must be implemented.
MethodgetPersonQueryRecord
Description

Gets the person query record corresponding to the given Person record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypepersonRecordTypea person record type
Returnosid.personnel.records.PersonQueryRecordthe person query record
ErrorsNULL_ARGUMENT personRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(personRecordType) is false
CompliancemandatoryThis method must be implemented.