public interface AvailabilityForm extends OsidRelationshipForm
This is the form for creating and updating Availabilities.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
AvailabilityAdminSession.
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 |
clearCompetency()
Removes the competency.
|
void |
clearPercentage()
Removes the percentage availability.
|
AvailabilityFormRecord |
getAvailabilityFormRecord(Type availabilityRecordType)
Gets the
AvailabilityFormRecord corresponding to the
given availability record Type. |
Metadata |
getCompetencyMetadata()
Gets the metadata for the competency.
|
Metadata |
getPercentageMetadata()
Gets the metadata for the percentage availability.
|
void |
setCompetency(Id competencyId)
Sets the competency.
|
void |
setPercentage(long availability)
Sets the percent availability.
|
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 getCompetencyMetadata()
mandatory
- This method must be implemented. void setCompetency(Id competencyId)
competencyId
- the new competencyInvalidArgumentException
- competencyId
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- competencyId
is
null
mandatory
- This method must be implemented. void clearCompetency()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPercentageMetadata()
mandatory
- This method must be implemented. void setPercentage(long availability)
availability
- the new percentage vaailabilityInvalidArgumentException
- availability
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearPercentage()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AvailabilityFormRecord getAvailabilityFormRecord(Type availabilityRecordType) throws OperationFailedException
AvailabilityFormRecord
corresponding to the
given availability record Type.
availabilityRecordType
- an availability record typeNullArgumentException
- availabilityRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(availabilityRecordType)
is false
mandatory
- This method must be implemented.