Class AbstractEntityDocsGuardFactory.AbstractEntityDocsGuard
java.lang.Object
ch.tocco.nice2.security.api.AbstractListGuard
ch.tocco.nice2.dms.impl.security.guard.AbstractEntityDocsGuardFactory.AbstractEntityDocsGuard
- All Implemented Interfaces:
ListGuard
- Enclosing class:
AbstractEntityDocsGuardFactory
protected abstract static class AbstractEntityDocsGuardFactory.AbstractEntityDocsGuard
extends AbstractListGuard
A base class for custom entity document guards.
It provides a method to evaluate permissions:
- At first the evaluation is delegated to the guard of the related entity
- If the result is NO_RULE, the rules of the dms/entity.acl file are queried using the
DefaultListGuard
,
as it is possible to grant additional write or delete permissions using 'Node_right' entities.
However additional permissions are only granted if the related entity is at least readable.-
Field Summary
Modifier and TypeFieldDescriptionprotected final ListGuard
protected final ListGuard
protected final SecurityManager
-
Constructor Summary
ConstructorDescriptionAbstractEntityDocsGuard
(ListGuard delegate, ListGuard defaultGuard, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Guard.Decision[]
evaluateEntityDocumentPermission
(Permission permission) Methods inherited from class ch.tocco.nice2.security.api.AbstractListGuard
checkPermission
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.security.api.ListGuard
evaluatePermissions, getSecured, toGuard
-
Field Details
-
securityManager
-
defaultGuard
-
delegate
-
-
Constructor Details
-
AbstractEntityDocsGuard
public AbstractEntityDocsGuard(ListGuard delegate, ListGuard defaultGuard, SecurityManager securityManager)
-
-
Method Details
-
evaluateEntityDocumentPermission
-
getPrincipal
-
getSecurityContext
-