OSID Logo
OSID Specifications
room construction package
Version 3.1.0
Interfaceosid.room.construction.ProjectNotificationSession
Implementsosid.OsidSession
Used Byosid.room.construction.RoomConstructionManager
osid.room.construction.RoomConstructionProxyManager
Description

This session defines methods to receive notifications on adds/changes to Projects. 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.

Notifications are triggered with changes to the Project object itself. Adding and removing rooms result in notifications available from the notification session for rooms.

MethodgetCampusId
Description

Gets the Campus Id associated with this session.

Returnosid.id.Id the Campus Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCampus
Description

Gets the Campus associated with this session.

Returnosid.room.Campus the campus
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForProjectNotifications
Description

Tests if this user can register for Project 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
Compliancemandatory This method must be implemented.
MethoduseFederatedCampusView
Description

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

Compliancemandatory This method is must be implemented.
MethoduseIsolatedCampusView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableProjectNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeProjectNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableProjectNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeProjectNotification
Description

Acknowledge a project notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewProjects
Description

Register for notifications of new projects. ProjectReceiver.newProjects() is invoked when a new Project is created.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewProjectsByBuilding
Description

Registers for notification of new projects for a building. ProjectReceiver.newProjects() is invoked when a project for the building is created.

Parametersosid.id.IdbuildingId the Id of the Building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProjects
Description

Registers for notification of updated projects. ProjectReceiver.changedProjects() is invoked when a project is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProjectsByBuilding
Description

Registers for notification of a updated projectsfor a building. ProjectReceiver.changedProjects() is invoked when a project for the building is changed.

Parametersosid.id.IdbuildingId the Id of the Building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProject
Description

Registers for notification of an updated project. ProjectReceiver.changedProjects() is invoked when the specified project is changed.

Parametersosid.id.IdprojectId the Id of the Project to monitor
ErrorsNULL_ARGUMENT projectId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProjects
Description

Registers for notification of deleted projects. ProjectReceiver.deletedProjects() is invoked when a project is deleted.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProjectsByBuilding
Description

Registers for notification of a deleted project for a building. ProjectReceiver.deletedProjects() is invoked when a project for the building is deleted.

Parametersosid.id.IdbuildingId the Id of the Building to monitor
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProject
Description

Registers for notification of a deleted project. ProjectReceiver.deletedProjects() is invoked when the specified project is deleted.

Parametersosid.id.IdprojectId the Id of the Project to monitor
ErrorsNULL_ARGUMENT projectId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.