Class AclServiceImpl
java.lang.Object
org.opencastproject.authorization.xacml.manager.impl.AclServiceImpl
- All Implemented Interfaces:
AclService
Organization bound impl.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAclServiceImpl(Organization organization, AclDb aclDb, ElasticsearchIndex index, SecurityService securityService) -
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.
-
Field Details
-
index
The Elasticsearch indices
-
-
Constructor Details
-
AclServiceImpl
public AclServiceImpl(Organization organization, AclDb aclDb, ElasticsearchIndex index, SecurityService securityService)
-
-
Method Details
-
getAcls
Description copied from interface:AclServiceReturn all ACLs of this organization.- Specified by:
getAclsin interfaceAclService
-
getAcl
Description copied from interface:AclServiceReturn an ACL of an organization by its ID.- Specified by:
getAclin interfaceAclService- Returns:
someif the ACL could be found,noneif the ACL with the given ID does not exist.
-
getAcl
Description copied from interface:AclServiceReturn an ACL of an organization by its name.- Specified by:
getAclin interfaceAclService- Returns:
someif the ACL could be found,noneif the ACL with the given name does not exist.
-
updateAcl
Description copied from interface:AclServiceUpdate an existing ACL.- Specified by:
updateAclin interfaceAclService- Returns:
- true on a successful update, false if no ACL exists with the given ID.
-
createAcl
Description copied from interface:AclServiceCreate a new ACL.- Specified by:
createAclin interfaceAclService- Returns:
someif the new ACL could be created successfully,noneif an ACL with the same name already exists
-
deleteAcl
Description copied from interface:AclServiceDelete an ACL by its ID.- Specified by:
deleteAclin interfaceAclService- 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:
AclServiceException- if exception occurredNotFoundException- if the managed acl could not be found
-