OSID Logo
OSID Specifications
personnel package
Version 3.1.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.

Parametersstringsalutation a salutation
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearSalutationTerms
Description

Clears all salutation terms.

Compliancemandatory This method must be implemented.
MethodmatchGivenName
Description

Matches a given name.

ParametersstringgivenName a given name
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearGivenNameTerms
Description

Clears all given name terms.

Compliancemandatory This method must be implemented.
MethodmatchPreferredName
Description

Matches a preferred name.

ParametersstringpreferredName a preferred name
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearPreferredNameTerms
Description

Clears all preferred name terms.

Compliancemandatory This method must be implemented.
MethodmatchForenameAlias
Description

Matches a forename alias.

ParametersstringforenameAlias a forename alias
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearForenameAliasTerms
Description

Clears all forename alias terms.

Compliancemandatory This method must be implemented.
MethodmatchMiddleName
Description

Matches a middle name.

ParametersstringmiddleName a middle name
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearMiddleNameTerms
Description

Clears all middle name terms.

Compliancemandatory This method must be implemented.
MethodmatchSurname
Description

Matches a surname.

Parametersstringsurname a surname
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearSurnameTerms
Description

Clears all surname terms.

Compliancemandatory This method must be implemented.
MethodmatchSurnameAlias
Description

Matches a surname alias.

ParametersstringsurnameAlias a surname alias
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearSurnameAliasTerms
Description

Clears all surname alias terms.

Compliancemandatory This method must be implemented.
MethodmatchGenerationQualifier
Description

Matches a generation qualifier.

ParametersstringgenerationQualifier a generation qualifier
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearGenerationQualifierTerms
Description

Clears all generation qualifier terms.

Compliancemandatory This method must be implemented.
MethodmatchQualificationSuffix
Description

Matches a qualification suffix.

ParametersstringqualificationSuffix a qualification suffix
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearQualificationSuffixTerms
Description

Clears all qualification suffix terms.

Compliancemandatory This method must be implemented.
MethodmatchBirthDate
Description

Matches a birth date bwteen the given range inclusive.

Parametersosid.calendaring.DateTimefrom a starting date
osid.calendaring.DateTimeto an 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearBirthDateTerms
Description

Clears all birth date terms.

Compliancemandatory This method must be implemented.
MethodmatchDeathDate
Description

Matches a death date between the given range inclusive.

Parametersosid.calendaring.DateTimefrom a starting date
osid.calendaring.DateTimeto an 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearDeathDateTerms
Description

Clears all death date terms.

Compliancemandatory This method must be implemented.
MethodmatchLivingDate
Description

Matches a persons alive within the given dates inclusive.

Parametersosid.calendaring.DateTimefrom a starting date
osid.calendaring.DateTimeto an 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
Compliancemandatory This method must be implemented.
MethodclearLivingDateTerms
Description

Clears all living date terms.

Compliancemandatory This method must be implemented.
MethodmatchInstitutionalIdentifier
Description

Matches an institutional identifier.

Parametersstringidentifier an institutional identifier
osid.type.TypestringMatchType a 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearInstitutionalIdentifierTerms
Description

Clears all institutional identifier terms.

Compliancemandatory This method must be implemented.
MethodmatchRealmId
Description

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

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

Clears all realm Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRealmQuery
Description

Tests if a RealmQuery is available.

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

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

Returnosid.personnel.RealmQuery the realm query
ErrorsUNIMPLEMENTED supportsRealmQuery() is false
Complianceoptional This method must be implemented if supportsRealmQuery() is true.
MethodclearRealmTerms
Description

Clears all realm terms.

Compliancemandatory This 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.TypepersonRecordType a person record type
Returnosid.personnel.records.PersonQueryRecord the person query record
ErrorsNULL_ARGUMENT personRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(personRecordType) is false
Compliancemandatory This method must be implemented.