Interface Effector

All Known Implementing Classes:
DefaultEffector

public interface Effector
Effector is the interface for Casbin effectors.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mergeEffects(String expr, Effect[] effects, float[] results)
    Deprecated.
    use newStreamEffector instead of this.
     
  • Method Details

    • mergeEffects

      boolean mergeEffects(String expr, Effect[] effects, float[] results)
      Deprecated.
      use newStreamEffector instead of this.
      mergeEffects merges all matching results collected by the enforcer into a single decision.
      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

      default StreamEffector newStreamEffector(String expr)