|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface describing an access control list, short ACL. Each resource may have an ACL with many ACL entries. An entry describes for one principal (may be a user, group or whatever is considered an entity) a permission this principal has on the given resource. The ACL itself is just an envelope for many ACL entries.
An ACL entry may define a permission this principal has on the given resource, but it may also define a permission a principal is denied to have (so called negative ACL entry). ACLs are propagated down from above the resource hierarchy on the fly, i.e. they are not really set on the descendants but derived when accessed. All descendants not having an own ACL inherit one from their next legator having one. Legators are ancestors responsible for the security permissions of their descendants.
| Method Summary | |
boolean |
addEntry(IAclEntry aclEntry)
Add ACL entry to this ACL. |
void |
addOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
Add new owner to this ACL. |
boolean |
checkPermission(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal,
IAclPermission permission)
Check whether or not the ACL grants a specific permission to a principal. |
java.util.List |
getEntries()
Get list of ACL entries. |
java.util.List |
getEntries(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
Get list of ACL entries for a given principal. |
com.sap.netweaver.bc.rf.common.security.acl.IPrincipal |
getLockingUser()
Get principal which has locked the ACL. |
java.util.List |
getOwners()
Get list of the owners of this ACL. |
IResourceHandle |
getResource()
Get resource handle this ACL is assigned to. |
boolean |
isAuthorized(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
Check whether or not the given principal is authorized to modify this ACL. |
boolean |
isLocked()
Check whether or not the ACL is locked. |
boolean |
isOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
Check whether or not the given principal is an owner of this ACL. |
boolean |
isReadOnly()
Check wether or not the ACL is read only. |
void |
lock()
Lock the ACL. |
boolean |
removeEntry(IAclEntry aclEntry)
Remove ACL entry from this ACL. |
void |
removeOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
Remove owner from the this ACL. |
void |
unlock()
Unlock the ACL. |
| Method Detail |
public IResourceHandle getResource()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public java.util.List getOwners()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public void addOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
throws AclPersistenceException,
AclNotAuthorizedException,
ResourceException
principal - principal to be added as ownerAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredResourceException - when the resource handle was invalidAclNotAuthorizedException - Exception raised in failure situation
public void removeOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
throws AclPersistenceException,
AclNotAuthorizedException,
AclLastOwnerException,
ResourceException
principal - principal to be removed as ownerAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredResourceException - when the resource handle was invalidAclNotAuthorizedException - Exception raised in failure situationAclLastOwnerException - Exception raised in failure situation
public boolean isOwner(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
throws AclPersistenceException
principal - principal to be checked for being ownerAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public boolean isAuthorized(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
throws AclPersistenceException
principal - principal to be checked for being authorizedAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public java.util.List getEntries()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public java.util.List getEntries(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal)
throws AclPersistenceException
principal - principalAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public boolean addEntry(IAclEntry aclEntry)
throws AclPersistenceException,
AclNotAuthorizedException,
AclAlreadyAssignedToAclException,
AclPermissionNotSupportedException,
ResourceException
aclEntry - ACL entryAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredResourceException - when the resource handle associated with the
ACL was invalidAclNotAuthorizedException - Exception raised in failure situationAclAlreadyAssignedToAclException - Exception raised in failure
situationAclPermissionNotSupportedException - Exception raised in failure
situation
public boolean removeEntry(IAclEntry aclEntry)
throws AclPersistenceException,
AclNotAuthorizedException,
ResourceException
aclEntry - ACL entryAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredResourceException - when the resource handle associated with the
ACL was invalidAclNotAuthorizedException - Exception raised in failure situation
public boolean checkPermission(com.sap.netweaver.bc.rf.common.security.acl.IPrincipal principal,
IAclPermission permission)
throws AclPersistenceException
principal - principal to be checkedpermission - permission to be checkedAclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public com.sap.netweaver.bc.rf.common.security.acl.IPrincipal getLockingUser()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public void lock()
throws AclPersistenceException,
AclNotAuthorizedException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredAclNotAuthorizedException - Exception raised in failure situation
public void unlock()
throws AclPersistenceException,
AclNotAuthorizedException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurredAclNotAuthorizedException - Exception raised in failure situation
public boolean isLocked()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
public boolean isReadOnly()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||