public interface IAcl
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(IAclEntry aclEntry)
Add ACL entry to this ACL.
|
void |
addOwner(IPrincipal principal)
Add new owner to this ACL.
|
boolean |
checkPermission(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(IPrincipal principal)
Get list of ACL entries for a given principal.
|
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(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(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(IPrincipal principal)
Remove owner from the this ACL.
|
void |
unlock()
Unlock the ACL.
|
IResourceHandle getResource() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredList getOwners() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredvoid addOwner(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 situationvoid removeOwner(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 situationboolean isOwner(IPrincipal principal) throws AclPersistenceException
principal
- principal to be checked for being ownerAclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredboolean isAuthorized(IPrincipal principal) throws AclPersistenceException
principal
- principal to be checked for being authorizedAclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredList getEntries() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredList getEntries(IPrincipal principal) throws AclPersistenceException
principal
- principalAclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredboolean 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
situationboolean 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 situationboolean checkPermission(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 occurredIPrincipal getLockingUser() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredvoid lock() throws AclPersistenceException, AclNotAuthorizedException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredAclNotAuthorizedException
- Exception raised in failure situationvoid unlock() throws AclPersistenceException, AclNotAuthorizedException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredAclNotAuthorizedException
- Exception raised in failure situationboolean isLocked() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredboolean isReadOnly() throws AclPersistenceException
AclPersistenceException
- when a problem with the storage where
the ACLs are persisted occurredAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice