|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Read-Only interface describing a repository sub manager for security. This interface allows for simple checking of permission on resources, but doesn't offer any sophisticated operations, because security APIs are usually very much specialized and can't be defined in an general interface for a repository sub manager. Specifically read access more sophisticated than the isAllowed() methods is problematic on respoitories supporting also denies (a grant on a group and a deny on a user must be translated into only grants). A more complex abstraction of security settings including denies and other features would impose too much of a requirement for repositories. Not all repositories might be able to support such a complex API even in parts.
| Method Summary | |
java.util.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,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
IPermission permission)
Checks whether the given principal has the given permission on the given resource handle. |
boolean |
isAllowed(IResourceHandle resourceHandle,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
java.util.List permissions)
Checks whether the given principal has all of the given permissions on the given resource handle. |
java.util.Set |
isAllowed(java.util.List ridList,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
IPermission permission)
Checks whether the given principal has the given permission on the given resource identifiers. |
java.util.Set |
isAllowed(java.util.List ridList,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
java.util.List permissions)
Checks whether the given principal has all of the given permissions on the given resource identifiers. |
| Method Detail |
public java.util.List getSupportedPermissions(IResourceHandle resourceHandle)
throws ResourceException
resourceHandle - resource handleIPermissionResourceException - when the resource handle is invalid or no
permissions could be looked up
public boolean isAllowed(IResourceHandle resourceHandle,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
IPermission permission)
throws ResourceException
resourceHandle - resource handleprincipal - principal for whom the permissions are checkedpermission - single permission to checkResourceException - when wrong parameterized
public boolean isAllowed(IResourceHandle resourceHandle,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
java.util.List permissions)
throws ResourceException
resourceHandle - resource handleprincipal - principal for whom the permissions are checkedpermissions - list of permissions to checkResourceException - when wrong parameterized
public java.util.Set isAllowed(java.util.List ridList,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
IPermission permission)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource identifiersprincipal - principal for whom the permissions are checkedpermission - single permission to checkResourceException - when wrong parameterizedOperationNotCompletedException - when the operation failed in
parts
public java.util.Set isAllowed(java.util.List ridList,
com.sap.netweaver.bc.rf.mi.security.IPrincipal principal,
java.util.List permissions)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource identifiersprincipal - principal for whom the permissions are checkedpermissions - list of permissions to checkResourceException - when wrong parameterizedOperationNotCompletedException - when the operation failed in
parts
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||