public abstract class AbstractAclHandler<E extends de.terrestris.shogun2.model.PersistentObject> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AclUtil |
aclUtil
The ACL util to add or delete ACL permissions.
|
protected de.terrestris.shogun2.model.User |
loggedInUser
The logged in user, who saved, updated or deleted the
object. |
protected E |
object
The object that has been saved, updated or deleted and whose ACL entries
have to be updated.
|
| Constructor and Description |
|---|
AbstractAclHandler(E object,
AclUtil aclUtil)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createAclEntries()
A user that has created a object, will always get READ, WRITE and DELETE
permissions on that object.
|
void |
deleteAclEntries()
When a user deleted an object, we will always delete the READ, WRITE and
DELETE permissions on that object.
|
abstract void |
updateAclEntries()
Abstract method, that has to be implemented in subclasses.
|
protected E extends de.terrestris.shogun2.model.PersistentObject object
protected de.terrestris.shogun2.model.User loggedInUser
object.protected AclUtil aclUtil
public void createAclEntries()
public void deleteAclEntries()
AclUtil.deletePermission(PersistentObject, User, org.springframework.security.acls.model.Permission)
will first check if such a permission exists.
This can be overwritten in a subclass.public abstract void updateAclEntries()
Copyright © 2016 terrestris GmbH & Co. KG. All rights reserved.