org.wso2.balana.combine
Class RuleCombiningAlgorithm
java.lang.Object
org.wso2.balana.combine.CombiningAlgorithm
org.wso2.balana.combine.RuleCombiningAlgorithm
- Direct Known Subclasses:
- DenyOverridesRuleAlg, DenyOverridesRuleAlg, DenyUnlessPermitRuleAlg, FirstApplicableRuleAlg, PermitOverridesRuleAlg, PermitOverridesRuleAlg, PermitUnlessDenyRuleAlg
public abstract class RuleCombiningAlgorithm
- extends CombiningAlgorithm
The base type for all Rule combining algorithms.
- Since:
- 1.0
- Author:
- Seth Proctor, Marco Barreno
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleCombiningAlgorithm
public RuleCombiningAlgorithm(URI identifier)
- Constructor that takes the algorithm's identifier.
- Parameters:
identifier
- the algorithm's identifier
combine
public abstract AbstractResult combine(EvaluationCtx context,
List parameters,
List ruleElements)
- Combines the rules based on the context to produce some unified result. This is the one
function of a combining algorithm.
- Specified by:
combine
in class CombiningAlgorithm
- Parameters:
context
- the representation of the requestparameters
- a (possibly empty) non-null List
of
CombinerParametersruleElements
- a List
of CombinerElements
- Returns:
- a single unified result based on the combining logic
Copyright © 2015 WSO2. All rights reserved.