OSID Logo
OSID Specifications
room package
Version 3.1.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.Metadata metadata for the enclosing room
Compliancemandatory This method must be implemented.
MethodsetEnclosingRoom
Description

Sets the enclosing room.

Parametersosid.id.IdroomId the new enclosing room
ErrorsINVALID_ARGUMENT roomId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT roomId is null
Compliancemandatory This method must be implemented.
MethodclearEnclosingRoom
Description

Clears the enclosing room.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDesignatedNameMetadata
Description

Gets the metadata for a designated name.

Returnosid.Metadata metadata for the designated name
Compliancemandatory This method must be implemented.
MethodsetDesignatedName
Description

Sets the designated name.

Parametersstringname the new name
ErrorsINVALID_ARGUMENT name is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT name is null
Compliancemandatory This method must be implemented.
MethodclearDesignatedName
Description

Clears the designated name.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCodeMetadata
Description

Gets the metadata for a code.

Returnosid.Metadata metadata for the code
Compliancemandatory This method must be implemented.
MethodsetCode
Description

Sets the room code.

Parametersstringcode the new code
ErrorsINVALID_ARGUMENT code is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT code is null
Compliancemandatory This method must be implemented.
MethodclearCode
Description

Clears the room code.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetAreaMetadata
Description

Gets the metadata for the area.

Returnosid.Metadata metadata for the area
Compliancemandatory This method must be implemented.
MethodsetArea
Description

Sets the area.

Parametersdecimalarea the new area
ErrorsINVALID_ARGUMENT area is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT area is null
Compliancemandatory This method must be implemented.
MethodclearArea
Description

Clears the area.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetOccupancyLimitMetadata
Description

Gets the metadata for the room occupancy limit.

Returnosid.Metadata metadata for the area
Compliancemandatory This method must be implemented.
MethodsetOccupancyLimit
Description

Sets the occupancy limit of the room.

Parameterscardinallinit the new linit
ErrorsINVALID_ARGUMENT limit is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearOccupancyLimit
Description

Clears the occupancy limit.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetResourcesMetadata
Description

Gets the metadata for the room resources.

Returnosid.Metadata metadata for the resources
Compliancemandatory This method must be implemented.
MethodsetResources
Description

Sets the resources.

Parametersosid.id.IdListresourceIds the new resources
ErrorsINVALID_ARGUMENT resourceIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceIds is null
Compliancemandatory This method must be implemented.
MethodclearResources
Description

Clears the resources.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetRoomFormRecord
Description

Gets the RoomFormRecord corresponding to the given room record Type.

Parametersosid.type.TyperoomRecordType the room record type
Returnosid.room.records.RoomFormRecord the room form record
ErrorsNULL_ARGUMENT roomRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(roomRecordType) is false
Compliancemandatory This method must be implemented.