OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.Appointment
Implementsosid.OsidRelationship
Description

An Appointment relates a Position to a Position.

MethodgetPersonId
Description

Gets the Id of the person.

Returnosid.id.Idthe person Id
CompliancemandatoryThis method must be implemented.
MethodgetPerson
Description

Gets the person in this appointment.

Returnosid.personnel.Personthe Person
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetPositionId
Description

Gets the Id of the position in this appointment.

Returnosid.id.Idthe Position Id
CompliancemandatoryThis method must be implemented.
MethodgetPosition
Description

Gets the position in this appointment.

Returnosid.personnel.Positionthe Position
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetCommitment
Description

Gets the percentage commitment (0-100).

Returncardinalthe percentage commitment
CompliancemandatoryThis method must be implemented.
MethodgetTitle
Description

Gets the title for this appointment.

Returnosid.locale.DisplayTextthe title
CompliancemandatoryThis method must be implemented.
MethodhasSalary
Description

Tests if a salary is available.

Returnboolean true if a salary is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSalary
Description

Gets the salary.

Returnosid.financials.Currencythe slaary
ErrorsILLEGAL_STATE hasSalary() is false
CompliancemandatoryThis method must be implemented.
MethodgetSalaryBasis
Description

Gets the basis in number of months per year.

Returncardinalthe number of months
ErrorsILLEGAL_STATE hasSalary() is false
CompliancemandatoryThis method must be implemented.
MethodgetAppointmentRecord
Description

Gets the record corresponding to the given Appointment record Type. This method is used to retrieve an object implementing the requested record. The appointmentRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(appointmentRecordType) is true .

Parametersosid.type.TypeappointmentRecordTypethe type of appointment record to retrieve
Returnosid.personnel.records.AppointmentRecordthe appointment record
ErrorsNULL_ARGUMENT appointmentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(appointmentRecordType) is false
CompliancemandatoryThis method must be implemented.