Interface RoomForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
RoomBatchForm
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 Summary
Modifier and TypeMethodDescriptionvoidClears the area.voidClears the room code.voidClears the designated name.voidClears the enclosing room.voidClears the occupancy limit.voidClears the resources.Gets the metadata for the area.Gets the metadata for a code.Gets the metadata for a designated name.Gets the metadata for an enclosing room.Gets the metadata for the room occupancy limit.Gets the metadata for the room resources.getRoomFormRecord(Type roomRecordType) Gets theRoomFormRecordcorresponding to the given room recordType.voidsetArea(BigDecimal area) Sets the area.voidSets the room code.voidsetDesignatedName(String name) Sets the designated name.voidsetEnclosingRoom(Id roomId) Sets the enclosing room.voidsetOccupancyLimit(long linit) Sets the occupancy limit of the room.voidsetResources(IdList resourceIds) Sets the resources.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidTemporalForm
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateModifier and TypeMethodDescriptionvoidClears the end date.voidClears the start date.Gets the metadata for an end date.Gets the metadata for a start date.voidsetEndDate(DateTime date) Sets the end date.voidsetStartDate(DateTime date) Sets the start date.
-
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
Sets the enclosing room.- Parameters:
roomId- the new enclosing room- Throws:
InvalidArgumentException-roomIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-roomIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEnclosingRoom
void clearEnclosingRoom()Clears the enclosing room.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- 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
Sets the designated name.- Parameters:
name- the new name- Throws:
InvalidArgumentException-nameis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-nameisnull- Compliance:
mandatory- This method must be implemented.
-
clearDesignatedName
void clearDesignatedName()Clears the designated name.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- 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
Sets the room code.- Parameters:
code- the new code- Throws:
InvalidArgumentException-codeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-codeisnull- Compliance:
mandatory- This method must be implemented.
-
clearCode
void clearCode()Clears the room code.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- 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
Sets the area.- Parameters:
area- the new area- Throws:
InvalidArgumentException-areais invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-areaisnull- Compliance:
mandatory- This method must be implemented.
-
clearArea
void clearArea()Clears the area.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- 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-limitis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearOccupancyLimit
void clearOccupancyLimit()Clears the occupancy limit.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- 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
Sets the resources.- Parameters:
resourceIds- the new resources- Throws:
InvalidArgumentException-resourceIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearResources
void clearResources()Clears the resources.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRoomFormRecord
Gets theRoomFormRecordcorresponding to the given room recordType.- Parameters:
roomRecordType- the room record type- Returns:
- the room form record
- Throws:
NullArgumentException-roomRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(roomRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-