public interface AuthorizationVaultAssignmentSession extends OsidSession
This session provides methods to re-assign Authorizations
to Vault. An Authorization may map
to multiple Vault objects and removing the last reference
to a Authorization is the equivalent of deleting it. Each
Vault may have its own authorizations governing who is
allowed to operate on it.
Moving or adding a reference of a Authorization to
another Vault is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignAuthorizationToVault(Id authorizationId,
Id vaultId)
Adds an existing
Authorization to a Vault. |
boolean |
canAssignAuthorizations()
Tests if this user can alter authorization/vault mappings.
|
boolean |
canAssignAuthorizationsToVault(Id vaultId)
Tests if this user can alter authorization/vault mappings.
|
IdList |
getAssignableVaultIds(Id vaultId)
Gets a list of vault including and under the given vault node in which
any authorization can be assigned.
|
IdList |
getAssignableVaultIdsForAuthorization(Id vaultId,
Id authorizationId)
Gets a list of vault including and under the given vault node in which
a specific authorization can be assigned.
|
void |
unassignAuthorizationFromVault(Id authorizationId,
Id vaultId)
Removes an
Authorization from a Vault. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignAuthorizations()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignAuthorizationsToVault(Id vaultId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.vaultId - the Id of the Vault false if mapping is not authorized, true
otherwiseNullArgumentException - vaultId is
null mandatory - This method must be implemented. IdList getAssignableVaultIds(Id vaultId) throws OperationFailedException
vaultId - the Id of the Vault Ids NullArgumentException - vaultId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableVaultIdsForAuthorization(Id vaultId, Id authorizationId) throws OperationFailedException
vaultId - the Id of the Vault authorizationId - the Id of the
Authorization Ids NullArgumentException - vaultId or
authorizationId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignAuthorizationToVault(Id authorizationId, Id vaultId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Authorization to a Vault.
authorizationId - the Id of the
Authorization vaultId - the Id of the Vault AlreadyExistsException - authorizationId
is already assigned to vaultId NotFoundException - authorizationId or
vaultId not foundNullArgumentException - authorizationId
or vaultId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignAuthorizationFromVault(Id authorizationId, Id vaultId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Authorization from a Vault. authorizationId - the Id of the
Authorization vaultId - the Id of the Vault NotFoundException - authorizationId or
vaultId not found or authorizationId
not assigned to vaultId NullArgumentException - authorizationId
or vaultId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.