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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropositionBocopyProposition(PropositionBo existing) static PropositionBocreateCompoundPropositionBoStub(PropositionBo existing, boolean addNewChild) static PropositionBostatic PropositionBocreateSimplePropositionBoStub(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.static PropositionBofrom(org.kuali.rice.krms.api.repository.proposition.PropositionDefinition im) Converts a immutable object to it's mutable bo counterpartorg.kuali.rice.krad.data.DataObjectServicebooleangetId()booleanbooleanvoidsetCategoryId(String categoryId) voidsetCompoundComponents(List<PropositionBo> compoundComponents) voidsetCompoundOpCode(String compoundOpCode) voidsetCompoundSequenceNumber(Integer compoundSequenceNumber) voidsetDescription(String description) voidsetEditMode(boolean editMode) voidvoidsetNewTermDescription(String newTermDescription) voidsetParameterDisplayString(String parameterDisplayString) voidsetParameters(List<PropositionParameterBo> parameters) voidsetPropositionTypeCode(String propositionTypeCode) voidSets the ruleId on this proposition and all its compound components.voidsetShowCustomValue(boolean showCustomValue) voidsetTermParameter(String termParameter) voidsetTermParameterList(List<TermParameter> termParameterList) voidsetTermParameters(Map<String, String> termParameters) voidsetTermSpecId(String componentId) voidset the typeId.voidsetVersionNumber(Long versionNumber) static org.kuali.rice.krms.api.repository.proposition.PropositionDefinitionto(PropositionBo bo) Converts a mutable bo to it's immutable counterpart
-
Constructor Details
-
PropositionBo
public PropositionBo()
-
-
Method Details
-
getParameterDisplayString
-
setParameterDisplayString
-
getEditMode
public boolean getEditMode() -
setEditMode
public void setEditMode(boolean editMode) -
getCategoryId
-
setCategoryId
-
setTypeId
set the typeId. If the parameter is blank, then this PropositionBo's typeId will be set to null -
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setVersionNumber
-
getTermParameters
-
setTermParameters
-
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
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
-
copyProposition
-
getTermSpecId
-
setTermSpecId
-
isShowCustomValue
public boolean isShowCustomValue() -
setShowCustomValue
public void setShowCustomValue(boolean showCustomValue) -
getTermParameter
-
setTermParameter
-
getTermParameterList
-
setTermParameterList
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
setId
-
getDescription
- Specified by:
getDescriptionin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setDescription
-
getRuleId
- Specified by:
getRuleIdin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setRuleId
Sets the ruleId on this proposition and all its compound components.- Parameters:
ruleId- the ruleId to set
-
getTypeId
- Specified by:
getTypeIdin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
getPropositionTypeCode
- Specified by:
getPropositionTypeCodein interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setPropositionTypeCode
-
getParameters
- Specified by:
getParametersin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setParameters
-
getCompoundOpCode
- Specified by:
getCompoundOpCodein interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setCompoundOpCode
-
getCompoundSequenceNumber
- Specified by:
getCompoundSequenceNumberin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setCompoundSequenceNumber
-
getCompoundComponents
- Specified by:
getCompoundComponentsin interfaceorg.kuali.rice.krms.api.repository.proposition.PropositionDefinitionContract
-
setCompoundComponents
-
getShowCustomValue
public boolean getShowCustomValue() -
getNewTermDescription
-
setNewTermDescription
-