Package org.casbin.jcasbin.effect
Interface Effector
- All Known Implementing Classes:
DefaultEffector
public interface Effector
Effector is the interface for Casbin effectors.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
mergeEffects
(String expr, Effect[] effects, float[] results) Deprecated.use newStreamEffector instead of this.default StreamEffector
newStreamEffector
(String expr)
-
Method Details
-
mergeEffects
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
-