SAP NetWeaver '04

com.sapportals.wcm.util.acl
Interface IAclEntry

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
All Known Subinterfaces:
IAclEntryRaw

public interface IAclEntry

An IAclEntry is an entry in an IAcl which grants or denies a permission to a specific principal.
Abbreviations:


Method Summary
 boolean checkPermission(IAclPermission permission)
          check whether some permission is covered by the permission of the ACE
 IAclPermission getPermission()
          get the permission of the ACE
 com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
          get the principal of the ACE
 int getSortIndex()
          get the sort index of the ACE - the sequence of the ACEs in the ACL is controlled by the sort indices
 boolean isNegative()
          check whether the ACE denies its permission
 boolean isPropagated()
          get the propagation flag of the ACE - propagation is no task of the basic acl package - only the flag is persisted
 boolean isReadOnly()
          check wether the ACE is read only
 void setPropagation(com.sapportals.portal.security.usermanagement.IUMPrincipal caller, boolean propagate)
          set the propagation flag of the ACE - propagation is no task of the basic acl package - only the flag is persisted
 void setSortIndex(com.sapportals.portal.security.usermanagement.IUMPrincipal caller, int sortIndex)
          set the sort index of the ACE
 

Method Detail

getPermission

public IAclPermission getPermission()
                             throws AclPersistenceException
get the permission of the ACE
Returns:
the permission
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

checkPermission

public boolean checkPermission(IAclPermission permission)
                        throws AclPersistenceException
check whether some permission is covered by the permission of the ACE
Parameters:
permission - the permission
Returns:
true iff all actions of the permission are contained in the permission of the ACE
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

isNegative

public boolean isNegative()
                   throws AclPersistenceException
check whether the ACE denies its permission
Returns:
true iff the ACE denies its permission
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

getPrincipal

public com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
                                                                        throws AclPersistenceException
get the principal of the ACE
Returns:
the principal of the ACE
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

getSortIndex

public int getSortIndex()
                 throws AclPersistenceException
get the sort index of the ACE - the sequence of the ACEs in the ACL is controlled by the sort indices
Returns:
the sort index
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

setSortIndex

public void setSortIndex(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
                         int sortIndex)
                  throws AclPersistenceException,
                         NotAuthorizedException
set the sort index of the ACE
Parameters:
caller - the caller which must be an owner of the ACL the ACE is assigned to (may be null in case it is not assigned yet)
sortIndex - the new sort index
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred
NotAuthorizedException - the user in the resource context of the belonging ACL is not an owner of the ACL

isPropagated

public boolean isPropagated()
                     throws AclPersistenceException
get the propagation flag of the ACE - propagation is no task of the basic acl package - only the flag is persisted
Returns:
the propagation flag of the ACE
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

setPropagation

public void setPropagation(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
                           boolean propagate)
                    throws AclPersistenceException,
                           NotAuthorizedException
set the propagation flag of the ACE - propagation is no task of the basic acl package - only the flag is persisted
Parameters:
caller - the caller which must be an owner of the ACL the ACE is assigned to (may be null in case it is not assigned yet)
propagate - the propagation flag
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred
NotAuthorizedException - Exception raised in failure situation

isReadOnly

public boolean isReadOnly()
                   throws AclPersistenceException
check wether the ACE is read only
Returns:
true iff the ACE is read only
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

SAP NetWeaver '04

Copyright © 2004 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.