public interface WorkForm extends OsidObjectForm, OsidSubjugateableForm
This is the form for creating and updating Works. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the WorkAdminSession.
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 |
clearCompetencies()
Removes the competencies.
|
Metadata |
getCompetenciesMetadata()
Gets the metadata for the competencies.
|
WorkFormRecord |
getWorkFormRecord(Type workRecordType)
Gets the
WorkFormRecord corresponding to the given work
record Type. |
void |
setCompetencies(IdList competencyIds)
Sets specific competencies required for this work.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getCompetenciesMetadata()
mandatory - This method must be implemented. void setCompetencies(IdList competencyIds)
competencyIds - the new competenciesInvalidArgumentException - competencyIds
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - competencyId is
null mandatory - This method must be implemented. void clearCompetencies()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. WorkFormRecord getWorkFormRecord(Type workRecordType) throws OperationFailedException
WorkFormRecord corresponding to the given work
record Type. workRecordType - a work record typeNullArgumentException - workRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(workRecordType) is false mandatory - This method must be implemented.