OSID Logo
OSID Specifications
authorization rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.rules.AuthorizationEnablerSmartVaultSession
Implementsosid.OsidSession
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.Idthe Vault Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetVault
Description

Gets the Vault associated with this session.

Returnosid.authorization.Vaultthe vault
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetAuthorizationEnablerQuery
Description

Gets an authorization enabler query.

Returnosid.authorization.rules.AuthorizationEnablerQuerythe authorization enabler query
CompliancemandatoryThis method must be implemented.
MethodgetAuthorizationEnablerSearchOrder
Description

Gets an authorization enabler search order.

Returnosid.authorization.rules.AuthorizationEnablerSearchOrderthe authorization enabler search order
CompliancemandatoryThis method must be implemented.
MethodapplyAuthorizationEnablerQuery
Description

Applies an authorization enabler query to this vault.

Parametersosid.authorization.rules.AuthorizationEnablerQueryauthorizationEnablerQuerythe authorization enabler query
ErrorsNULL_ARGUMENT authorizationEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED authorizationEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectAuthorizationEnablerQuery
Description

Gets an authorization enabler query inspector for this vault.

Returnosid.authorization.rules.AuthorizationEnablerQueryInspectorthe authorization enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyAuthorizationEnablerSequencing
Description

Applies an authorization enabler search order to this vault.

Parametersosid.authorization.rules.AuthorizationEnablerSearchOrderauthorizationEnablerSearchOrderthe authorization enabler search order
ErrorsNULL_ARGUMENT authorizationEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED authorizationEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetAuthorizationEnablerQueryFromInspector
Description

Gets an authorization enabler query from an inspector.

Parametersosid.authorization.rules.AuthorizationEnablerQueryInspectorauthorizationEnablerQueryInspectoran authorization enabler query inspector
Returnosid.authorization.rules.AuthorizationEnablerQuerythe authorization enabler query
ErrorsNULL_ARGUMENT authorizationEnablerQueryInspector is null
UNSUPPORTED authorizationEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.