Class DefaultEffector

java.lang.Object
org.casbin.jcasbin.effect.DefaultEffector
All Implemented Interfaces:
Effector

public class DefaultEffector extends Object implements Effector
DefaultEffector is default effector for Casbin.
  • Constructor Details

    • DefaultEffector

      public DefaultEffector()
      DefaultEffector is the constructor for DefaultEffector.
  • Method Details

    • mergeEffects

      public boolean mergeEffects(String expr, Effect[] effects, float[] results)
      mergeEffects merges all matching results collected by the enforcer into a single decision.
      Specified by:
      mergeEffects in interface Effector
      Parameters:
      expr - the expression of [policy_effect].
      effects - the effects of all matched rules.
      results - the matcher results of all matched rules.
      Returns:
      the final effect.
    • newStreamEffector

      public StreamEffector newStreamEffector(String expr)
      Specified by:
      newStreamEffector in interface Effector