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 Details

    • securityManager

      protected final SecurityManager securityManager
    • defaultGuard

      protected final ListGuard defaultGuard
    • delegate

      protected final ListGuard delegate
  • Constructor Details

  • Method Details