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

This session provides methods to retrieve Function to Vault mappings. A Function may appear in multiple Vaults. Each Vault may have its own authorizations governing who is allowed to look at it.

This lookup session defines two views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupFunctionVaultMappings
Description

Tests if this user can perform lookups of function/vault mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeVaultView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryVaultView
Description

A complete view of the Function and Vault returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethodgetFunctionIdsByVault
Description

Gets the list of Function Ids associated with a Vault.

Parametersosid.id.IdvaultId Id of the Vault
Returnosid.id.IdList list of related function Ids
ErrorsNOT_FOUND vaultId is not found
NULL_ARGUMENT vaultId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetFunctionsByVault
Description

Gets the list of Functions associated with a Vault.

Parametersosid.id.IdvaultId Id of the Vault
Returnosid.authorization.FunctionList list of related functions
ErrorsNOT_FOUND vaultId is not found
NULL_ARGUMENT vaultId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetFunctionIdsByVaults
Description

Gets the list of Function Ids corresponding to a list of Vaults.

Parametersosid.id.IdListvaultIds list of vault Ids
Returnosid.id.IdList list of function Ids
ErrorsNULL_ARGUMENT vaultIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetFunctionsByVaults
Description

Gets the list of Functions corresponding to a list of Vaults.

Parametersosid.id.IdListvaultIds list of vault Ids
Returnosid.authorization.FunctionList list of functions
ErrorsNULL_ARGUMENT vaultIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetVaultIdsByFunction
Description

Gets the list of Vault Ids mapped to a Function.

Parametersosid.id.IdfunctionId Id of a Function
Returnosid.id.IdList list of vault Ids
ErrorsNOT_FOUND functionId is not found
NULL_ARGUMENT functionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetVaultsByFunction
Description

Gets the list of Vaults mapped to a Function.

Parametersosid.id.IdfunctionId Id of a Function
Returnosid.authorization.VaultList list of vaults
ErrorsNOT_FOUND functionId is not found
NULL_ARGUMENT functionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.