public interface RoomForm extends OsidObjectForm, OsidTemporalForm, OsidSubjugateableForm
This is the form for creating and updating Room
objects.
Like all OsidForm
objects, 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.
Modifier and Type | Method and Description |
---|---|
void |
clearArea()
Clears the area.
|
void |
clearCode()
Clears the room code.
|
void |
clearDesignatedName()
Clears the designated name.
|
void |
clearEnclosingRoom()
Clears the enclosing room.
|
void |
clearOccupancyLimit()
Clears the occupancy limit.
|
void |
clearResources()
Clears the resources.
|
Metadata |
getAreaMetadata()
Gets the metadata for the area.
|
Metadata |
getCodeMetadata()
Gets the metadata for a code.
|
Metadata |
getDesignatedNameMetadata()
Gets the metadata for a designated name.
|
Metadata |
getEnclosingRoomMetadata()
Gets the metadata for an enclosing room.
|
Metadata |
getOccupancyLimitMetadata()
Gets the metadata for the room occupancy limit.
|
Metadata |
getResourcesMetadata()
Gets the metadata for the room resources.
|
RoomFormRecord |
getRoomFormRecord(Type roomRecordType)
Gets the
RoomFormRecord corresponding to the given room
record Type. |
void |
setArea(java.math.BigDecimal area)
Sets the area.
|
void |
setCode(java.lang.String code)
Sets the room code.
|
void |
setDesignatedName(java.lang.String name)
Sets the designated name.
|
void |
setEnclosingRoom(Id roomId)
Sets the enclosing room.
|
void |
setOccupancyLimit(long linit)
Sets the occupancy limit of the room.
|
void |
setResources(IdList resourceIds)
Sets the resources.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getEnclosingRoomMetadata()
mandatory
- This method must be implemented. void setEnclosingRoom(Id roomId)
roomId
- the new enclosing roomInvalidArgumentException
- roomId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- roomId
is
null
mandatory
- This method must be implemented. void clearEnclosingRoom()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDesignatedNameMetadata()
mandatory
- This method must be implemented. void setDesignatedName(java.lang.String name)
name
- the new nameInvalidArgumentException
- name
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- name
is
null
mandatory
- This method must be implemented. void clearDesignatedName()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCodeMetadata()
mandatory
- This method must be implemented. void setCode(java.lang.String code)
code
- the new codeInvalidArgumentException
- code
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- code
is
null
mandatory
- This method must be implemented. void clearCode()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getAreaMetadata()
mandatory
- This method must be implemented. void setArea(java.math.BigDecimal area)
area
- the new areaInvalidArgumentException
- area
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- area
is
null
mandatory
- This method must be implemented. void clearArea()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getOccupancyLimitMetadata()
mandatory
- This method must be implemented. void setOccupancyLimit(long linit)
linit
- the new linitInvalidArgumentException
- limit
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearOccupancyLimit()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getResourcesMetadata()
mandatory
- This method must be implemented. void setResources(IdList resourceIds)
resourceIds
- the new resourcesInvalidArgumentException
- resourceIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceIds
is
null
mandatory
- This method must be implemented. void clearResources()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. RoomFormRecord getRoomFormRecord(Type roomRecordType) throws OperationFailedException
RoomFormRecord
corresponding to the given room
record Type.
roomRecordType
- the room record typeNullArgumentException
- roomRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(roomRecordType)
is false
mandatory
- This method must be implemented.