OSID Logo
OSID Specifications
authorization package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.QualifierVaultSession
Implementsosid.OsidSession
Description

This session provides methods to retrieve Qualifier to Vault mappings. A Qualifier 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
MethodcanLookupQualifierVaultMappings
Description

Tests if this user can perform lookups of qualifier/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 Qualifier 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.
MethodgetQualifierIdsByVault
Description

Gets the list of Qualifier Ids associated with a Vault.

Parametersosid.id.IdvaultId Id of the Vault
Returnosid.id.IdListlist of related qualifier 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.
MethodgetQualifiersByVault
Description

Gets the list of Qualifier associated with a Vault.

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

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

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

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

Parametersosid.id.IdListvaultIdslist of vault Ids
Returnosid.authorization.QualifierListlist of qualifiers
ErrorsNULL_ARGUMENT vaultIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetVaultIdsByQualifier
Description

Gets the list of Vault Ids mapped to a Qualifier.

Parametersosid.id.IdqualifierId Id of a Qualifier
Returnosid.id.IdListlist of vault Ids
ErrorsNOT_FOUND qualifierId is not found
NULL_ARGUMENT qualifierId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetVaultsByQualifier
Description

Gets the list of Vaults mapped to a Qualifier.

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