Class RuleDTOConfig

java.lang.Object
org.broadleafcommerce.core.rule.RuleDTOConfig

public class RuleDTOConfig extends Object
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 Details

    • fieldName

      protected String fieldName
      Name of the field as it appears in MVEL
    • label

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

      protected String operators
      The type of operators for the rule
    • options

      protected String options
      The type of options to provide to the user for selection or entry
    • type

      protected org.broadleafcommerce.common.presentation.client.SupportedFieldType type
      The type of the value being entered by the user
    • alternateName

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

      public RuleDTOConfig(String fieldName, String label)
  • Method Details

    • getFieldName

      public String getFieldName()
    • setFieldName

      public void setFieldName(String fieldName)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getOperators

      public String getOperators()
    • setOperators

      public void setOperators(String operators)
    • getOptions

      public String getOptions()
    • setOptions

      public void setOptions(String options)
    • getType

      public org.broadleafcommerce.common.presentation.client.SupportedFieldType getType()
    • setType

      public void setType(org.broadleafcommerce.common.presentation.client.SupportedFieldType type)
    • getAlternateName

      public String getAlternateName()
    • setAlternateName

      public void setAlternateName(String alternateName)