OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Interfaceosid.personnel.RealmQuery
Implementsosid.OsidCatalogQuery
Used Byosid.personnel.AppointmentQuery
osid.personnel.OrganizationQuery
osid.personnel.PersonQuery
osid.personnel.PositionQuery
osid.personnel.RealmQuery
osid.personnel.RealmQuerySession
osid.personnel.RealmSearchSession
Description

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

MethodmatchPersonId
Description

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

Parametersosid.id.IdpersonIda person Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpersonId is null
CompliancemandatoryThis method must be implemented.
MethodclearPersonIdTerms
Description

Clears all person Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPersonQuery
Description

Tests if a person query is available.

Returnbooleantrue if a person query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPersonQuery
Description

Gets the query for a person.

Returnosid.personnel.PersonQuerythe person query
ErrorsUNIMPLEMENTEDsupportsPersonQuery() is false
ComplianceoptionalThis method must be implemented if supportsPersonQuery() is true .
MethodmatchAnyPerson
Description

Matches realms with any person.

Parametersbooleanmatchtrue to match realms with any person, false to match realms with no persons
CompliancemandatoryThis method must be implemented.
MethodclearPersonTerms
Description

Clears all person terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOrganizationId
Description

Sets the organization Id for this query to match organizations assigned to realms.

Parametersosid.id.IdorganizationIdan organization Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTorganizationId is null
CompliancemandatoryThis method must be implemented.
MethodclearOrganizationIdTerms
Description

Clears all organization Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOrganizationQuery
Description

Tests if an organization query is available.

Returnbooleantrue if an organization query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOrganizationQuery
Description

Gets the query for an organization.

Returnosid.personnel.OrganizationQuerythe organization query
ErrorsUNIMPLEMENTEDsupportsOrganizationQuery() is false
ComplianceoptionalThis method must be implemented if supportsOrganizationQuery() is true .
MethodmatchAnyOrganization
Description

Matches realms with any organization.

Parametersbooleanmatchtrue to match realms with any organization, false to match realms with no organizations
CompliancemandatoryThis method must be implemented.
MethodclearOrganizationTerms
Description

Clears all organization terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPositionId
Description

Sets the position Id for this query to match positions assigned to realms.

Parametersosid.id.IdpositionIda position Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpositionId is null
CompliancemandatoryThis method must be implemented.
MethodclearPositionIdTerms
Description

Clears all position Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPositionQuery
Description

Tests if a position query is available.

Returnbooleantrue if a position query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPositionQuery
Description

Gets the query for a position.

Returnosid.personnel.PositionQuerythe position query
ErrorsUNIMPLEMENTEDsupportsPositionQuery() is false
ComplianceoptionalThis method must be implemented if supportsPositionQuery() is true .
MethodmatchAnyPosition
Description

Matches realms with any position.

Parametersbooleanmatchtrue to match realms with any position, false to match realms with no positions
CompliancemandatoryThis method must be implemented.
MethodclearPositionTerms
Description

Clears all position terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAppointmentId
Description

Sets the appointment Id for this query to match positions assigned to realms.

Parametersosid.id.IdappointmentIdan appointment Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTappointmentId is null
CompliancemandatoryThis method must be implemented.
MethodclearAppointmentIdTerms
Description

Clears all appointment Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAppointmentQuery
Description

Tests if an appointment query is available.

Returnbooleantrue if an appointment query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAppointmentQuery
Description

Gets the query for an appointment.

Returnosid.personnel.AppointmentQuerythe appointment query
ErrorsUNIMPLEMENTEDsupportsAppointmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAppointmentQuery() is true .
MethodmatchAnyAppointment
Description

Matches realms with any appointment.

Parametersbooleanmatchtrue to match realms with any appointment, false to match realms with no appointments
CompliancemandatoryThis method must be implemented.
MethodclearAppointmentTerms
Description

Clears all appointment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorRealmId
Description

Sets the realm Id for this query to match realms that have the specified realm as an ancestor.

Parametersosid.id.IdrealmIda realm Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrealmId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorRealmIdTerms
Description

Clears all ancestor realm Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorRealmQuery
Description

Tests if a RealmQuery is available.

Returnbooleantrue if a realm query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorRealmQuery
Description

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

Returnosid.personnel.RealmQuerythe realm query
ErrorsUNIMPLEMENTEDsupportsAncestorRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorRealmQuery() is true .
MethodmatchAnyAncestorRealm
Description

Matches realms with any ancestor.

Parametersbooleanmatchtrue to match realms with any ancestor, false to match root realms
CompliancemandatoryThis method must be implemented.
MethodclearAncestorRealmTerms
Description

Clears all ancestor realm terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantRealmId
Description

Sets the realm Id for this query to match realms that have the specified realm as a descendant.

Parametersosid.id.IdrealmIda realm Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrealmId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantRealmIdTerms
Description

Clears all descendant realm Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantRealmQuery
Description

Tests if a RealmQuery is available.

Returnbooleantrue if a realm query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantRealmQuery
Description

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

Returnosid.personnel.RealmQuerythe realm query
ErrorsUNIMPLEMENTEDsupportsDescendantRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantRealmQuery() is true .
MethodmatchAnyDescendantRealm
Description

Matches realms with any descendant.

Parametersbooleanmatchtrue to match realms with any descendant, false to match leaf realms
CompliancemandatoryThis method must be implemented.
MethodclearDescendantRealmTerms
Description

Clears all descendant realm terms.

CompliancemandatoryThis method must be implemented.
MethodgetRealmQueryRecord
Description

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

Parametersosid.type.TyperealmRecordTypea realm record type
Returnosid.personnel.records.RealmQueryRecordthe realm query record
ErrorsNULL_ARGUMENTrealmRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(realmRecordType) is false
CompliancemandatoryThis method must be implemented.