| Interface | osid.installation.PackageNotificationSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.installation.InstallationManager | ||
osid.installation.InstallationProxyManager | |||
| Description |
This session defines methods to receive asynchronous
notifications on adds/changes to The views defined in this session correspond to the views
in the | ||
| Method | getDepotId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Depot Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDepot | ||
| Description |
Gets the | ||
| Return | osid.installation.Depot | the Depot associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canRegisterForPackageNotifications | ||
| Description |
Tests if this user can register for
| ||
| Return | boolean | false if notification methods are not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedDepotView | ||
| Description |
Federates the view for methods in this session. A federated view will include notifications for packages in depots which are children of this depot in the depot hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedDepotView | ||
| Description |
Isolates the view for methods in this session. An isolated view restricts notifications to this depot only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | reliablePackageNotifications | ||
| Description |
Reliable notifications are desired. In reliable mode,
notifications are to be acknowledged using
| ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | unreliablePackageNotifications | ||
| Description |
Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | acknowledgePackageNotification | ||
| Description |
Acknowledge a package notification. | ||
| Parameters | osid.id.Id | notificationId | the Id of the notification |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewPackages | ||
| Description |
Register for notifications of new packages.
| ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedPackages | ||
| Description |
Registers for notification of updated packages.
| ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedPackage | ||
| Description |
Registers for notification of an updated package.
| ||
| Parameters | osid.id.Id | packageId | the Id of the Package to monitor |
| Errors | NULL_ARGUMENT | packageId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedPackages | ||
| Description |
Registers for notification of deleted packages.
| ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedPackage | ||
| Description |
Registers for notification of a deleted package.
| ||
| Parameters | osid.id.Id | packageId | the Id of the Package to monitor |
| Errors | NULL_ARGUMENT | packageId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |