@Entity public class RuleBo extends Object implements RuleDefinitionContract, Versioned, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_SEQ_NAME |
| Constructor and Description |
|---|
RuleBo() |
| Modifier and Type | Method and Description |
|---|---|
static List<ActionAttributeBo> |
copyActionAttributes(ActionBo existing,
ActionBo newAction) |
static RuleBo |
copyRule(RuleBo existing) |
RuleBo |
copyRule(String newRuleName)
Returns a new copy of this rule with new ids.
|
static List<ActionBo> |
copyRuleActions(RuleBo existing,
RuleBo newRule) |
static List<RuleAttributeBo> |
copyRuleAttributes(RuleBo existing,
RuleBo newRule) |
static RuleBo |
from(RuleDefinition im)
Converts a immutable object to it's mutable bo counterpart
|
List<ActionBo> |
getActions()
This method returns a list of Actions associated with the Rule.
|
boolean |
getActive() |
List<RuleAttributeBo> |
getAttributeBos() |
Map<String,String> |
getAttributes()
This method returns a Map of attributes associated with the
Rule.
|
String |
getDescription()
This is the description of the Rule
|
String |
getId()
The unique identifier for an object.
|
String |
getName()
This is the name of the Rule
|
String |
getNamespace()
This is the namespace of the Rule
|
String |
getPropId()
This method returns the ID of the Proposition associated with the rule.
|
PropositionBo |
getProposition()
This method returns the Proposition associated with the rule.
|
String |
getPropositionSummary() |
Tree |
getPropositionTree()
This method is used by the RuleEditor to display the proposition in tree form.
|
String |
getSelectedPropositionId() |
String |
getTypeId()
This is the KrmsType of the Rule
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
Tree |
refreshPropositionTree(Boolean editMode) |
void |
setActions(List<ActionBo> actions) |
void |
setActive(boolean active) |
void |
setAttributeBos(List<RuleAttributeBo> attributeBos) |
void |
setAttributes(Map<String,String> attributes) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setName(String name) |
void |
setNamespace(String namespace) |
void |
setProposition(PropositionBo proposition) |
void |
setPropositionSummary(String propositionSummary) |
void |
setPropositionTree(Tree<RuleTreeNode,String> tree) |
void |
setSelectedPropositionId(String selectedPropositionId) |
void |
setTypeId(String typeId)
set the typeId.
|
void |
setVersionNumber(Long versionNumber) |
static RuleDefinition |
to(RuleBo bo)
Converts a mutable bo to it's immutable counterpart
|
public static final String RULE_SEQ_NAME
public RuleBo()
public PropositionBo getProposition()
RuleDefinitionContractEach Rule has exactly one Proposition associated with it.
getProposition in interface RuleDefinitionContractpublic void setProposition(PropositionBo proposition)
public void setTypeId(String typeId)
typeId - public Map<String,String> getAttributes()
RuleDefinitionContractgetAttributes in interface RuleDefinitionContractpublic void setAttributes(Map<String,String> attributes)
public String getPropositionSummary()
public Tree getPropositionTree()
public void setPropositionTree(Tree<RuleTreeNode,String> tree)
public Tree refreshPropositionTree(Boolean editMode)
public static RuleDefinition to(RuleBo bo)
bo - the mutable business objectpublic static RuleBo from(RuleDefinition im)
im - immutable objectpublic RuleBo copyRule(String newRuleName)
newRuleName - name of the copied rulepublic static List<RuleAttributeBo> copyRuleAttributes(RuleBo existing, RuleBo newRule)
public static List<ActionAttributeBo> copyActionAttributes(ActionBo existing, ActionBo newAction)
public static List<ActionBo> copyRuleActions(RuleBo existing, RuleBo newRule)
public String getId()
IdentifiablegetId in interface Identifiablepublic String getNamespace()
RuleDefinitionContractThe namespace of the Rule
getNamespace in interface RuleDefinitionContractpublic void setNamespace(String namespace)
public String getDescription()
RuleDefinitionContractdescription - the description of the Rule
getDescription in interface RuleDefinitionContractpublic void setDescription(String description)
public String getName()
RuleDefinitionContractname - the name of the Rule
getName in interface RuleDefinitionContractpublic String getTypeId()
RuleDefinitionContractgetTypeId in interface RuleDefinitionContractpublic String getPropId()
RuleDefinitionContractEach Rule has exactly one Proposition associated with it.
getPropId in interface RuleDefinitionContractpublic boolean getActive()
public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public List<ActionBo> getActions()
RuleDefinitionContractA Rule may have zero or more Actions associated with it.
getActions in interface RuleDefinitionContractpublic void setActions(List<ActionBo> actions)
public List<RuleAttributeBo> getAttributeBos()
public void setAttributeBos(List<RuleAttributeBo> attributeBos)
public void setPropositionSummary(String propositionSummary)
public String getSelectedPropositionId()
public void setSelectedPropositionId(String selectedPropositionId)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.