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

This session provides methods for retrieving InstallationPackages from remote Depots.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated depot view: All package methods in this session operate, retrieve and pertain to packages defined explicitly in the current depot. Using an isolated view is useful for managing packages with the InstallationPackageAdminSession.
  • federated depot view: All package methods in this session operate, retrieve and pertain to all packages defined in this depot and any other depots implicitly available in this depot through depot inheritence.
  • normalized version view: multiple versions of the same package are suppressed
  • denormalized version vew: all versions of an installation are returned

InstallationPackages may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the InstallationPackage.

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.
MethodcanLookupInstallationPackages
Description

Tests if this user can perform InstallationPackage lookups. 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 lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeInstallationPackageView
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.
MethodusePlenaryInstallationPackageView
Description

A complete view of the InstallationPackage 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.
MethoduseFederatedDepotView
Description

Federates the view for methods in this session. A federated view will include 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 lookups to this depot only.

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.
MethodgetInstallationPackage
Description

Gets the InstallationPackage specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned InstallationPackage may have a different Id than requested, such as the case where a duplicate Id was assigned to a InstallationPackage and retained for compatibility.

Parametersosid.id.IdinstallationPackageId Id of the InstallationPackage
Returnosid.installation.InstallationPackage the package
ErrorsNOT_FOUND installationPackageId not found
NULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method is must be implemented.
MethodgetInstallationPackagesByIds
Description

Gets a InstallationPackageList corresponding to the given IdList. In plenary mode, the returned list contains all of the packages specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible InstallationPackages may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListinstallationPackageIds the list of Ids to retrieve
Returnosid.installation.InstallationPackageList the returned InstallationPackage list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT installationPackageIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByGenusType
Description

Gets a InstallationPackageList corresponding to the given package genus Type which does not include packages of genus types derived from the specified Type. In plenary mode, the returned list contains all known packages or an error results. Otherwise, the returned list may contain only those packages that are accessible through this session.

Parametersosid.type.TypeinstallationPackageGenusType a package genus type
Returnosid.installation.InstallationPackageList the returned InstallationPackage list
ErrorsNULL_ARGUMENT installationPackageGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByParentGenusType
Description

Gets a InstallationPackageList corresponding to the given package genus Type and include any additional package with genus types derived from the specified Type. In plenary mode, the returned list contains all known packages or an error results. Otherwise, the returned list may contain only those packages that are accessible through this session.

Parametersosid.type.TypeinstallationPackageGenusType a package genus type
Returnosid.installation.InstallationPackageList the returned InstallationPackage list
ErrorsNULL_ARGUMENT installationPackageGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByRecordType
Description

Gets a InstallationPackageList containing the given package record Type. In plenary mode, the returned list contains all known packages or an error results. Otherwise, the returned list may contain only those packages that are accessible through this session.

Parametersosid.type.TypeinstallationPackageRecordType a package record type
Returnosid.installation.InstallationPackageList the returned InstallationPackage list
ErrorsNULL_ARGUMENT installationPackageRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByProvider
Description

Gets a InstallationPackageList for the given provider. In plenary mode, the returned list contains all known packages or an error results. Otherwise, the returned list may contain only those packages that are accessible through this session.

Parametersosid.id.IdresourceId a resource Id
Returnosid.installation.InstallationPackageList the returned InstallationPackage list
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetDependentInstallationPackages
Description

Gets a list of packages depending on the given package.

Parametersosid.id.IdinstallationPackageId an Id of a InstallationPackage
Returnosid.installation.InstallationPackageList list of package dependents
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.
MethodgetInstallationPackageVersions
Description

Gets a list of packages in the specified package version chain.

Parametersosid.id.IdinstallationPackageId an Id of a InstallationPackage
Returnosid.installation.InstallationPackageList list of dependencies
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.
MethodgetInstallationPackages
Description

Gets all InstallationPackages. In plenary mode, the returned list contains all known packages or an error results. Otherwise, the returned list may contain only those packages that are accessible through this session.

Returnosid.installation.InstallationPackageList a InstallationPackageList
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.