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

This session provides methods for searching InstallationPackages. The search query is constructed using the InstallationPackageQuery. The package record Type also specifies the record for the package query.

This session defines views that offer differing behaviors for searching.

  • federated depot view: searches include packages in depots of which this depot is a ancestor in the depot hierarchy
  • isolated depot view: searches are restricted to packages in this depot
  • normalized version view: multiple versions of the same package are suppressed
  • denormalized version vew: all versions of an installation are returned
  • normalized dependency view: supporting installations upon which other installations depend are suppressed
  • denormalized dependency view: all dependencies are returned

InstallationPackages may have a query record indicated by their respective record types. The query record is accessed via the InstallationPackageQuery.

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

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

Returnboolean false if search 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 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 searches 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.
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.
MethodgetInstallationPackageQuery
Description

Gets a package query.

Returnosid.installation.InstallationPackageQuery the package query
Compliancemandatory This method must be implemented.
MethodgetInstallationPackagesByQuery
Description

Gets a list of InstallationPackages matching the given package query.

Parametersosid.installation.InstallationPackageQueryinstallationPackageQuery the package query
Returnosid.installation.InstallationPackageList the returned InstallationPackageList
ErrorsNULL_ARGUMENT installationPackageQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED installationPackageQuery is not of this service
Compliancemandatory This method must be implemented.