Package org.broadleafcommerce.core.rule
Class RuleDTOConfig
java.lang.Object
org.broadleafcommerce.core.rule.RuleDTOConfig
Provide confiration information about arbitrary field data used to drive rule builders in the admin. Can be employed
to create dynamic RuleBuilderFieldService implementations with field data being derived from external sources.
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringAn alternate name for the field.protected StringName of the field as it appears in MVELprotected StringThe name as it appears to the user in MVEL.protected StringThe type of operators for the ruleprotected StringThe type of options to provide to the user for selection or entryprotected org.broadleafcommerce.common.presentation.client.SupportedFieldTypeThe type of the value being entered by the user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()org.broadleafcommerce.common.presentation.client.SupportedFieldTypegetType()voidsetAlternateName(String alternateName) voidsetFieldName(String fieldName) voidvoidsetOperators(String operators) voidsetOptions(String options) voidsetType(org.broadleafcommerce.common.presentation.client.SupportedFieldType type)
-
Field Details
-
fieldName
Name of the field as it appears in MVEL -
label
The name as it appears to the user in MVEL. Specify a i18n key here instead and declare the key/value pair in a message property file for translatable labels. -
operators
The type of operators for the rule -
options
The type of options to provide to the user for selection or entry -
type
protected org.broadleafcommerce.common.presentation.client.SupportedFieldType typeThe type of the value being entered by the user -
alternateName
An alternate name for the field. This is useful when the external source has a different name for the field than what you want to use in the rule builder.
-
-
Constructor Details
-
RuleDTOConfig
-
-
Method Details
-
getFieldName
-
setFieldName
-
getLabel
-
setLabel
-
getOperators
-
setOperators
-
getOptions
-
setOptions
-
getType
public org.broadleafcommerce.common.presentation.client.SupportedFieldType getType() -
setType
public void setType(org.broadleafcommerce.common.presentation.client.SupportedFieldType type) -
getAlternateName
-
setAlternateName
-