|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Read-Only interface describing a repository sub manager for security. This interface allows for security checks on resources based on generic permissions and UME principals. The predefined set of permissions can be extened by the implementation.
| Method Summary | |
List |
getSupportedPermissions(IResourceHandle resourceHandle)
Get list of permissions which are supported by the security manager for the given resource handle, e.g. outcome depends on whether the resource is a collection or not. |
boolean |
isAllowed(IResourceHandle resourceHandle,
IPrincipal principal,
IPermission permission)
Checks whether the given principal has the given permission on the given resource handle. |
boolean |
isAllowed(IResourceHandle resourceHandle,
IPrincipal principal,
List permissions)
Checks whether the given principal has all of the given permissions on the given resource handle. |
Set |
isAllowed(List ridList,
IPrincipal principal,
IPermission permission)
Checks whether the given principal has the given permission on the given resource identifiers. |
Set |
isAllowed(List ridList,
IPrincipal principal,
List permissions)
Checks whether the given principal has all of the given permissions on the given resource identifiers. |
| Method Detail |
public List getSupportedPermissions(IResourceHandle resourceHandle)
throws ResourceException
resourceHandle - resource handle
IPermission - can be empty but not null.
ResourceException - when the resource handle is invalid
public boolean isAllowed(IResourceHandle resourceHandle,
IPrincipal principal,
IPermission permission)
throws ResourceException
resourceHandle - resource handleprincipal - principal for whom the permissions are checkedpermission - single permission to check
ResourceException - when wrong parameterized
public boolean isAllowed(IResourceHandle resourceHandle,
IPrincipal principal,
List permissions)
throws ResourceException
resourceHandle - resource handleprincipal - principal for whom the permissions are checkedpermissions - list of permissions to check
ResourceException - when wrong parameterized
public Set isAllowed(List ridList,
IPrincipal principal,
IPermission permission)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource identifiersprincipal - principal for whom the permissions are checkedpermission - single permission to check
ResourceException - when wrong parameterized
OperationNotCompletedException - when the operation failed in
parts
public Set isAllowed(List ridList,
IPrincipal principal,
List permissions)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource identifiersprincipal - principal for whom the permissions are checkedpermissions - list of permissions to check
ResourceException - when wrong parameterized
OperationNotCompletedException - when the operation failed in
parts
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||