|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.impl.repository.RuleBo
@Entity public class RuleBo
Field Summary | |
---|---|
static String |
RULE_SEQ_NAME
|
Constructor Summary | |
---|---|
RuleBo()
|
Method Summary | |
---|---|
static List<ActionAttributeBo> |
copyActionAttributes(ActionBo existing)
|
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,
String ruleId)
|
static List<RuleAttributeBo> |
copyRuleAttributes(RuleBo existing)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RULE_SEQ_NAME
Constructor Detail |
---|
public RuleBo()
Method Detail |
---|
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 object
public static RuleBo from(RuleDefinition im)
im
- immutable object
public static RuleBo copyRule(RuleBo existing)
public RuleBo copyRule(String newRuleName)
newRuleName
- name of the copied rule
public static List<RuleAttributeBo> copyRuleAttributes(RuleBo existing)
public static List<ActionAttributeBo> copyActionAttributes(ActionBo existing)
public static List<ActionBo> copyRuleActions(RuleBo existing, String ruleId)
public String getId()
Identifiable
getId
in interface Identifiable
public void setId(String id)
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 void setName(String name)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |