Class DefaultEffector
java.lang.Object
org.casbin.jcasbin.effect.DefaultEffector
- All Implemented Interfaces:
Effector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmergeEffects(String expr, Effect[] effects, float[] results) mergeEffects merges all matching results collected by the enforcer into a single decision.newStreamEffector(String expr)
-
Constructor Details
-
DefaultEffector
public DefaultEffector()DefaultEffector is the constructor for DefaultEffector.
-
-
Method Details
-
mergeEffects
mergeEffects merges all matching results collected by the enforcer into a single decision.- Specified by:
mergeEffectsin interfaceEffector- 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
- Specified by:
newStreamEffectorin interfaceEffector
-