Interface Appointment
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
An Appointment relates a Position to a Position
.
-
Method Summary
Modifier and TypeMethodDescriptiongetAppointmentRecord(Type appointmentRecordType) Gets the record corresponding to the givenAppointmentrecordType.longGets the percentage commitment (0-100).Gets the person in this appointment.Gets theIdof the person.Gets the position in this appointment.Gets theIdof the position in this appointment.Gets the salary.longGets the basis in number of months per year.getTitle()Gets the title for this appointment.booleanTests if a salary is available.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getPersonId
Id getPersonId()Gets theIdof the person.- Returns:
- the person
Id - Compliance:
mandatory- This method must be implemented.
-
getPerson
Gets the person in this appointment.- Returns:
- the
Person - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPositionId
Id getPositionId()Gets theIdof the position in this appointment.- Returns:
- the
PositionId - Compliance:
mandatory- This method must be implemented.
-
getPosition
Gets the position in this appointment.- Returns:
- the
Position - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCommitment
long getCommitment()Gets the percentage commitment (0-100).- Returns:
- the percentage commitment
- Compliance:
mandatory- This method must be implemented.
-
getTitle
DisplayText getTitle()Gets the title for this appointment.- Returns:
- the title
- Compliance:
mandatory- This method must be implemented.
-
hasSalary
boolean hasSalary()Tests if a salary is available.- Returns:
trueif a salary is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSalary
Currency getSalary()Gets the salary.- Returns:
- the slaary
- Throws:
IllegalStateException-hasSalary()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSalaryBasis
long getSalaryBasis()Gets the basis in number of months per year.- Returns:
- the number of months
- Throws:
IllegalStateException-hasSalary()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAppointmentRecord
Gets the record corresponding to the givenAppointmentrecordType. This method is used to retrieve an object implementing the requested record. TheappointmentRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(appointmentRecordType)istrue.- Parameters:
appointmentRecordType- the type of appointment record to retrieve- Returns:
- the appointment record
- Throws:
NullArgumentException-appointmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(appointmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-