OSID Logo
OSID Specifications
authorization package
Version 3.1.0
Interfaceosid.authorization.FunctionSmartVaultSession
Implementsosid.OsidSession
Used Byosid.authorization.AuthorizationManager
osid.authorization.AuthorizationProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A FunctionQuery can be retrieved from this session and mapped to this Vault to create a virtual collection of Functions. The functions may be sequenced using the FunctionSearchOrder from this session.

This Vault has a default query that matches any function and a default search order that specifies no sequencing. The queries may be examined using a FunctionQueryInspector. The query may be modified by converting the inspector back to a FunctionQuery.

MethodgetVaultId
Description

Gets the Vault Id associated with this session.

Returnosid.id.Id the Vault Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetVault
Description

Gets the Vault associated with this session.

Returnosid.authorization.Vault the Vault associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartVaults
Description

Tests if this user can manage smart vaults. 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 vault management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetFunctionQuery
Description

Gets a function query.

Returnosid.authorization.FunctionQuery the function query
Compliancemandatory This method must be implemented.
MethodgetFunctionSearchOrder
Description

Gets a function search order.

Returnosid.authorization.FunctionSearchOrder the function search order
Compliancemandatory This method must be implemented.
MethodapplyFunctionQuery
Description

Applies a function query to this vault.

Parametersosid.authorization.FunctionQueryfunctionQuery the function query
ErrorsNULL_ARGUMENT functionQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED functionQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectFunctionQuery
Description

Gets a function query inspector for this vault.

Returnosid.authorization.FunctionQueryInspector the function query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyFunctionSequencing
Description

Applies a function search order to this vault.

Parametersosid.authorization.FunctionSearchOrderfunctionSearchOrder the function search order
ErrorsNULL_ARGUMENT functionSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED functionSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetFunctionQueryFromInspector
Description

Gets a function query from an inspector.

Parametersosid.authorization.FunctionQueryInspectorfunctionQueryInspector a function query inspector
Returnosid.authorization.FunctionQuery the function query
ErrorsNULL_ARGUMENT functionQueryInspector is null
UNSUPPORTED functionQueryInspector is not of this service
Compliancemandatory This method must be implemented.