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

This session defines methods to manage installations.

MethodgetSiteId
Description

Gets the Site Id associated with this session.

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

Gets the Site associated with this session.

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

Tests if this user can get installation updates. 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 wish not to offer update operations to unauthorized users.

Returnboolean false if package updates are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodisInstallationCurrent
Description

Tests if the given installation is current.

Returnboolean true if the installation is up to date, false otherwise
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationsToUpdate
Description

Gets a list of installations requiring update. This just returns installations that are out of date. getInstallationPackagesToUpdate() or getInstallationPackagesToUpdateForInstallation() should be used to acquire the packages to install.

Returnosid.installation.InstallationList the resulting InstallationList
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCurrentInstallationPackages
Description

Gets the packages to install to bring the site up to date.

Returnosid.installation.InstallationPackageList the next packages to install
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetCurrentInstallationPackagesForInstallation
Description

Gets the packages to install to bring the specified installation up to date.

Parametersosid.id.IdinstallationId an Id of an Installation
Returnosid.installation.InstallationPackageList the next packages to install
ErrorsNOT_FOUND installationId is not found
NULL_ARGUMENT installationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodisInstallationObsolete
Description

Tests if the given installation is obsolete.

Returnboolean true if the installation is obsolete, false otherwise
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetObsoleteInstallations
Description

Gets the installations whose packages are obsolete.

Returnosid.installation.InstallationList the obsolete installations
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateInstallation
Description

Updates a single installation.

Parametersosid.id.IdinstallationId an Id of an Installation
ErrorsNOT_FOUND installationId is not found
NULL_ARGUMENT installationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodsynchronizeInstallations
Description

Performs an auto-update by adding all new updated installations and removing of all obsolete installations on the site.

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