|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAcl
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.security.api.IPrincipal principal)
Add new owner to this ACL. |
boolean |
checkPermission(com.sap.security.api.IPrincipal principal,
IAclPermission permission)
Check whether or not the ACL grants a specific permission to a principal. |
List |
getEntries()
Get list of ACL entries. |
List |
getEntries(com.sap.security.api.IPrincipal principal)
Get list of ACL entries for a given principal. |
com.sap.security.api.IPrincipal |
getLockingUser()
Get principal which has locked the ACL. |
List |
getOwners()
Get list of the owners of this ACL. |
IResourceHandle |
getResource()
Get resource handle this ACL is assigned to. |
boolean |
isAuthorized(com.sap.security.api.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.security.api.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.security.api.IPrincipal principal)
Remove owner from the this ACL. |
void |
unlock()
Unlock the ACL. |
| Method Detail |
|---|
IResourceHandle getResource()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
List getOwners()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
void addOwner(com.sap.security.api.IPrincipal principal)
throws AclPersistenceException,
AclNotAuthorizedException,
ResourceException
principal - principal to be added as owner
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
ResourceException - when the resource handle was invalid
AclNotAuthorizedException - Exception raised in failure situation
void removeOwner(com.sap.security.api.IPrincipal principal)
throws AclPersistenceException,
AclNotAuthorizedException,
AclLastOwnerException,
ResourceException
principal - principal to be removed as owner
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
ResourceException - when the resource handle was invalid
AclNotAuthorizedException - Exception raised in failure situation
AclLastOwnerException - Exception raised in failure situation
boolean isOwner(com.sap.security.api.IPrincipal principal)
throws AclPersistenceException
principal - principal to be checked for being owner
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
boolean isAuthorized(com.sap.security.api.IPrincipal principal)
throws AclPersistenceException
principal - principal to be checked for being authorized
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
List getEntries()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
List getEntries(com.sap.security.api.IPrincipal principal)
throws AclPersistenceException
principal - principal
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
boolean addEntry(IAclEntry aclEntry)
throws AclPersistenceException,
AclNotAuthorizedException,
AclAlreadyAssignedToAclException,
AclPermissionNotSupportedException,
ResourceException
aclEntry - ACL entry
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
ResourceException - when the resource handle associated with the
ACL was invalid
AclNotAuthorizedException - Exception raised in failure situation
AclAlreadyAssignedToAclException - Exception raised in failure
situation
AclPermissionNotSupportedException - Exception raised in failure
situation
boolean removeEntry(IAclEntry aclEntry)
throws AclPersistenceException,
AclNotAuthorizedException,
ResourceException
aclEntry - ACL entry
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
ResourceException - when the resource handle associated with the
ACL was invalid
AclNotAuthorizedException - Exception raised in failure situation
boolean checkPermission(com.sap.security.api.IPrincipal principal,
IAclPermission permission)
throws AclPersistenceException
principal - principal to be checkedpermission - permission to be checked
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
com.sap.security.api.IPrincipal getLockingUser()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
void lock()
throws AclPersistenceException,
AclNotAuthorizedException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
AclNotAuthorizedException - Exception raised in failure situation
void unlock()
throws AclPersistenceException,
AclNotAuthorizedException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
AclNotAuthorizedException - Exception raised in failure situation
boolean isLocked()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred
boolean isReadOnly()
throws AclPersistenceException
AclPersistenceException - when a problem with the storage where
the ACLs are persisted occurred| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||