OSID Logo
OSID Specifications
room squatting package
Version 3.1.0
Interfaceosid.room.squatting.LeaseNotificationSession
Implementsosid.OsidSession
Used Byosid.room.squatting.RoomSquattingManager
osid.room.squatting.RoomSquattingProxyManager
Description

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

Tests if this user can register for Lease 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 leases 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.
MethodreliableLeaseNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableLeaseNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeLeaseNotification
Description

Acknowledge a lease 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.
MethodregisterForNewLeases
Description

Register for notifications of new leases. LeaseReceiver.newLeases() is invoked when a new Lease is created.

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

Register for notifications of new leases for the given room Id. LeaseReceiver.newLeases() is invoked when a new Lease is created.

Parametersosid.id.IdroomId the Id of the room to monitor
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewLeasesForTenant
Description

Register for notifications of new leases for the given resource Id. LeaseReceiver.newLeases() is invoked when a new Lease is created.

Parametersosid.id.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLeases
Description

Registers for notification of updated leases. LeaseReceiver.changedLeases() is invoked when a lease is changed.

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

Register for notifications of changed leases for the given room Id. LeaseReceiver.changedLeases() is invoked when a Lease for the room is changed.

Parametersosid.id.IdroomId the Id of the room to monitor
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLeasesForTenant
Description

Register for notifications of changed leases for the given resource Id. LeaseReceiver.changedLeases() is invoked when a Lease for the tenant is changed.

Parametersosid.id.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedLease
Description

Registers for notification of an updated lease. LeaseReceiver.changedLeases() is invoked when the specified lease is changed.

Parametersosid.id.IdleaseId the Id of the Lease to monitor
ErrorsNULL_ARGUMENT leaseId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedLeases
Description

Registers for notification of deleted leases. LeaseReceiver.deletedLeases() is invoked when a lease is deleted.

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

Register for notifications of changed leases for the given room Id. LeaseReceiver.deletedLeases() is invoked when a Lease for the room is deleted.

Parametersosid.id.IdroomId the Id of the room to monitor
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedLeasesForTenant
Description

Register for notifications of changed leases for the given resource Id. LeaseReceiver.deletedLeases() is invoked when a Lease for the tenant is deleted.

Parametersosid.id.IdresourceId the Id of the resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedLease
Description

Registers for notification of a deleted lease. LeaseReceiver.deletedLeases() is invoked when the specified lease is deleted.

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