@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()
RuleDefinitionContract
Each Rule has exactly one Proposition associated with it.
getProposition
in interface RuleDefinitionContract
public void setProposition(PropositionBo proposition)
public void setTypeId(String typeId)
typeId
- public Map<String,String> getAttributes()
RuleDefinitionContract
getAttributes
in interface RuleDefinitionContract
public 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()
Identifiable
getId
in interface Identifiable
public String getNamespace()
RuleDefinitionContract
The namespace of the Rule
getNamespace
in interface RuleDefinitionContract
public void setNamespace(String namespace)
public String getDescription()
RuleDefinitionContract
description - the description of the Rule
getDescription
in interface RuleDefinitionContract
public void setDescription(String description)
public String getName()
RuleDefinitionContract
name - the name of the Rule
getName
in interface RuleDefinitionContract
public String getTypeId()
RuleDefinitionContract
getTypeId
in interface RuleDefinitionContract
public String getPropId()
RuleDefinitionContract
Each Rule has exactly one Proposition associated with it.
getPropId
in interface RuleDefinitionContract
public boolean getActive()
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public List<ActionBo> getActions()
RuleDefinitionContract
A Rule may have zero or more Actions associated with it.
getActions
in interface RuleDefinitionContract
public 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–2016 The Kuali Foundation. All rights reserved.