public interface Appointment extends OsidRelationship
An Appointment relates a Position to a
Position.
| Modifier and Type | Method and Description |
|---|---|
AppointmentRecord |
getAppointmentRecord(Type appointmentRecordType)
Gets the record corresponding to the given
Appointment
record Type. |
long |
getCommitment()
Gets the percentage commitment (0-100).
|
Person |
getPerson()
Gets the person in this appointment.
|
Id |
getPersonId()
Gets the
Id of the person. |
Position |
getPosition()
Gets the position in this appointment.
|
Id |
getPositionId()
Gets the
Id of the position in this appointment. |
Currency |
getSalary()
Gets the salary.
|
long |
getSalaryBasis()
Gets the basis in number of months per year.
|
DisplayText |
getTitle()
Gets the title for this appointment.
|
boolean |
hasSalary()
Tests if a salary is available.
|
getEndReason, getEndReasonId, hasEndReasongetDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getPersonId()
Id of the person. Id mandatory - This method must be implemented. Person getPerson() throws OperationFailedException
Person OperationFailedException - unable to complete requestmandatory - This method must be implemented. Id getPositionId()
Id of the position in this appointment. Position Id mandatory - This method must be implemented. Position getPosition() throws OperationFailedException
Position OperationFailedException - unable to complete requestmandatory - This method must be implemented. long getCommitment()
mandatory - This method must be implemented. DisplayText getTitle()
mandatory - This method must be implemented. boolean hasSalary()
true if a salary is available, false
otherwisemandatory - This method must be implemented. Currency getSalary()
IllegalStateException - hasSalary() is
false mandatory - This method must be implemented. long getSalaryBasis()
IllegalStateException - hasSalary() is
false mandatory - This method must be implemented. AppointmentRecord getAppointmentRecord(Type appointmentRecordType) throws OperationFailedException
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 .appointmentRecordType - the type of appointment record to
retrieveNullArgumentException - appointmentRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(appointmentRecordType) is false
mandatory - This method must be implemented.