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

This session manages queries and sequencing to create "smart" dynamic catalogs. A PackageQuery can be retrieved from this session and mapped to this Depot to create a virtual collection of Packages. The packages may be sequenced using the PackageSearchOrder from this session.

This Depot has a default query that matches any package and a default search order that specifies no sequencing. The queries may be examined using a PackageQueryInspector. The query may be modified by converting the inspector back to a PackageQuery.

MethodgetDepotId
Description

Gets the Depot Id associated with this session.

Returnosid.id.Idthe Depot Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDepot
Description

Gets the Depot associated with this session.

Returnosid.installation.Depotthe Depot associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartDepot
Description

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

Returnboolean false if smart depot management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPackageQuery
Description

Gets a package query.

Returnosid.installation.PackageQuerythe package query
CompliancemandatoryThis method must be implemented.
MethodgetPackageSearchOrder
Description

Gets a package search order.

Returnosid.installation.PackageSearchOrderthe package search order
CompliancemandatoryThis method must be implemented.
MethodapplyPackageQuery
Description

Applies a package query to this depot.

Parametersosid.installation.PackageQuerypackageQuerythe package query
ErrorsNULL_ARGUMENT packageQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED packageQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectPackageQuery
Description

Gets a package query inspector for this depot.

Returnosid.installation.PackageQueryInspectorthe package query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyPackageSequencing
Description

Applies a package search order to this depot.

Parametersosid.installation.PackageSearchOrderpackageSearchOrderthe package search order
ErrorsNULL_ARGUMENT packageSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED packageSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPackageQueryFromInspector
Description

Gets a package query from an inspector.

Parametersosid.installation.PackageQueryInspectorpackageQueryInspectora package query inspector
Returnosid.installation.PackageQuerythe package query
ErrorsNULL_ARGUMENT packageQueryInspector is null
UNSUPPORTED packageQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.