OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.ProvisionSmartDistributorSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A ProvisionQuery can be retrieved from this session and distributorped to this Distributor to create a virtual collection of Provisions. The provisions may be sequenced using the ProvisionSearchOrder from this session.

This Distributor has a default query that matches any provision and a default search order that specifies no sequencing. The queries may be examined using a ProvisionQueryInspector. The query may be modified by converting the inspector back to a ProvisionQuery.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartDistributors
Description

Tests if this user can manage smart distributors. 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 distributor management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProvisionQuery
Description

Gets a provision query.

Returnosid.provisioning.ProvisionQuerythe provision query
CompliancemandatoryThis method must be implemented.
MethodgetProvisionSearchOrder
Description

Gets a provision search order.

Returnosid.provisioning.ProvisionSearchOrderthe provision search order
CompliancemandatoryThis method must be implemented.
MethodapplyProvisionQuery
Description

Applies a provision query to this distributor.

Parametersosid.provisioning.ProvisionQueryprovisionQuerythe provision query
ErrorsNULL_ARGUMENT provisionQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED provisionQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectProvisionQuery
Description

Gets a provision query inspector for this distributor.

Returnosid.provisioning.ProvisionQueryInspectorthe provision query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyProvisionSequencing
Description

Applies a provision search order to this distributor.

Parametersosid.provisioning.ProvisionSearchOrderprovisionSearchOrderthe provision search order
ErrorsNULL_ARGUMENT provisionSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED provisionSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetProvisionQueryFromInspector
Description

Gets a provision query from an inspector.

Parametersosid.provisioning.ProvisionQueryInspectorprovisionQueryInspectora provision query inspector
Returnosid.provisioning.ProvisionQuerythe provision query
ErrorsNULL_ARGUMENT provisionQueryInspector is null
UNSUPPORTED provisionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.