OSID Logo
OSID Specifications
authorization package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.FunctionVaultSession
Implementsosid.OsidSession
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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.IdListlist of related function Ids
ErrorsNOT_FOUND vaultId is not found
NULL_ARGUMENT vaultId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetFunctionsByVault
Description

Gets the list of Functions associated with a Vault.

Parametersosid.id.IdvaultId Id of the Vault
Returnosid.authorization.FunctionListlist of related functions
ErrorsNOT_FOUND vaultId is not found
NULL_ARGUMENT vaultId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetFunctionIdsByVaults
Description

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

Parametersosid.id.IdListvaultIdslist of vault Ids
Returnosid.id.IdListlist of function Ids
ErrorsNULL_ARGUMENT vaultIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetFunctionsByVaults
Description

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

Parametersosid.id.IdListvaultIdslist of vault Ids
Returnosid.authorization.FunctionListlist of functions
ErrorsNULL_ARGUMENT vaultIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListlist of vault Ids
ErrorsNOT_FOUND functionId is not found
NULL_ARGUMENT functionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetVaultsByFunction
Description

Gets the list of Vaults mapped to a Function.

Parametersosid.id.IdfunctionId Id of a Function
Returnosid.authorization.VaultListlist of vaults
ErrorsNOT_FOUND functionId is not found
NULL_ARGUMENT functionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.