Interface AvailabilityForm

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

public interface AvailabilityForm extends OsidRelationshipForm

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

  • Method Details

    • getCompetencyMetadata

      Metadata getCompetencyMetadata()
      Gets the metadata for the competency.
      Returns:
      metadata for the competency
      Compliance:
      mandatory - This method must be implemented.
    • setCompetency

      void setCompetency(Id competencyId)
      Sets the competency.
      Parameters:
      competencyId - the new competency
      Throws:
      InvalidArgumentException - competencyId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - competencyId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCompetency

      void clearCompetency()
      Removes the competency.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getPercentageMetadata

      Metadata getPercentageMetadata()
      Gets the metadata for the percentage availability.
      Returns:
      metadata for the percentage availability
      Compliance:
      mandatory - This method must be implemented.
    • setPercentage

      void setPercentage(long availability)
      Sets the percent availability.
      Parameters:
      availability - the new percentage vaailability
      Throws:
      InvalidArgumentException - availability is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearPercentage

      void clearPercentage()
      Removes the percentage availability.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAvailabilityFormRecord

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