OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.RealmQuery
Implementsosid.OsidCatalogQuery
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT personId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPersonQuery() is false
ComplianceoptionalThis method must be implemented if supportsPersonQuery() is true.
MethodmatchAnyPerson
Description

Matches realms with any person.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT organizationId is null
CompliancemandatoryThis method must be implemented.
MethodclearOrganizationIdTerms
Description

Clears all organization Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOrganizationQuery
Description

Tests if a organization query is available.

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

Gets the query for an organization.

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

Matches realms with any organization.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT positionId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPositionQuery() is false
ComplianceoptionalThis method must be implemented if supportsPositionQuery() is true.
MethodmatchAnyPosition
Description

Matches realms with any position.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT appointmentId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsAppointmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAppointmentQuery() is true.
MethodmatchAnyAppointment
Description

Matches realms with any appointment.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT realmId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsAncestorRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorRealmQuery() is true.
MethodmatchAnyAncestorRealm
Description

Matches realms with any ancestor.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT realmId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsDescendantRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantRealmQuery() is true.
MethodmatchAnyDescendantRealm
Description

Matches realms with any descendant.

Parametersbooleanmatch true 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_ARGUMENT realmRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(realmRecordType) is false
CompliancemandatoryThis method must be implemented.