OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.RoomNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Room objects. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

MethodgetCampusId
Description

Gets the Campus Id associated with this session.

Returnosid.id.Idthe Campus Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCampus
Description

Gets the Campus associated with this session.

Returnosid.room.Campusthe campus
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForRoomNotifications
Description

Tests if this user can register for Room notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedCampusView
Description

Federates the view for methods in this session. A federated view will include entries in campuses which are children of this campus in the campus hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCampusView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this campus only.

CompliancemandatoryThis method is must be implemented.
MethodregisterForNewRooms
Description

Register for notifications of new rooms. RoomReceiver.newRooms() is invoked when a new Room is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoomsByGenusType
Description

Register for notifications of new rooms of the given genus type. RoomReceiver.newRooms() is invoked when a new Room is created.

Parametersosid.type.TyperoomGenusTypea room genus type
ErrorsNULL_ARGUMENT roomGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoomsForBuilding
Description

Register for notifications of new rooms for the given reference Id. RoomReceiver.newRooms() is invoked when a new Room is created.

Parametersosid.id.IdbuildingIdthe Id of the building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRooms
Description

Registers for notification of updated rooms. RoomReceiver.changedRooms() is invoked when a room is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoomsByGenusType
Description

Registers for notification of updated rooms of the given genus type. RoomReceiver.changedRooms() is invoked when a room is changed.

Parametersosid.type.TyperoomGenusTypea room genus type
ErrorsNULL_ARGUMENT roomGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoomsForBuilding
Description

Register for notifications of chagned rooms for the given building Id. RoomReceiver.changedRooms() is invoked when a Room for the building is changed.

Parametersosid.id.IdbuildingIdthe Id of the building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoom
Description

Registers for notification of an updated room. RoomReceiver.changedRooms() is invoked when the specified room is changed.

Parametersosid.id.IdroomIdthe Id of the Room to monitor
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRooms
Description

Registers for notification of deleted rooms. RoomReceiver.deletedRoom() is invoked when a room is deleted.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoomsByGenusType
Description

Registers for notification of deleted rooms of the given genus type. RoomReceiver.deletedRooms() is invoked when a room is deleted.

Parametersosid.type.TyperoomGenusTypea room genus type
ErrorsNULL_ARGUMENT roomGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoomsForBuilding
Description

Register for notifications of changed rooms for the given building Id. RoomReceiver.deletedRooms() is invoked when a Room for the building is deleted.

Parametersosid.id.IdbuildingIdthe Id of the building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoom
Description

Registers for notification of a deleted room. RoomReceiver.deletedRooms() is invoked when the specified room is deleted.

Parametersosid.id.IdroomIdthe Id of the Room to monitor
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.