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

This session provides methods to retrieve InstallationPackage to Depot mappings. A InstallationPackage may appear in multiple Depots. Each Depot may have its own authorizations governing who is allowed to look at it.

This lookup session defines two views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupInstallationPackageDepotMappings
Description

Tests if this user can perform lookups of package/depot mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeDepotView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryDepotView
Description

A complete view of the InstallationPackage and Depot returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseNormalizedVersionView
Description

The returns from the lookup methods may omit multiple versions of the same package.

Compliancemandatory This method is must be implemented.
MethoduseDenormalizedVersionView
Description

All versions of the same package are returned.

Compliancemandatory This method is must be implemented.
MethoduseNormalizedDependencyView
Description

A normalized view uses a single InstallationPackage to represent a set of package dependencies.

Compliancemandatory This method is must be implemented.
MethoduseDenormalizedDependencyView
Description

A denormalized view returns all dependencies.

Compliancemandatory This method is must be implemented.
MethodgetInstallationPackageIdsByDepot
Description

Gets the list of InstallationPackage Ids associated with a Depot.

Parametersosid.id.IddepotId Id of the Depot
Returnosid.id.IdList list of related package Ids
ErrorsNOT_FOUND depotId is not found
NULL_ARGUMENT depotId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByDepot
Description

Gets the list of InstallationPackages associated with a Depot.

Parametersosid.id.IddepotId Id of the Depot
Returnosid.installation.InstallationPackageList list of related packages
ErrorsNOT_FOUND depotId is not found
NULL_ARGUMENT depotId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackageIdsByDepots
Description

Gets the list of InstallationPackage Ids corresponding to a list of Depots.

Parametersosid.id.IdListdepotIds list of depot Ids
Returnosid.id.IdList list of package Ids
ErrorsNULL_ARGUMENT depotIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByDepots
Description

Gets the list of InstallationPackages corresponding to a list of Depots.

Parametersosid.id.IdListdepotIds list of depot Ids
Returnosid.installation.InstallationPackageList list of packages
ErrorsNULL_ARGUMENT depotIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetDepotIdsByInstallationPackage
Description

Gets the list of Depot Ids mapped to a InstallationPackage.

Parametersosid.id.IdinstallationPackageId Id of a InstallationPackage
Returnosid.id.IdList list of depot Ids
ErrorsNOT_FOUND installationPackageId is not found
NULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetDepotsByInstallationPackage
Description

Gets the list of Depots mapped to a InstallationPackage.

Parametersosid.id.IdinstallationPackageId Id of a InstallationPackage
Returnosid.installation.DepotList list of depots
ErrorsNOT_FOUND installationPackageId is not found
NULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.