public interface IResourceAcl
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(IResourceAclEntry aclEntry)
add an ACE to the ACL
|
boolean |
addOwner(IPrincipal owner)
add a new owner to the ACL (only owners are allowed to change the ACL)
|
boolean |
addOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
Deprecated.
As of NetWeaver 7.1, replaced by
addOwner(com.sap.security.api.IPrincipal) |
boolean |
checkPermission(IPrincipal principal,
IAclPermission permission)
check whether the ACL grants a specific permission to a user
|
boolean |
checkPermission(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission permission)
Deprecated.
As of NetWeaver 7.1, replaced by
checkPermission(com.sap.security.api.IPrincipal,IAclPermission) |
IResourceAclEntryList |
getEntries()
get a list of the ACEs of the ACL
|
IResourceAclEntryList |
getEntries(IPrincipal principal)
get a list of the ACEs of the ACL concerning a specific principal
|
IResourceAclEntryList |
getEntries(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Deprecated.
As of NetWeaver 7.1, replaced by
getEntries(com.sap.security.api.IPrincipal) |
com.sapportals.portal.security.usermanagement.IUMPrincipal |
getLockingUser()
Deprecated.
As of NetWeaver 7.1, replaced by
getLockingUserUME() |
IPrincipal |
getLockingUserUME()
get the user which locked the ACL
|
IUMPrincipalList |
getOwners()
Deprecated.
As of NetWeaver 7.1, replaced by
getOwnersUME() |
List |
getOwnersUME()
get a list of the owners of the ACL
|
IResource |
getResource()
get the resource the ACL is assigned to
|
boolean |
isAuthorized(IPrincipal principal)
check whether a principal is authorized to change the ACL
|
boolean |
isAuthorized(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Deprecated.
As of NetWeaver 7.1, replaced by
isAuthorized(com.sap.security.api.IPrincipal) |
boolean |
isLocked()
check whether the ACL is locked
|
boolean |
isOwner(IPrincipal principal)
check whether a principal is an owner of the ACL
|
boolean |
isOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Deprecated.
As of NetWeaver 7.1, replaced by
isOwner(com.sap.security.api.IPrincipal) |
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()
lock the ACL (the lock is cooperative and affects only the result of
subsequent calls to lock() or isLocked())
|
boolean |
removeEntry(IResourceAclEntry aclEntry)
remove an ACE from the ACL
|
boolean |
removeOwner(IPrincipal owner)
remove an owner from the ACL (only owners are allowed to change the ACL)
|
boolean |
removeOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
Deprecated.
As of NetWeaver 7.1, replaced by
removeOwner(com.sap.security.api.IPrincipal) |
void |
unlock()
unlock the ACL
|
boolean addOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
throws AclPersistenceException,
NotAuthorizedException,
ResourceException
addOwner(com.sap.security.api.IPrincipal)owner - the new ownerAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
an owner of the ACL (only owners are allowed to change the owner list)ResourceException - Exception raised in failure situationboolean addOwner(IPrincipal owner) throws AclPersistenceException, NotAuthorizedException, ResourceException
owner - the new ownerAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
an owner of the ACL (only owners are allowed to change the owner list)ResourceException - Exception raised in failure situationboolean removeOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
throws AclPersistenceException,
NotAuthorizedException,
LastOwnerException,
ResourceException
removeOwner(com.sap.security.api.IPrincipal)owner - the owner to be removedAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
an owner of the ACL (only owners are allowed to change the owner list)LastOwnerException - attempt to remove the last owner (which is
forbidden)ResourceException - Exception raised in failure situationboolean removeOwner(IPrincipal owner) throws AclPersistenceException, NotAuthorizedException, LastOwnerException, ResourceException
owner - the owner to be removedAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
an owner of the ACL (only owners are allowed to change the owner list)LastOwnerException - attempt to remove the last owner (which is
forbidden)ResourceException - Exception raised in failure situationboolean isOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
throws AclPersistenceException
isOwner(com.sap.security.api.IPrincipal)principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean isOwner(IPrincipal principal) throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean isAuthorized(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
throws AclPersistenceException
isAuthorized(com.sap.security.api.IPrincipal)principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean isAuthorized(IPrincipal principal) throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredIUMPrincipalList getOwners() throws AclPersistenceException
getOwnersUME()AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredList getOwnersUME() throws AclPersistenceException
java.util.List containing objects of type com.sap.security.api.IPrincipal
representing the owners of the ACLAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean addEntry(IResourceAclEntry aclEntry) throws AclPersistenceException, InvalidClassException, NotAuthorizedException, AlreadyAssignedToAclException, PermissionNotSupportedException, ResourceException
aclEntry - the ACEAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredInvalidClassException - the ACE was created by a foreign
IResourceAclManagerNotAuthorizedException - the user in the resource context is not
an owner of the ACLAlreadyAssignedToAclException - the ACE is already assigned to
another ACLPermissionNotSupportedException - the permission of the ACE is not
supported for the object type of the ACL's resourceResourceException - Exception raised in failure situationboolean removeEntry(IResourceAclEntry aclEntry) throws AclPersistenceException, InvalidClassException, NotAuthorizedException, ResourceException
aclEntry - the ACEAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredInvalidClassException - the ACE was created by a foreign
IResourceAclManagerNotAuthorizedException - the user in the resource context is not
an owner of the ACLResourceException - Exception raised in failure situationIResourceAclEntryList getEntries() throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredIResourceAclEntryList getEntries(com.sapportals.portal.security.usermanagement.IUMPrincipal principal) throws AclPersistenceException
getEntries(com.sap.security.api.IPrincipal)principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredIResourceAclEntryList getEntries(IPrincipal principal) throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean checkPermission(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission permission)
throws AclPersistenceException
checkPermission(com.sap.security.api.IPrincipal,IAclPermission)permission - the permissionprincipal - TBD: Description of the incoming method parameterAclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean checkPermission(IPrincipal 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 occurredboolean isReadOnly()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredIResource getResource() throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredboolean lock()
throws AclPersistenceException,
NotAuthorizedException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
an owner of the ACLboolean isLocked()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredcom.sapportals.portal.security.usermanagement.IUMPrincipal getLockingUser()
throws AclPersistenceException
getLockingUserUME()AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredIPrincipal getLockingUserUME() throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredvoid unlock()
throws AclPersistenceException,
NotAuthorizedException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurredNotAuthorizedException - the user in the resource context is not
the user which locked the ACLboolean isUpToDate()
throws AclPersistenceException
AclPersistenceException - Exception raised in failure situation| Access 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 2017 SAP AG Complete Copyright Notice