public interface AuthorizationEnablerVaultAssignmentSession extends OsidSession
This session provides methods to re-assign AuthorizationEnabler
to Vault mappings. An AuthorizationEnabler
may appear in multiple Vault objects and removing
the last reference to an AuthorizationEnabler is the
equivalent of deleting it. Each Vault may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of an AuthorizationEnabler to
another Vault is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignAuthorizationEnablerToVault(Id authorizationEnablerId,
Id vaultId)
Adds an existing
AuthorizationEnabler to a
Vault. |
boolean |
canAssignAuthorizationEnablers()
Tests if this user can alter authorization enabler/vault mappings.
|
boolean |
canAssignAuthorizationEnablersToVault(Id vaultId)
Tests if this user can alter authorization enabler/vault mappings.
|
IdList |
getAssignableVaultIds(Id vaultId)
Gets a list of vaults including and under the given vault node in
which any authorization enabler can be assigned.
|
IdList |
getAssignableVaultIdsForAuthorizationEnabler(Id vaultId,
Id authorizationEnablerId)
Gets a list of vaults including and under the given vault node in
which a specific authorization enabler can be assigned.
|
void |
reassignAuthorizationEnablerToVault(Id authorizationEnablerId,
Id fromVaultId,
Id toVaultId)
Moves an
AuthorizationEnabler from one Vault
to another. |
void |
unassignAuthorizationEnablerFromVault(Id authorizationEnablerId,
Id vaultId)
Removes an
AuthorizationEnabler from a Vault. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignAuthorizationEnablers()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignAuthorizationEnablersToVault(Id vaultId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup 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 getAssignableVaultIdsForAuthorizationEnabler(Id vaultId, Id authorizationEnablerId) throws OperationFailedException
vaultId - the Id of the Vault authorizationEnablerId - the Id of the
AuthorizationEnabler Ids NullArgumentException - vaultId or
authorizationEnablerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignAuthorizationEnablerToVault(Id authorizationEnablerId, Id vaultId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
AuthorizationEnabler to a
Vault. authorizationEnablerId - the Id of the
AuthorizationEnabler vaultId - the Id of the Vault AlreadyExistsException - authorizationEnablerId
already assigned to vaultI NotFoundException - authorizationEnablerId
or vaultId not foundNullArgumentException - authorizationEnablerId
or vaultId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignAuthorizationEnablerFromVault(Id authorizationEnablerId, Id vaultId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuthorizationEnabler from a Vault.
authorizationEnablerId - the Id of the
AuthorizationEnabler vaultId - the Id of the Vault NotFoundException - authorizationEnablerId
or vaultId not found or
authorizationEnablerId not assigned to vaultId
NullArgumentException - authorizationEnablerId
or vaultId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void reassignAuthorizationEnablerToVault(Id authorizationEnablerId, Id fromVaultId, Id toVaultId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuthorizationEnabler from one Vault
to another. Mappings to other Vaults are
unaffected.authorizationEnablerId - the Id of the
AuthorizationEnabler fromVaultId - the Id of the current Vault
toVaultId - the Id of the destination
Vault NotFoundException - authorizationEnablerId,
fromVaultId, or toVaultId not found or
authorizationEnablerId not mapped to
fromVaultId NullArgumentException - authorizationEnablerId,
fromVaultId, or toVaultId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.