public class NamedRuleSelector extends Object implements RuleSelector
Modifier and Type | Field and Description |
---|---|
static String |
RULE_NAME_CFG_KEY
The route node config param consulted to determine the rule name to select
|
Constructor and Description |
---|
NamedRuleSelector() |
Modifier and Type | Method and Description |
---|---|
protected String |
getName(RouteContext context,
DocumentRouteHeaderValue routeHeader,
RouteNodeInstance nodeInstance,
String selectionCriterion,
Timestamp effectiveDate) |
List<Rule> |
selectRules(RouteContext context,
DocumentRouteHeaderValue routeHeader,
RouteNodeInstance nodeInstance,
String selectionCriterion,
Timestamp effectiveDate)
Returns a list of rules selected given the criteria specified in the arguments.
|
public static final String RULE_NAME_CFG_KEY
public NamedRuleSelector()
protected String getName(RouteContext context, DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String selectionCriterion, Timestamp effectiveDate)
public List<Rule> selectRules(RouteContext context, DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String selectionCriterion, Timestamp effectiveDate)
RuleSelector
selectRules
in interface RuleSelector
context
- the RouteContextrouteHeader
- the DocumentRouteHeaderValue of the current documentnodeInstance
- the current RouteNodeInstance being executedselectionCriterion
- an implementation-specific criterion passed in from the calling contexteffectiveDate
- an optional criterion that indicates that the rules selected should be active on the given dateCopyright © 2005–2015 The Kuali Foundation. All rights reserved.