Class PropositionBo

java.lang.Object
org.kuali.rice.krms.impl.repository.PropositionBo
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract

@Entity public class PropositionBo extends Object implements org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract, org.kuali.rice.core.api.mo.common.Versioned, Serializable
See Also:
  • Constructor Details

    • PropositionBo

      public PropositionBo()
  • Method Details

    • getParameterDisplayString

      public String getParameterDisplayString()
    • setParameterDisplayString

      public void setParameterDisplayString(String parameterDisplayString)
    • getEditMode

      public boolean getEditMode()
    • setEditMode

      public void setEditMode(boolean editMode)
    • getCategoryId

      public String getCategoryId()
    • setCategoryId

      public void setCategoryId(String categoryId)
    • setTypeId

      public void setTypeId(String typeId)
      set the typeId. If the parameter is blank, then this PropositionBo's typeId will be set to null
    • getVersionNumber

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

      public void setVersionNumber(Long versionNumber)
    • getTermParameters

      public Map<String,String> getTermParameters()
    • setTermParameters

      public void setTermParameters(Map<String,String> termParameters)
    • getDataObjectService

      public org.kuali.rice.krad.data.DataObjectService getDataObjectService()
    • to

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

      public static PropositionBo from(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition im)
      Converts a immutable object to it's mutable bo counterpart
      Parameters:
      im - immutable object
      Returns:
      the mutable bo
    • createSimplePropositionBoStub

      public static PropositionBo createSimplePropositionBoStub(PropositionBo sibling, String pType)
      This method creates a partially populated Simple PropositionBo with three parameters: a term type paramter (value not assigned) a operation parameter a constant parameter (value set to empty string) The returned PropositionBo has an generatedId. The type code and ruleId properties are assigned the same value as the sibling param passed in. Each PropositionParameter has the id generated, and type, sequenceNumber, propId default values set. The value is set to "".
      Returns:
      a PropositionBo partially populated.
    • createCompoundPropositionBoStub

      public static PropositionBo createCompoundPropositionBoStub(PropositionBo existing, boolean addNewChild)
    • createCompoundPropositionBoStub2

      public static PropositionBo createCompoundPropositionBoStub2(PropositionBo existing)
    • copyProposition

      public static PropositionBo copyProposition(PropositionBo existing)
    • getTermSpecId

      public String getTermSpecId()
    • setTermSpecId

      public void setTermSpecId(String componentId)
    • isShowCustomValue

      public boolean isShowCustomValue()
    • setShowCustomValue

      public void setShowCustomValue(boolean showCustomValue)
    • getTermParameter

      public String getTermParameter()
    • setTermParameter

      public void setTermParameter(String termParameter)
    • getTermParameterList

      public List<TermParameter> getTermParameterList()
    • setTermParameterList

      public void setTermParameterList(List<TermParameter> termParameterList)
    • getId

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

      public void setId(String id)
    • getDescription

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

      public void setDescription(String description)
    • getRuleId

      public String getRuleId()
      Specified by:
      getRuleId in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setRuleId

      public void setRuleId(String ruleId)
      Sets the ruleId on this proposition and all its compound components.
      Parameters:
      ruleId - the ruleId to set
    • getTypeId

      public String getTypeId()
      Specified by:
      getTypeId in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • getPropositionTypeCode

      public String getPropositionTypeCode()
      Specified by:
      getPropositionTypeCode in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setPropositionTypeCode

      public void setPropositionTypeCode(String propositionTypeCode)
    • getParameters

      public List<PropositionParameterBo> getParameters()
      Specified by:
      getParameters in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setParameters

      public void setParameters(List<PropositionParameterBo> parameters)
    • getCompoundOpCode

      public String getCompoundOpCode()
      Specified by:
      getCompoundOpCode in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setCompoundOpCode

      public void setCompoundOpCode(String compoundOpCode)
    • getCompoundSequenceNumber

      public Integer getCompoundSequenceNumber()
      Specified by:
      getCompoundSequenceNumber in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setCompoundSequenceNumber

      public void setCompoundSequenceNumber(Integer compoundSequenceNumber)
    • getCompoundComponents

      public List<PropositionBo> getCompoundComponents()
      Specified by:
      getCompoundComponents in interface org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
    • setCompoundComponents

      public void setCompoundComponents(List<PropositionBo> compoundComponents)
    • getShowCustomValue

      public boolean getShowCustomValue()
    • getNewTermDescription

      public String getNewTermDescription()
    • setNewTermDescription

      public void setNewTermDescription(String newTermDescription)