OSID Logo
OSID Specifications
authorization rules package
Version 3.1.0
Interfaceosid.authorization.rules.AuthorizationEnablerSmartVaultSession
Implementsosid.OsidSession
Used Byosid.authorization.rules.AuthorizationRulesManager
osid.authorization.rules.AuthorizationRulesProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic vaults. An AuthorizationEnablerQuery can be retrieved from this session and mapped to this Vault to create a virtual collection of authorization enablers. The authorization enablers may be sequenced using the AuthorizationEnablerSearchOrder from this session.

This Vault has a default query that matches any authorization enabler and a default search order that specifies no sequencing. The queries may be examined using an AuthorizationEnablerQueryInspector. The query may be modified by converting the inspector back to an AuthorizationEnablerQuery.

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

Gets an authorization enabler query.

Returnosid.authorization.rules.AuthorizationEnablerQuery the authorization enabler query
Compliancemandatory This method must be implemented.
MethodgetAuthorizationEnablerSearchOrder
Description

Gets an authorization enabler search order.

Returnosid.authorization.rules.AuthorizationEnablerSearchOrder the authorization enabler search order
Compliancemandatory This method must be implemented.
MethodapplyAuthorizationEnablerQuery
Description

Applies an authorization enabler query to this vault.

Parametersosid.authorization.rules.AuthorizationEnablerQueryauthorizationEnablerQuery the authorization enabler query
ErrorsNULL_ARGUMENT authorizationEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED authorizationEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectAuthorizationEnablerQuery
Description

Gets an authorization enabler query inspector for this vault.

Returnosid.authorization.rules.AuthorizationEnablerQueryInspector the authorization enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyAuthorizationEnablerSequencing
Description

Applies an authorization enabler search order to this vault.

Parametersosid.authorization.rules.AuthorizationEnablerSearchOrderauthorizationEnablerSearchOrder the authorization enabler search order
ErrorsNULL_ARGUMENT authorizationEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED authorizationEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetAuthorizationEnablerQueryFromInspector
Description

Gets an authorization enabler query from an inspector.

Parametersosid.authorization.rules.AuthorizationEnablerQueryInspectorauthorizationEnablerQueryInspector an authorization enabler query inspector
Returnosid.authorization.rules.AuthorizationEnablerQuery the authorization enabler query
ErrorsNULL_ARGUMENT authorizationEnablerQueryInspector is null
UNSUPPORTED authorizationEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.