|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Definition of an Access Control List object
This interface defines an Access Control List object (ACL object). It can contain zero or more ACE's which specify the principals and the permissions.
| Method Summary | |
boolean |
addOwner(IPrincipal caller,
IPrincipal principal)
This method adds a new ACL owner to current ACL object. |
boolean |
changeObjectID(IPrincipal caller,
java.lang.String objectID)
This method changes the object ID for the current ACL. |
void |
commit()
Commits any changes made to this ACL (i.e. |
IAclEntry |
createAclEntry(IPrincipal caller,
IPrincipal principal,
java.lang.String permission,
boolean isInherited)
This method creates a new ACE object to current ACL. |
java.util.List |
getAclEntries()
This method returns a List of ACE objects which are assigned to the current ACL object. |
java.util.List |
getAclEntries(IPrincipal principal)
This method returns a List of ACE objects which are assigned to the current ACL object concerning a specific user (principal). |
java.lang.String |
getObjectId()
This methode returns the ID of the object which is assigned to current ACL object. |
java.util.List |
getOwners()
This method returns a list of ACL owners. |
boolean |
hasPermission(IPrincipal principal,
java.lang.String permission)
This method checks if an user (principal) is authorized for a specific permission. |
boolean |
isAllowed(IPrincipal principal,
java.lang.String permission)
This method checks if an user (principal) is authorised for a specific permission. |
boolean |
isOwner(IPrincipal principal)
This method checks, if an user (principal) is an ACL owner. |
IAcl |
prepare()
Prepares this ACL for update. |
boolean |
removeAclEntry(IPrincipal caller,
IAclEntry aclEntry)
This method removes an existing ACE object from the current ACL object. |
boolean |
removeOwner(IPrincipal caller,
IPrincipal principal)
This method removes an ACL owner from current ACL object. |
void |
resetAcl(IPrincipal caller)
This method removes all existing ACE objects from the current ACL object except the ACE's with the owner permission, but does not delete the ACL. |
| Method Detail |
public boolean addOwner(IPrincipal caller,
IPrincipal principal)
throws UMException
caller - a current ACL owner.principal - new ACL owner (principal, for example user).UMException - if the data cannot be added.
public boolean removeOwner(IPrincipal caller,
IPrincipal principal)
throws UMException
caller - an ACL owner.principal - another ACL owner (principal, for example user)UMException - if the data cannot be removed.
public boolean isOwner(IPrincipal principal)
throws UMException
principal - the checked user (principal).UMException - if the data cannot be read.
public java.util.List getOwners()
throws UMException
UMException - if the data cannot be read.
public IAclEntry createAclEntry(IPrincipal caller,
IPrincipal principal,
java.lang.String permission,
boolean isInherited)
throws UMException
caller - an ACL owner.principal - principal for ACEpermission - permission for the ACE
qparam isInherited if the ACE is inheritedUMException - if the data cannot be created.
public boolean removeAclEntry(IPrincipal caller,
IAclEntry aclEntry)
throws UMException
caller - an ACL owner.aclEntry - an ACE object.UMException - if the data cannot be removed.
public void resetAcl(IPrincipal caller)
throws UMException
caller - an ACL owner.UMException - if the data cannot be reseted.
public java.util.List getAclEntries()
throws UMException
UMException - if the data cannot be read.
public java.util.List getAclEntries(IPrincipal principal)
throws UMException
principal - user (principal).UMException - if the data cannot be read.
public boolean isAllowed(IPrincipal principal,
java.lang.String permission)
throws UMException
principal - user (principal).permission - checked permission.UMException - if the data cannot be read.
public boolean hasPermission(IPrincipal principal,
java.lang.String permission)
throws UMException
principal - user or grouppermission - checked permissionUMException - if the data cannot be read.
public java.lang.String getObjectId()
throws UMException
UMException - if the data cannot be read.
public boolean changeObjectID(IPrincipal caller,
java.lang.String objectID)
throws UMException
UMException - if the data cannot be changed.
public IAcl prepare()
throws UMException
UMException - if the data cannot be prepared.
public void commit()
throws UMException
UMException - if the data cannot be commited.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||