|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An IResourceAcl is a wrapper for an IAcl which uses an URI as object ID for the IAcl and the user in resource context as 'callers' in the IAcl methods - IResourceAcls are assigned to resources - IResourceAcls hold IResourceAclEntries Abbreviations ACL Access Control List ACE Access Control List Entry
| Method Summary | |
boolean |
addEntry(IResourceAclEntry aclEntry)
add an ACE to the ACL |
boolean |
addOwner(com.sapportals.wcm.repository.security.IUMPrincipal owner)
add a new owner to the ACL (only owners are allowed to change the ACL) |
boolean |
checkPermission(com.sapportals.wcm.repository.security.IUMPrincipal principal,
IAclPermission permission)
check whether the ACL grants a specific permission to a user |
IResourceAclEntryList |
getEntries()
get a list of the ACEs of the ACL |
IResourceAclEntryList |
getEntries(com.sapportals.wcm.repository.security.IUMPrincipal principal)
get a list of the ACEs of the ACL concerning a specific principal |
com.sapportals.wcm.repository.security.IUMPrincipal |
getLockingUser()
get the user which locked the ACL |
IUMPrincipalList |
getOwners()
get a list of the owners of the ACL |
IResource |
getResource()
get the resource the ACL is assigned to |
boolean |
isAuthorized(com.sapportals.wcm.repository.security.IUMPrincipal principal)
check whether a principal is authorized to change the ACL |
boolean |
isLocked()
check whether the ACL is locked |
boolean |
isOwner(com.sapportals.wcm.repository.security.IUMPrincipal principal)
check whether a principal is an owner of the ACL |
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(com.sapportals.wcm.repository.security.IUMPrincipal owner)
remove an owner from the ACL (only owners are allowed to change the ACL) |
void |
unlock()
unlock the ACL |
| Method Detail |
public boolean addOwner(com.sapportals.wcm.repository.security.IUMPrincipal 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 situation
public boolean removeOwner(com.sapportals.wcm.repository.security.IUMPrincipal 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 situation
public boolean isOwner(com.sapportals.wcm.repository.security.IUMPrincipal principal)
throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean isAuthorized(com.sapportals.wcm.repository.security.IUMPrincipal principal)
throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public IUMPrincipalList getOwners()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean 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 situation
public boolean 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 situation
public IResourceAclEntryList getEntries()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public IResourceAclEntryList getEntries(com.sapportals.wcm.repository.security.IUMPrincipal principal)
throws AclPersistenceException
principal - the principalAclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean checkPermission(com.sapportals.wcm.repository.security.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 isReadOnly()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public IResource getResource()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public boolean 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 ACL
public boolean isLocked()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public com.sapportals.wcm.repository.security.IUMPrincipal getLockingUser()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
public void 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 ACL
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 | |||||||||