public interface CommissionForm extends OsidRelationshipForm
This is the form for creating and updating Commissions.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
CommissionAdminSession. 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.
|
CommissionFormRecord |
getCommissionFormRecord(Type commissionRecordType)
Gets the
CommissionFormRecord corresponding to the
given commission 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, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata 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. CommissionFormRecord getCommissionFormRecord(Type commissionRecordType) throws OperationFailedException
CommissionFormRecord corresponding to the
given commission record Type. commissionRecordType - a commission record typeNullArgumentException - commissionRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(commissionRecordType) is false
mandatory - This method must be implemented.