OSID Logo
OSID Specifications
room package
Version 3.0.0
Interfaceosid.room.RoomForm
Implementsosid.OsidObjectForm
osid.OsidTemporalForm
osid.OsidSubjugateableForm
Implemented Byosid.room.batch.RoomBatchForm
Used Byosid.room.RoomAdminSession
Description

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.

MethodgetEnclosingRoomMetadata
Description

Gets the metadata for an enclosing room.

Returnosid.Metadatametadata for the enclosing room
CompliancemandatoryThis method must be implemented.
MethodsetEnclosingRoom
Description

Sets the enclosing room.

Parametersosid.id.IdroomIdthe new enclosing room
ErrorsINVALID_ARGUMENTroomId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTroomId is null
CompliancemandatoryThis method must be implemented.
MethodclearEnclosingRoom
Description

Clears the enclosing room.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDesignatedNameMetadata
Description

Gets the metadata for a designated name.

Returnosid.Metadatametadata for the designated name
CompliancemandatoryThis method must be implemented.
MethodsetDesignatedName
Description

Sets the designated name.

Parametersstringnamethe new name
ErrorsINVALID_ARGUMENTname is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTname is null
CompliancemandatoryThis method must be implemented.
MethodclearDesignatedName
Description

Clears the designated name.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCodeMetadata
Description

Gets the metadata for a code.

Returnosid.Metadatametadata for the code
CompliancemandatoryThis method must be implemented.
MethodsetCode
Description

Sets the room code.

Parametersstringcodethe new code
ErrorsINVALID_ARGUMENTcode is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcode is null
CompliancemandatoryThis method must be implemented.
MethodclearCode
Description

Clears the room code.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAreaMetadata
Description

Gets the metadata for the area.

Returnosid.Metadatametadata for the area
CompliancemandatoryThis method must be implemented.
MethodsetArea
Description

Sets the area.

Parametersdecimalareathe new area
ErrorsINVALID_ARGUMENTarea is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTarea is null
CompliancemandatoryThis method must be implemented.
MethodclearArea
Description

Clears the area.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetOccupancyLimitMetadata
Description

Gets the metadata for the room occupancy limit.

Returnosid.Metadatametadata for the area
CompliancemandatoryThis method must be implemented.
MethodsetOccupancyLimit
Description

Sets the occupancy limit of the room.

Parameterscardinallinitthe new linit
ErrorsINVALID_ARGUMENTlimit is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearOccupancyLimit
Description

Clears the occupancy limit.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetResourcesMetadata
Description

Gets the metadata for the room resources.

Returnosid.Metadatametadata for the resources
CompliancemandatoryThis method must be implemented.
MethodsetResources
Description

Sets the resources.

Parametersosid.id.IdListresourceIdsthe new resources
ErrorsINVALID_ARGUMENTresourceIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTresourceIds is null
CompliancemandatoryThis method must be implemented.
MethodclearResources
Description

Clears the resources.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetRoomFormRecord
Description

Gets the RoomFormRecord corresponding to the given room record Type .

Parametersosid.type.TyperoomRecordTypethe room record type
Returnosid.room.records.RoomFormRecordthe room form record
ErrorsNULL_ARGUMENTroomRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(roomRecordType) is false
CompliancemandatoryThis method must be implemented.