OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Interfaceosid.personnel.PersonQuery
Implementsosid.OsidObjectQuery
Used Byosid.personnel.AppointmentQuery
osid.personnel.PersonQuerySession
osid.personnel.PersonSearchSession
osid.personnel.PersonSmartRealmSession
osid.personnel.RealmQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTsalutation is not of stringMatchType
NULL_ARGUMENTsalutation or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySalutation
Description

Matches persons with any salutation.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTgivenName is not of stringMatchType
NULL_ARGUMENTgivenName or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyGivenName
Description

Matches persons with any given name.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTpreferredName is not of stringMatchType
NULL_ARGUMENTpreferredName or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPreferredName
Description

Matches persons with any preferred name.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTforenameAlias is not of stringMatchType
NULL_ARGUMENTforenameAlias or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyForenameAlias
Description

Matches persons with any forename alias.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTmiddleName is not of stringMatchType
NULL_ARGUMENTmiddleName or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyMiddleName
Description

Matches persons with any middle name.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTsurName is not of stringMatchType
NULL_ARGUMENTsurName or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySurname
Description

Matches persons with any surname.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTsurnameAlias is not of stringMatchType
NULL_ARGUMENTsurnameAlias or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySurnameAlias
Description

Matches persons with any surname alias.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTgenerationQualifier is not of stringMatchType
NULL_ARGUMENTgenerationQualifier or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyGenerationQualifier
Description

Matches persons with any generation qualifier.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTqualificationSuffix is not of stringMatchType
NULL_ARGUMENTqualificationSuffix or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyQualificationSuffix
Description

Matches persons with any qualification suffix.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyBirthDate
Description

Matches persons with any birth date.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDeathDate
Description

Matches persons with any death date.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTidentifier is not of stringMatchType
NULL_ARGUMENTidentifier or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyInstitutionalIdentifier
Description

Matches persons with any institutional identifier.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrealmId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsRealmQuery() 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_ARGUMENTpersonRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(personRecordType) is false
CompliancemandatoryThis method must be implemented.