Interface Effector

  • All Known Implementing Classes:
    DefaultEffector

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

      • mergeEffects

        boolean mergeEffects​(java.lang.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​(java.lang.String expr)