Interface ProficiencyForm

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

public interface ProficiencyForm extends OsidRelationshipForm

This is the form for creating and updating Proficiencies . Like all OsidForms , various data elements may be set here for use in the create and update methods in the ProficiencyAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

  • Method Details

    • getCompletionMetadata

      Metadata getCompletionMetadata()
      Gets the metadata for completion percentage.
      Returns:
      metadata for the completion percentage
      Compliance:
      mandatory - This method must be implemented.
    • setCompletion

      void setCompletion(BigDecimal completion)
      Sets the completion percentage.
      Parameters:
      completion - the completion percentage
      Throws:
      InvalidArgumentException - completion is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearCompletion

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

      Metadata getLevelMetadata()
      Gets the metadata for a level.
      Returns:
      metadata for the grade level
      Compliance:
      mandatory - This method must be implemented.
    • setLevel

      void setLevel(Id gradeId)
      Sets the level expressed as a Grade .
      Parameters:
      gradeId - the grade Id
      Throws:
      InvalidArgumentException - gradeId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - gradeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearLevel

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

      ProficiencyFormRecord getProficiencyFormRecord(Type proficiencyRecordType) throws OperationFailedException
      Gets the ProficiencyFormRecord corresponding to the given proficiency record Type .
      Parameters:
      proficiencyRecordType - a proficiency record type
      Returns:
      the proficiency form record
      Throws:
      NullArgumentException - proficiencyRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(proficiencyRecordType) is false
      Compliance:
      mandatory - This method must be implemented.