Interface AclService
- All Known Implementing Classes:
AclServiceImpl
public interface AclService
ACL service API for managing ACLs.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAcl(AccessControlList acl, String name) Create a new ACL.booleandeleteAcl(long id) Delete an ACL by its ID.getAcl(long id) Return an ACL of an organization by its ID.Return an ACL of an organization by its name.getAcls()Return all ACLs of this organization.booleanupdateAcl(ManagedAcl acl) Update an existing ACL.
-
Method Details
-
getAcls
List<ManagedAcl> 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:
trueif the ACL existed and could be deleted successfully,falseif the ACL can't be deleted because it still has active references on it.- Throws:
NotFoundException- if the managed acl could not be foundAclServiceException- if exception occurred
-