SAP NetWeaver 7.1 Composition Environment

com.sap.security.api.acl
Interface IAclHierarchy


public interface IAclHierarchy

ACL Hierarchy Interface

Definition of an Access Control List Hierarchy

This interface defines an Access Control List Hierarchy. With this, it is possible to check if a principal has a specific permission for an object or his parents.


Method Summary
 void checkPermission(String[] objectIds, IPrincipal principal, String permission)
          This method checks if a principal can perform a permission on the specified object ID array.
 boolean isAllowed(String[] objectIds, IPrincipal principal, String permission)
          This method checks, if a principal can perform a permission on the specified object ID array.
 void propagade(IPrincipal caller, String rootObjectID, String[] childrenObjectIds)
          This method propagades the ACEs from the root of the subtree to his nodes and leaves.
 

Method Detail

isAllowed

boolean isAllowed(String[] objectIds,
                  IPrincipal principal,
                  String permission)
                  throws UMException
This method checks, if a principal can perform a permission on the specified object ID array.

Parameters:
objectIds - This object ID array represent the parent object IDs (the way from the specified object ID to the parent nodes up to the roof).
principal - the principal which has to be checked.
permission - the permission which has to be checked.
Returns:
true if the principal is authorised for the specified permission false otherwise
Throws:
UMException - if the data cannot be read.

propagade

void propagade(IPrincipal caller,
               String rootObjectID,
               String[] childrenObjectIds)
               throws UMException
This method propagades the ACEs from the root of the subtree to his nodes and leaves. These ACEs are inherited.

Parameters:
caller - a principal who has to be the owner of the root ACL
rootObjectID - a String which represents the root of the subtree. His ACEs will be propagated.
childrenObjectIds - a String array which represents all child object IDs under the root of the subtree.
Throws:
UMException - if the data cannot be set.

checkPermission

void checkPermission(String[] objectIds,
                     IPrincipal principal,
                     String permission)
                     throws UMException
This method checks if a principal can perform a permission on the specified object ID array.

Parameters:
objectIds - This object ID array represent the parent object IDs (the way from the specified object ID to the parent nodes up to the roof)
principal - the principal which has to be checked
permission - the permission which has to be checked
Throws:
UMException - if the principal has not the specified permission

SAP NetWeaver 7.1 Composition Environment

Copyright © 2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.