public interface IMutableSecurityManager extends ISecurityManager
Modifier and Type | Method and Description |
---|---|
void |
grant(IResourceHandle resourceHandle,
IPrincipal principal,
IPermission permission)
Set permission for the given principal on the given resource handle.
|
void |
grant(IResourceHandle resourceHandle,
IPrincipal principal,
List permissions)
Set list of permissions for the given principal on the given resource
handle.
|
void |
grant(List ridList,
IPrincipal principal,
IPermission permission)
Set permission for the given principal on the given resource identifiers.
|
void |
grant(List ridList,
IPrincipal principal,
List permissions)
Set list of permissions for the given principal on the given resource
identifiers.
|
void |
revoke(IResourceHandle resourceHandle,
IPrincipal principal,
IPermission permission)
Remove permission for the given principal on the given resource handle.
|
void |
revoke(IResourceHandle resourceHandle,
IPrincipal principal,
List permissions)
Remove list of permissions for the given principal on the given resource
handle.
|
void |
revoke(List ridList,
IPrincipal principal,
IPermission permission)
Remove permission for the given principal on the given resource
identifiers.
|
void |
revoke(List ridList,
IPrincipal principal,
List permissions)
Remove list of permissions for the given principal on the given resource
identifiers.
|
getSupportedPermissions, isAllowed, isAllowed, isAllowed, isAllowed
void grant(IResourceHandle resourceHandle, IPrincipal principal, IPermission permission) throws ResourceException
resourceHandle
- resource handleprincipal
- principal for whom the permission should be setpermission
- single permission to setResourceException
- when wrong parameterized or setting the
permission failedvoid grant(IResourceHandle resourceHandle, IPrincipal principal, List permissions) throws ResourceException
resourceHandle
- resource handleprincipal
- principal for whom the permissions should be setpermissions
- list of permissions to setResourceException
- when wrong parameterized or setting the
permission failedvoid grant(List ridList, IPrincipal principal, IPermission permission) throws ResourceException, OperationNotCompletedException
ridList
- list of resource identifiersprincipal
- principal for whom the permissions should be setpermission
- single permission to setResourceException
- when wrong parameterizedOperationNotCompletedException
- when the operation failed in
partsvoid grant(List ridList, IPrincipal principal, List permissions) throws ResourceException, OperationNotCompletedException
ridList
- list of resource identifiersprincipal
- principal for whom the permissions should be setpermissions
- list of permissions to setResourceException
- when wrong parameterizedOperationNotCompletedException
- when the operation failed in
partsvoid revoke(IResourceHandle resourceHandle, IPrincipal principal, IPermission permission) throws ResourceException
resourceHandle
- resource handleprincipal
- principal for whom the permission should be removedpermission
- single permission to removeResourceException
- when wrong parameterized or removing the
permission failedvoid revoke(IResourceHandle resourceHandle, IPrincipal principal, List permissions) throws ResourceException
resourceHandle
- resource handleprincipal
- principal for whom the permissions should be removedpermissions
- list of permissions to removeResourceException
- when wrong parameterized or removing the
permission failedvoid revoke(List ridList, IPrincipal principal, IPermission permission) throws ResourceException, OperationNotCompletedException
Note: This method needs not to be handled atomically! Although this operation may fail in parts, the operation on one of the many operands provided through the parameter list is always expected to be atomic!
ridList
- list of resource identifiersprincipal
- principal for whom the permissions should be removedpermission
- single permission to removeResourceException
- when wrong parameterizedOperationNotCompletedException
- when the operation failed in
partsvoid revoke(List ridList, IPrincipal principal, List permissions) throws ResourceException, OperationNotCompletedException
Note: This method needs not to be handled atomically! Although this operation may fail in parts, the operation on one of the many operands provided through the parameter list is always expected to be atomic!
ridList
- list of resource identifiersprincipal
- principal for whom the permissions should be removedpermissions
- list of permissions to removeResourceException
- when wrong parameterizedOperationNotCompletedException
- when the operation failed in
partsAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice