Class RuleValidationContext.Builder
java.lang.Object
org.kuali.rice.kew.api.validation.RuleValidationContext.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,RuleValidationContextContract
- Enclosing class:
- RuleValidationContext
public static final class RuleValidationContext.Builder
extends Object
implements Serializable, ModelBuilder, RuleValidationContextContract
A builder which can be used to construct
RuleValidationContext instances. Enforces the constraints of the RuleValidationContextContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()create(RuleContract rule) create(RuleContract rule, RuleDelegationContract ruleDelegation, String ruleAuthorPrincipalId) Construct a RuleValidationContext under which to validate a rule.create(RuleValidationContextContract contract) getRule()Retrieve the rule which is being validated.Retrieve the principal of the rule author.Retrieve the RuleDelegation representing the parent of the rule being validated.voidsetRule(Rule.Builder rule) voidsetRuleAuthorPrincipalId(String ruleAuthorPrincipalId) voidsetRuleDelegation(RuleDelegation.Builder ruleDelegation)
-
Method Details
-
create
-
create
-
create
public static RuleValidationContext.Builder create(RuleContract rule, RuleDelegationContract ruleDelegation, String ruleAuthorPrincipalId) Construct a RuleValidationContext under which to validate a rule. The rule must be non-null, the delegation and author can benullgiven the circumstances defined in the description of this class. -
build
- Specified by:
buildin interfaceModelBuilder
-
getRule
Description copied from interface:RuleValidationContextContractRetrieve the rule which is being validated.- Specified by:
getRulein interfaceRuleValidationContextContract
-
getRuleDelegation
Description copied from interface:RuleValidationContextContractRetrieve the RuleDelegation representing the parent of the rule being validated. If the rule is not a delegation rule, then this will return null;- Specified by:
getRuleDelegationin interfaceRuleValidationContextContract
-
getRuleAuthorPrincipalId
Description copied from interface:RuleValidationContextContractRetrieve the principal of the rule author. May be null in the case of an XML rule import.- Specified by:
getRuleAuthorPrincipalIdin interfaceRuleValidationContextContract
-
setRule
-
setRuleDelegation
-
setRuleAuthorPrincipalId
-