| Interface | osid.room.FloorAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create a   For updates,   The delete operations delete   This session includes an   | ||
| Method | getCampusId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Campus Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCampus | ||
| Description | 
                     Gets the   | ||
| Return | osid.room.Campus | the campus | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateFloors | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Floor  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateFloorWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | floorRecordTypes | array of floor record types | 
| Return | boolean |  true  if  Floor  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  floorRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFloorFormForCreate | ||
| Description | 
                     Gets the floor form for creating new floors. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | buildingId | a building  Id   | 
osid.type.Type[] | floorRecordTypes | array of floor record types | |
| Return | osid.room.FloorForm | the floor form | |
| Errors | NOT_FOUND |  buildingId  is not found  |                 |
| NULL_ARGUMENT |  buildingId  or  floorRecordTypes  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get from for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createFloor | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.room.FloorForm | floorForm | the form for this  Floor   | 
| Return | osid.room.Floor | the new  Floor   | |
| Errors | ILLEGAL_STATE |  floorForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  floorForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  floorForm  did not originate from  
getFloorFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateFloors | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Floor  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFloorFormForUpdate | ||
| Description | 
                     Gets the floor form for updating an existing floor. A new floor form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | floorId | the  Id  of the  Floor   | 
| Return | osid.room.FloorForm | the floor form | |
| Errors | NOT_FOUND |  floorId  is not found  |                 |
| NULL_ARGUMENT |  floorId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateFloor | ||
| Description | 
                     Updates an existing floor.  | ||
| Parameters | osid.room.FloorForm | floorForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  floorForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  floorForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  floorForm  did not originate from  
getFloorFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteFloors | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Floor  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteFloor | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | floorId | the  Id  of the  Floor  to remove  | 
| Errors | NOT_FOUND |  floorId  not found  |                 |
| NULL_ARGUMENT |  floorId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageFloorAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Floor  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasFloor | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | floorId | the  Id  of a  Floor   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  floorId  not found  |                 ||
| NULL_ARGUMENT |  floorId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |