Interface RoomForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
RoomBatchForm

public interface RoomForm extends OsidObjectForm, OsidTemporalForm, OsidSubjugateableForm

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

  • Method Details

    • getEnclosingRoomMetadata

      Metadata getEnclosingRoomMetadata()
      Gets the metadata for an enclosing room.
      Returns:
      metadata for the enclosing room
      Compliance:
      mandatory - This method must be implemented.
    • setEnclosingRoom

      void setEnclosingRoom(Id roomId)
      Sets the enclosing room.
      Parameters:
      roomId - the new enclosing room
      Throws:
      InvalidArgumentException - roomId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - roomId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearEnclosingRoom

      void clearEnclosingRoom()
      Clears the enclosing room.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getDesignatedNameMetadata

      Metadata getDesignatedNameMetadata()
      Gets the metadata for a designated name.
      Returns:
      metadata for the designated name
      Compliance:
      mandatory - This method must be implemented.
    • setDesignatedName

      void setDesignatedName(String name)
      Sets the designated name.
      Parameters:
      name - the new name
      Throws:
      InvalidArgumentException - name is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - name is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDesignatedName

      void clearDesignatedName()
      Clears the designated name.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCodeMetadata

      Metadata getCodeMetadata()
      Gets the metadata for a code.
      Returns:
      metadata for the code
      Compliance:
      mandatory - This method must be implemented.
    • setCode

      void setCode(String code)
      Sets the room code.
      Parameters:
      code - the new code
      Throws:
      InvalidArgumentException - code is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - code is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCode

      void clearCode()
      Clears the room code.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAreaMetadata

      Metadata getAreaMetadata()
      Gets the metadata for the area.
      Returns:
      metadata for the area
      Compliance:
      mandatory - This method must be implemented.
    • setArea

      void setArea(BigDecimal area)
      Sets the area.
      Parameters:
      area - the new area
      Throws:
      InvalidArgumentException - area is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - area is null
      Compliance:
      mandatory - This method must be implemented.
    • clearArea

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

      Metadata getOccupancyLimitMetadata()
      Gets the metadata for the room occupancy limit.
      Returns:
      metadata for the area
      Compliance:
      mandatory - This method must be implemented.
    • setOccupancyLimit

      void setOccupancyLimit(long linit)
      Sets the occupancy limit of the room.
      Parameters:
      linit - the new linit
      Throws:
      InvalidArgumentException - limit is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearOccupancyLimit

      void clearOccupancyLimit()
      Clears the occupancy limit.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getResourcesMetadata

      Metadata getResourcesMetadata()
      Gets the metadata for the room resources.
      Returns:
      metadata for the resources
      Compliance:
      mandatory - This method must be implemented.
    • setResources

      void setResources(IdList resourceIds)
      Sets the resources.
      Parameters:
      resourceIds - the new resources
      Throws:
      InvalidArgumentException - resourceIds is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - resourceIds is null
      Compliance:
      mandatory - This method must be implemented.
    • clearResources

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

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