public interface AppointmentForm extends OsidRelationshipForm
This is the form for creating and updating Appointment
objects. Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
AppointmentAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearCommitment()
Clears the required commitment.
|
void |
clearLowSalaryRange()
Clears the salary.
|
void |
clearTitle()
Clears the title.
|
AppointmentFormRecord |
getAppointmentFormRecord(Type appointmentRecordType)
Gets the
AppointmentFormRecord interface corresponding
to the given appointment record Type. |
Metadata |
getCommitmentMetadata()
Gets the metadata for a required commitment.
|
Metadata |
getSalaryMetadata()
Gets the metadata for a salary.
|
Metadata |
getTitleMetadata()
Gets the metadata for a title.
|
void |
setCommitment(long commitment)
Sets the required commitment percentage (0-100).
|
void |
setSalary(Currency salary)
Sets the salary.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getCommitmentMetadata()
mandatory
- This method must be implemented. void setCommitment(long commitment)
commitment
- the required commitmentInvalidArgumentException
- commitment
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearCommitment()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getTitleMetadata()
mandatory
- This method must be implemented. void setTitle(java.lang.String title)
title
- the titleInvalidArgumentException
- title
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- title
is nullmandatory
- This method must be implemented. void clearTitle()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSalaryMetadata()
mandatory
- This method must be implemented. void setSalary(Currency salary)
salary
- the slaryInvalidArgumentException
- salary
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- salary
is nullmandatory
- This method must be implemented. void clearLowSalaryRange()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AppointmentFormRecord getAppointmentFormRecord(Type appointmentRecordType) throws OperationFailedException
AppointmentFormRecord
interface corresponding
to the given appointment record Type.
appointmentRecordType
- the appointment record typeNullArgumentException
- appointmentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(appointmentRecordType)
is false
mandatory
- This method must be implemented.