Class DNF

java.lang.Object
com.groiss.accesscontrol.DNF

public class DNF extends Object
Disjunctive normal form. A disjunction of conjunctions.
  • Field Details

    • root

      protected List<List<PermissionQuery>> root
    • contextObject

      protected Persistent contextObject
      The context object defines an object where the permission is dependent on. For example, the process instance for process documents. If the process agent changes, the cache can be informed and invalidated.
  • Constructor Details

    • DNF

      public DNF(boolean value)
      dnf with a given value
    • DNF

      public DNF(boolean value, Persistent ctx)
      dnf with a given value / context-object
    • DNF

      public DNF(List<List<PermissionQuery>> root)
  • Method Details

    • setValue

      public DNF setValue(boolean value)
    • getRoot

      public List<List<PermissionQuery>> getRoot()
    • getContextObject

      public Persistent getContextObject()
    • setContextObject

      public void setContextObject(Persistent contextObject)
    • merge

      public void merge(DNF dnf2, int disj, int conj)
      merge the dnf2 into dnf on the given position
    • toString

      public String toString()
      Overrides:
      toString in class Object