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

The session defines methods for retrieving Installations from installation Sites. An Installation represents a InstallationPackage installed on a Site.

Two views are defined in this session:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • normalized version view: multiple versions of the same package are suppressed
  • denormalized version vew: all versions of an installation are returned

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

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

Tests if this user can perform Installation 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.
MethoduseComparativeInstallationView
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.
MethodusePlenaryInstallationView
Description

A complete view of the Installation 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 installation.

Compliancemandatory This method is must be implemented.
MethoduseDenormalizedVersionView
Description

All versions of the same installation are returned.

Compliancemandatory This method is must be implemented.
MethodgetInstallation
Description

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

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

Gets an InstallationList corresponding to the given IdList. In plenary mode, the returned list contains all of the installations 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 Installations may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListinstallationIds the list of Ids to retrieve
Returnosid.installation.InstallationList the returned Installation list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT installationIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationsByGenusType
Description

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

Parametersosid.type.TypeinstallationGenusType an installation genus type
Returnosid.installation.InstallationList the returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationsByParentGenusType
Description

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

Parametersosid.type.TypeinstallationGenusType an installation genus type
Returnosid.installation.InstallationList the returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationsByRecordType
Description

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

Parametersosid.type.TypeinstallationRecordType an installation record type
Returnosid.installation.InstallationList the returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallationsByInstallationPackage
Description

Gets an InstallationList corresponding to the given InstallationPackage. In plenary mode, the returned list contains all of the installations for the specified package, 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 Installations may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdinstallationPackageId Id of a InstallationPackage
Returnosid.installation.InstallationList the returned Installation list
ErrorsNULL_ARGUMENT installationPackageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstallations
Description

Gets all Installations. In plenary mode, the returned list contains all known installations or an error results. Otherwise, the returned list may contain only those installations that are accessible through this session. In both cases, the order of the set is not specified.

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