public interface ItemForm extends OsidObjectForm
This is the form for creating and updating Items. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the ItemAdminSession.
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 |
clearLearningObjectives()
Clears the learning objectives.
|
ItemFormRecord |
getItemFormRecord(Type itemRecordType)
Gets the
ItemnFormRecord corresponding to the given
item record Type. |
Metadata |
getLearningObjectivesMetadata()
Gets the metadata for learning objectives.
|
void |
setLearningObjectives(Id[] objectiveIds)
Sets the learning objectives.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getLearningObjectivesMetadata()
mandatory - This method must be implemented. void setLearningObjectives(Id[] objectiveIds)
objectiveIds - the learning objective Ids InvalidArgumentException - objectiveIds
is invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearLearningObjectives()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. ItemFormRecord getItemFormRecord(Type itemRecordType) throws OperationFailedException
ItemnFormRecord corresponding to the given
item record Type. itemRecordType - the item record typeNullArgumentException - itemRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(itemRecordType) is false mandatory - This method must be implemented.