Interface AclDb
- All Known Implementing Classes:
JpaAclDb
public interface AclDb
The ACL DB stores ACLs on a per organization basis.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAcl(Organization org, AccessControlList acl, String name) Create a new ACL.booleandeleteAcl(Organization org, long id) Delete an ACL by its ID.getAcl(Organization org, long id) Return an ACL of an organization by its ID.getAcl(Organization org, String name) Return an ACL of an organization by its name.getAcls(Organization org) Return all ACLs of this organization.booleanupdateAcl(ManagedAcl acl) Update an existing ACL.
-
Method Details
-
getAcls
Return all ACLs of this organization. -
getAcl
Return an ACL of an organization by its ID.- Returns:
someif the ACL could be found,noneif the ACL with the given ID does not exist.
-
getAcl
Return an ACL of an organization by its name.- Returns:
someif the ACL could be found,noneif the ACL with the given name does not exist.
-
updateAcl
Update an existing ACL.- Returns:
- true on a successful update, false if no ACL exists with the given ID.
-
createAcl
Create a new ACL.- Returns:
someif the new ACL could be created successfully,noneif an ACL with the same name already exists
-
deleteAcl
Delete an ACL by its ID.- Returns:
- true if the ACL existed and could be deleted successfully, false if there is no such ACL.
-