OSID Logo
OSID Specifications
installation package
Version 3.0.0
Release Candidate Preview
Interfaceosid.installation.InstallationLookupSession
Implementsosid.OsidSession
Description

The session defines methods for retrieving Installations from installation Sites. An Installation represents a Package 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.Idthe Site Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetSite
Description

Gets the Site associated with this session.

Returnosid.installation.Sitethe Site associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseNormalizedVersionView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseDenormalizedVersionView
Description

All versions of the same installation are returned.

CompliancemandatoryThis 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.Installationthe installation
ErrorsNOT_FOUND installationId not found
NULL_ARGUMENT installationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListinstallationIdsthe list of Ids to retrieve
Returnosid.installation.InstallationListthe returned Installation list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT installationIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeinstallationGenusTypean installation genus type
Returnosid.installation.InstallationListthe returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeinstallationGenusTypean installation genus type
Returnosid.installation.InstallationListthe returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeinstallationRecordTypean installation record type
Returnosid.installation.InstallationListthe returned Installation list
ErrorsNULL_ARGUMENT installationGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstallationsByPackage
Description

Gets an InstallationList corresponding to the given Package. 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.IdpackageId Id of a Package
Returnosid.installation.InstallationListthe returned Installation list
ErrorsNULL_ARGUMENT packageId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.InstallationListan InstallationList
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.