|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An IAcl is a Access Control List which defines the access
permissions to an object.
Abbreviations:
| Method Summary | |
boolean |
addEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAclEntry aclEntry)
add an ACE to the ACL |
boolean |
checkPermission(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission permission)
check whether the ACL grants a specific permission to a user |
java.util.List |
getDescendantsWithAcl(java.lang.String postFix)
get a list of all IDs of the descendants of the ACL that have an ACL too |
IAclEntryList |
getEntries()
get the ACEs of the ACL |
IAclEntryList |
getEntries(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
get the ACEs of the ACL concerning a specific principal |
com.sapportals.portal.security.usermanagement.IUMPrincipal |
getLockingUser()
get the user which locked the ACL |
boolean |
hasDescendantsWithAcl(java.lang.String postFix)
check whether the ACl has descendants that have an ACL too |
boolean |
isLocked()
check whether the ACL is locked |
boolean |
isReadOnly()
check whether the ACL is read only |
boolean |
isUpToDate()
check whether the ACL is up to date (check change level of persisted ACL) (used to invalidate ACL caches) |
boolean |
lock(com.sapportals.portal.security.usermanagement.IUMPrincipal caller)
lock the ACL (the lock is cooperative and affects only the result of subsequent calls to lock() or isLocked()) |
boolean |
removeEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAclEntry aclEntry)
remove an ACE from the ACL |
void |
unlock(com.sapportals.portal.security.usermanagement.IUMPrincipal caller)
unlock the ACL |
| Methods inherited from interface com.sapportals.wcm.util.acl.IOwner |
addOwner, getOwners, isAuthorized, isOwner, removeOwner |
| Method Detail |
public boolean addEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAclEntry aclEntry)
throws AclPersistenceException,
InvalidClassException,
NotAuthorizedException,
AlreadyAssignedToAclException,
PermissionNotSupportedException
caller - a principal which must be an owner of the ACLaclEntry - the ACEAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredInvalidClassException - the ACE was created by a foreign resource
acl managerNotAuthorizedException - the caller in not an ownerAlreadyAssignedToAclException - the ACE is already assigned to an
ACLPermissionNotSupportedException - the permission of the ACE is not
supported for the type of the ACL's object
public boolean removeEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAclEntry aclEntry)
throws AclPersistenceException,
InvalidClassException,
NotAuthorizedException
caller - a principal which must be an owner of the ACLaclEntry - the ACEAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredInvalidClassException - the ACE was created by a foreign resource
acl managerNotAuthorizedException - the caller in not an owner
public IAclEntryList getEntries()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public IAclEntryList getEntries(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean checkPermission(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission permission)
throws AclPersistenceException
permission - the permissionprincipal - TBD: Description of the incoming method parameterAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean lock(com.sapportals.portal.security.usermanagement.IUMPrincipal caller)
throws AclPersistenceException,
NotAuthorizedException
caller - TBD: Description of the incoming method parameterAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the caller is not an owner
public boolean isLocked()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public com.sapportals.portal.security.usermanagement.IUMPrincipal getLockingUser()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public void unlock(com.sapportals.portal.security.usermanagement.IUMPrincipal caller)
throws AclPersistenceException,
NotAuthorizedException
caller - TBD: Description of the incoming method parameterAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the caller is not the user which locked
the ACL
public boolean hasDescendantsWithAcl(java.lang.String postFix)
throws AclPersistenceException
postFix - is appended to the ACL ID before the descendants are
identified as all ACLs whose IDs start with this IDAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public java.util.List getDescendantsWithAcl(java.lang.String postFix)
throws AclPersistenceException
postFix - is appended to the ACL ID before the descendants are
identified as all ACLs whose IDs start with this IDAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean isReadOnly()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean isUpToDate()
throws AclPersistenceException
AclPersistenceException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||