java.lang.Object
org.broadleafcommerce.openadmin.web.rulebuilder.dto.FieldWrapper
All Implemented Interfaces:
Serializable

public class FieldWrapper extends Object implements Serializable
Author:
Elbert Bautista (elbertbautista)

An example of the Serialized JSON:

{'fields': [ {'label':'Order Item - name', 'id':'name', 'operators':blcOperators_Text, 'values':[]}, {'label':'Order Item - Retail Price', 'id':'retailPrice', 'operators':blcOperators_Numeric, 'values':[]}, {'label':'Product - is Featured Product', 'id':'sku.product.isFeaturedProduct', 'operators':blcOperators_Boolean, 'values':[]}, {'label':'Sku - Active End Date', 'id':'sku.activeEndDate', 'operators':blcOperators_Date, 'values':[]}, {'label':'Category - Fulfillment Type', 'id':'category.fulfillmentType', 'operators':blcOperators_Enumeration, 'values':blcOptions_FulfillmentType} ]}

See Also:
  • Field Details

  • Constructor Details

    • FieldWrapper

      public FieldWrapper()
  • Method Details

    • getFields

      public ArrayList<FieldDTO> getFields()
    • setFields

      public void setFields(ArrayList<FieldDTO> fields)
    • serialize

      public String serialize() throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
      Throws:
      com.fasterxml.jackson.core.JsonGenerationException
      com.fasterxml.jackson.databind.JsonMappingException
      IOException