public interface ProficiencyForm extends OsidRelationshipForm
This is the form for creating and updating Proficiencies.
Like all OsidForm objects, various data elements
may be set here for use in the create and update methods in the
ProficiencyAdminSession. 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 |
clearCompletion()
Clears the completion.
|
void |
clearLevel()
Clears the level.
|
Metadata |
getCompletionMetadata()
Gets the metadata for completion percentage.
|
Metadata |
getLevelMetadata()
Gets the metadata for a level.
|
ProficiencyFormRecord |
getProficiencyFormRecord(Type proficiencyRecordType)
Gets the
ProficiencyFormRecord corresponding to the
given proficiency record Type. |
void |
setCompletion(java.math.BigDecimal completion)
Sets the completion percentage.
|
void |
setLevel(Grade grade)
Sets the level expressed as a
Grade. |
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getCompletionMetadata()
mandatory - This method must be implemented. void setCompletion(java.math.BigDecimal completion)
completion - the completion percentageInvalidArgumentException - completion is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearCompletion()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getLevelMetadata()
mandatory - This method must be implemented. void setLevel(Grade grade)
Grade. grade - the levelInvalidArgumentException - grade is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - grade is
null mandatory - This method must be implemented. void clearLevel()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. ProficiencyFormRecord getProficiencyFormRecord(Type proficiencyRecordType) throws OperationFailedException
ProficiencyFormRecord corresponding to the
given proficiency record Type. proficiencyRecordType - a proficiency record typeNullArgumentException - proficiencyRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(proficiencyRecordType) is false
mandatory - This method must be implemented.