|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.api.rule.Rule.Builder
public static final class Rule.Builder
A builder which can be used to construct Rule instances. Enforces the constraints of the RuleContract.
| Method Summary | |
|---|---|
Rule |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static Rule.Builder |
create()
|
static Rule.Builder |
create(RuleContract contract)
|
String |
getDescription()
The description of the rule. |
String |
getDocTypeName()
The documentTypeName of the rule. |
org.joda.time.DateTime |
getFromDate()
The ending date of the rule. |
String |
getId()
The unique identifier for an object. |
String |
getName()
Unique Name for the Rule. |
String |
getPreviousRuleId()
Unique id for the previous version of this Rule. |
RuleExpression.Builder |
getRuleExpressionDef()
Expression for rule to evaluate. |
List<RuleExtension.Builder> |
getRuleExtensions()
List of rule extensions associated with the Rule |
List<RuleResponsibility.Builder> |
getRuleResponsibilities()
List of rule responsibilities associated with the Rule |
RuleTemplate.Builder |
getRuleTemplate()
Unique Id for Template of Rule. |
String |
getRuleTemplateName()
Template Name of the Rule. |
org.joda.time.DateTime |
getToDate()
The ending date of the rule. |
boolean |
isActive()
The active indicator for the rule. |
boolean |
isForceAction()
Shows if rule will force its action. |
void |
setActive(boolean active)
|
void |
setDescription(String description)
|
void |
setDocTypeName(String docTypeName)
|
void |
setForceAction(boolean forceAction)
|
void |
setFromDate(org.joda.time.DateTime fromDate)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setPreviousRuleId(String previousRuleId)
|
void |
setRuleExpressionDef(RuleExpression.Builder ruleExpressionDef)
|
void |
setRuleExtensions(List<RuleExtension.Builder> ruleExtensions)
|
void |
setRuleResponsibilities(List<RuleResponsibility.Builder> ruleResponsibilities)
|
void |
setRuleTemplate(RuleTemplate.Builder ruleTemplate)
|
void |
setRuleTemplateName(String ruleTemplateName)
|
void |
setToDate(org.joda.time.DateTime toDate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Rule.Builder create()
public static Rule.Builder create(RuleContract contract)
public Rule build()
ModelBuilder
build in interface ModelBuilderpublic String getId()
Identifiable
getId in interface Identifiablepublic String getName()
RuleContractThis is the unique name of the Rule
getName in interface RuleContractpublic RuleTemplate.Builder getRuleTemplate()
RuleContractThis is the unique Id of the rule template of the rule
getRuleTemplate in interface RuleContractpublic boolean isActive()
RuleContract
isActive in interface RuleContractpublic String getDescription()
RuleContract
getDescription in interface RuleContractpublic String getDocTypeName()
RuleContract
getDocTypeName in interface RuleContractpublic org.joda.time.DateTime getFromDate()
RuleContractThis is the date from which the rule stops being be used
getFromDate in interface RuleContractpublic org.joda.time.DateTime getToDate()
RuleContractThis is the date from which the rule starts to be used
getToDate in interface RuleContractpublic boolean isForceAction()
RuleContract
isForceAction in interface RuleContractpublic String getPreviousRuleId()
RuleContractThis is the unique id value of the previous version of this Rule.
getPreviousRuleId in interface RuleContractpublic List<RuleResponsibility.Builder> getRuleResponsibilities()
RuleContract
getRuleResponsibilities in interface RuleContractpublic List<RuleExtension.Builder> getRuleExtensions()
RuleContract
getRuleExtensions in interface RuleContractpublic String getRuleTemplateName()
RuleContractThis is the name of the rule template for the rule
getRuleTemplateName in interface RuleContractpublic RuleExpression.Builder getRuleExpressionDef()
RuleContractThis is expression definition of the rule
getRuleExpressionDef in interface RuleContractpublic void setId(String id)
public void setName(String name)
public void setRuleTemplate(RuleTemplate.Builder ruleTemplate)
public void setActive(boolean active)
public void setDescription(String description)
public void setDocTypeName(String docTypeName)
public void setFromDate(org.joda.time.DateTime fromDate)
public void setToDate(org.joda.time.DateTime toDate)
public void setForceAction(boolean forceAction)
public void setPreviousRuleId(String previousRuleId)
public void setRuleResponsibilities(List<RuleResponsibility.Builder> ruleResponsibilities)
public void setRuleExtensions(List<RuleExtension.Builder> ruleExtensions)
public void setRuleTemplateName(String ruleTemplateName)
public void setRuleExpressionDef(RuleExpression.Builder ruleExpressionDef)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||