Interface ItemForm

All Superinterfaces:
Extensible, Identifiable, OsidAggregateableForm, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
All Known Subinterfaces:
AnswerBatchForm, ItemBatchForm, QuestionBatchForm

public interface ItemForm extends OsidObjectForm, OsidAggregateableForm

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.

  • Method Details

    • getLearningObjectivesMetadata

      Metadata getLearningObjectivesMetadata()
      Gets the metadata for learning objectives.
      Returns:
      metadata for the learning objectives
      Compliance:
      mandatory - This method must be implemented.
    • setLearningObjectives

      void setLearningObjectives(Id[] objectiveIds)
      Sets the learning objectives.
      Parameters:
      objectiveIds - the learning objective Ids
      Throws:
      InvalidArgumentException - objectiveIds is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearLearningObjectives

      void clearLearningObjectives()
      Clears the learning objectives.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getItemFormRecord

      ItemFormRecord getItemFormRecord(Type itemRecordType) throws OperationFailedException
      Gets the ItemnFormRecord corresponding to the given item record Type .
      Parameters:
      itemRecordType - the item record type
      Returns:
      the item record
      Throws:
      NullArgumentException - itemRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(itemRecordType) is false
      Compliance:
      mandatory - This method must be implemented.