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 Details

  • Constructor Details

    • RuleBo

      public RuleBo()
  • Method Details

    • getProposition

      public PropositionBo getProposition()
      Specified by:
      getProposition in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setProposition

      public void setProposition(PropositionBo proposition)
    • setTypeId

      public void setTypeId(String typeId)
      set the typeId. If the parameter is blank, then this RuleBo's typeId will be set to null
      Parameters:
      typeId -
    • getAttributes

      public Map<String,String> getAttributes()
      Specified by:
      getAttributes in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setAttributes

      public void setAttributes(Map<String,String> attributes)
    • getPropositionSummary

      public String 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

      public void setPropositionTree(org.kuali.rice.core.api.util.tree.Tree<RuleTreeNode,String> tree)
    • refreshPropositionTree

      public org.kuali.rice.core.api.util.tree.Tree refreshPropositionTree(Boolean editMode)
    • to

      public static org.kuali.rice.krms.api.repository.rule.RuleDefinition to(RuleBo bo)
      Converts a mutable bo to it's immutable counterpart
      Parameters:
      bo - the mutable business object
      Returns:
      the immutable object
    • from

      public static RuleBo from(org.kuali.rice.krms.api.repository.rule.RuleDefinition im)
      Converts a immutable object to it's mutable bo counterpart
      Parameters:
      im - immutable object
      Returns:
      the mutable bo
    • copyRule

      public static RuleBo copyRule(RuleBo existing)
    • copyRule

      public RuleBo copyRule(String newRuleName)
      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

      public static List<RuleAttributeBo> copyRuleAttributes(RuleBo existing, RuleBo newRule)
    • copyActionAttributes

      public static List<ActionAttributeBo> copyActionAttributes(ActionBo existing, ActionBo newAction)
    • copyRuleActions

      public static List<ActionBo> copyRuleActions(RuleBo existing, RuleBo newRule)
    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • setId

      public void setId(String id)
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setNamespace

      public void setNamespace(String namespace)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setDescription

      public void setDescription(String description)
    • getName

      public String getName()
      Specified by:
      getName in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setName

      public void setName(String name)
    • getTypeId

      public String getTypeId()
      Specified by:
      getTypeId in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • getPropId

      public String getPropId()
      Specified by:
      getPropId in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • getActive

      public boolean getActive()
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setActive

      public void setActive(boolean active)
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • getActions

      public List<ActionBo> getActions()
      Specified by:
      getActions in interface org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract
    • setActions

      public void setActions(List<ActionBo> actions)
    • getAttributeBos

      public List<RuleAttributeBo> getAttributeBos()
    • setAttributeBos

      public void setAttributeBos(List<RuleAttributeBo> attributeBos)
    • setPropositionSummary

      public void setPropositionSummary(String propositionSummary)
    • getSelectedPropositionId

      public String getSelectedPropositionId()
    • setSelectedPropositionId

      public void setSelectedPropositionId(String selectedPropositionId)