Interface EffortForm

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

public interface EffortForm extends OsidRelationshipForm

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

  • Method Details

    • getTimeSpentMetadata

      Metadata getTimeSpentMetadata()
      Gets the metadata for the time spent.
      Returns:
      metadata for the time spent
      Compliance:
      mandatory - This method must be implemented.
    • setTimeSpent

      void setTimeSpent(Duration timeSpent)
      Sets the time spent.
      Parameters:
      timeSpent - the new time spent
      Throws:
      InvalidArgumentException - timeSpent is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - timeSpent is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTimeSpent

      void clearTimeSpent()
      Removes the time spent.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getEffortFormRecord

      EffortFormRecord getEffortFormRecord(Type effortRecordType) throws OperationFailedException
      Gets the EffortFormRecord corresponding to the given effort record Type .
      Parameters:
      effortRecordType - an effort record type
      Returns:
      the effort form record
      Throws:
      NullArgumentException - effortRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(effortRecordType) is false
      Compliance:
      mandatory - This method must be implemented.