OSID Logo
OSID Specifications
installation package
Version 3.1.0
Interfaceosid.installation.InstallationPackageNotificationSession
Implementsosid.OsidSession
Used Byosid.installation.InstallationManager
osid.installation.InstallationProxyManager
Description

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

The views defined in this session correspond to the views in the InstallationPackageLookupSession.

MethodgetDepotId
Description

Gets the Depot Id associated with this session.

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

Gets the Depot associated with this session.

Returnosid.installation.Depot the Depot associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForInstallationPackageNotifications
Description

Tests if this user can register for InstallationPackage 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.
MethoduseFederatedDepotView
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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedDepotView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this depot only.

Compliancemandatory This method is must be implemented.
MethodreliableInstallationPackageNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableInstallationPackageNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeInstallationPackageNotification
Description

Acknowledge a package 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.
MethodregisterForNewInstallationPackages
Description

Register for notifications of new packages. InstallationPackageReceiver.newInstallationPackages() is invoked when a new package is created.

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

Registers for notification of updated packages. InstallationPackageReceiver.changedInstallationPackages() is invoked when a package is changed.

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

Registers for notification of an updated package. InstallationPackageReceiver.changedInstallationPackages() is invoked when the specified package is changed.

Parametersosid.id.IdinstallationPackageId the Id of the InstallationPackage to monitor
ErrorsNULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedInstallationPackages
Description

Registers for notification of deleted packages. InstallationPackageReceiver.deletedInstallationPackages() is invoked when a package is removed from this depot.

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

Registers for notification of a deleted package. InstallationPackageReceiver.deletedInstallationPackages() is invoked when the specified package is removed from this depot.

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