Class RuleBo
java.lang.Object
org.kuali.rice.krms.impl.repository.RuleBo
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
@Entity
public class RuleBo
extends Object
implements org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract, org.kuali.rice.core.api.mo.common.Versioned, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ActionAttributeBo> copyActionAttributes(ActionBo existing, ActionBo newAction) Returns a new copy of this rule with new ids.static RuleBocopyRuleActions(RuleBo existing, RuleBo newRule) static List<RuleAttributeBo> copyRuleAttributes(RuleBo existing, RuleBo newRule) static RuleBofrom(org.kuali.rice.krms.api.repository.rule.RuleDefinition im) Converts a immutable object to it's mutable bo counterpartbooleangetId()getName()org.kuali.rice.core.api.util.tree.TreeThis method is used by the RuleEditor to display the proposition in tree form.booleanisActive()org.kuali.rice.core.api.util.tree.TreerefreshPropositionTree(Boolean editMode) voidsetActions(List<ActionBo> actions) voidsetActive(boolean active) voidsetAttributeBos(List<RuleAttributeBo> attributeBos) voidsetAttributes(Map<String, String> attributes) voidsetDescription(String description) voidvoidvoidsetNamespace(String namespace) voidsetProposition(PropositionBo proposition) voidsetPropositionSummary(String propositionSummary) voidsetPropositionTree(org.kuali.rice.core.api.util.tree.Tree<RuleTreeNode, String> tree) voidsetSelectedPropositionId(String selectedPropositionId) voidset the typeId.voidsetVersionNumber(Long versionNumber) static org.kuali.rice.krms.api.repository.rule.RuleDefinitionConverts a mutable bo to it's immutable counterpart
-
Field Details
-
RULE_SEQ_NAME
- See Also:
-
-
Constructor Details
-
RuleBo
public RuleBo()
-
-
Method Details
-
getProposition
- Specified by:
getPropositionin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setProposition
-
setTypeId
set the typeId. If the parameter is blank, then this RuleBo's typeId will be set to null- Parameters:
typeId-
-
getAttributes
- Specified by:
getAttributesin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setAttributes
-
getPropositionSummary
-
getPropositionTree
public org.kuali.rice.core.api.util.tree.Tree getPropositionTree()This method is used by the RuleEditor to display the proposition in tree form.- Returns:
- Tree representing a rule proposition.
-
setPropositionTree
-
refreshPropositionTree
-
to
Converts a mutable bo to it's immutable counterpart- Parameters:
bo- the mutable business object- Returns:
- the immutable object
-
from
Converts a immutable object to it's mutable bo counterpart- Parameters:
im- immutable object- Returns:
- the mutable bo
-
copyRule
-
copyRule
Returns a new copy of this rule with new ids.- Parameters:
newRuleName- name of the copied rule- Returns:
- RuleBo a copy of the this rule, with new ids, and the given name
-
copyRuleAttributes
-
copyActionAttributes
-
copyRuleActions
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
setId
-
getNamespace
- Specified by:
getNamespacein interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setNamespace
-
getDescription
- Specified by:
getDescriptionin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setDescription
-
getName
- Specified by:
getNamein interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setName
-
getTypeId
- Specified by:
getTypeIdin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
getPropId
- Specified by:
getPropIdin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
getActive
public boolean getActive() -
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setVersionNumber
-
getActions
- Specified by:
getActionsin interfaceorg.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
-
setActions
-
getAttributeBos
-
setAttributeBos
-
setPropositionSummary
-
getSelectedPropositionId
-
setSelectedPropositionId
-