Interface DocetForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
DocetBatchForm

public interface DocetForm extends OsidRelationshipForm

This is the form for creating and updating Docets. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the DocetAdminSession. 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 the learning obectives.
      Returns:
      metadata for the objectives
      Compliance:
      mandatory - This method must be implemented.
    • setLearningObjectives

      void setLearningObjectives(IdList objectiveIds)
      Sets the learning objectives.
      Parameters:
      objectiveIds - the new objectives
      Throws:
      InvalidArgumentException - objectiveIds is invalid
      NoAccessException - objectiveIds cannot be modified
      NullArgumentException - objectiveIds is null
      Compliance:
      mandatory - This method must be implemented.
    • clearLearningObjectives

      void clearLearningObjectives()
      Clears the in class flag.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getInClassMetadata

      Metadata getInClassMetadata()
      Gets the metadata for the in class flag.
      Returns:
      metadata for the in class flag
      Compliance:
      mandatory - This method must be implemented.
    • setInClass

      void setInClass(boolean inClass)
      Sets the in class flag.
      Parameters:
      inClass - the new in class flag
      Throws:
      InvalidArgumentException - inClass is invalid
      NoAccessException - inClass cannot be modified
      Compliance:
      mandatory - This method must be implemented.
    • clearInClass

      void clearInClass()
      Clears the in class flag.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getDurationMetadata

      Metadata getDurationMetadata()
      Gets the metadata for the duration.
      Returns:
      metadata for the duration
      Compliance:
      mandatory - This method must be implemented.
    • setDuration

      void setDuration(Duration duration)
      Sets the duration.
      Parameters:
      duration - the new duration
      Throws:
      InvalidArgumentException - duration is invalid
      NoAccessException - duration cannot be modified
      NullArgumentException - duration is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDuration

      void clearDuration()
      Clears the duration.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAssetsMetadata

      Metadata getAssetsMetadata()
      Gets the metadata for the assets.
      Returns:
      metadata for the assets
      Compliance:
      mandatory - This method must be implemented.
    • setAssets

      void setAssets(IdList assetIds)
      Sets the assets.
      Parameters:
      assetIds - the new assets
      Throws:
      InvalidArgumentException - assetIds is invalid
      NoAccessException - assetIds cannot be modified
      NullArgumentException - assetIds is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAssets

      void clearAssets()
      Clears the assets.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAssessmentsMetadata

      Metadata getAssessmentsMetadata()
      Gets the metadata for the assessments.
      Returns:
      metadata for the assessments
      Compliance:
      mandatory - This method must be implemented.
    • setAssessments

      void setAssessments(IdList assessmentIds)
      Sets the assessments.
      Parameters:
      assessmentIds - the new assessments
      Throws:
      InvalidArgumentException - assessmentIds is invalid
      NoAccessException - assessmentIds cannot be modified
      NullArgumentException - assessmentIds is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAssessments

      void clearAssessments()
      Clears the assessments.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getDocetFormRecord

      DocetFormRecord getDocetFormRecord(Type docetRecordType) throws OperationFailedException
      Gets the DocetFormRecord corresponding to the given docet record Type.
      Parameters:
      docetRecordType - the docet record type
      Returns:
      the docet form record
      Throws:
      NullArgumentException - docetRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(docetRecordType) is false
      Compliance:
      mandatory - This method must be implemented.