Class DynamicEntityFormInfo

java.lang.Object
org.broadleafcommerce.openadmin.web.form.entity.DynamicEntityFormInfo

public class DynamicEntityFormInfo extends Object
Used to setup what data will be needed to create add dynamic form fields to an entity.

Use the withCeilingClassName(String) to indicate the entity which contains the template fields. Use the withSecurityCeilingClassName(String) to indicate the entity that should be used to control the security of the fields. For example, if a user has access to Page, then they should also have access to the fields introduced by the PageTemplate.

Author:
bpolster
  • Field Details

    • FIELD_SEPARATOR

      public static final String FIELD_SEPARATOR
      See Also:
    • criteriaName

      protected String criteriaName
    • propertyName

      protected String propertyName
    • propertyValue

      protected String propertyValue
    • ceilingClassName

      protected String ceilingClassName
    • securityCeilingClassName

      protected String securityCeilingClassName
    • customCriteriaOverride

      protected String[] customCriteriaOverride
  • Constructor Details

    • DynamicEntityFormInfo

      public DynamicEntityFormInfo()
  • Method Details

    • withCriteriaName

      public DynamicEntityFormInfo withCriteriaName(String criteriaName)
    • withPropertyName

      public DynamicEntityFormInfo withPropertyName(String propertyName)
    • withPropertyValue

      public DynamicEntityFormInfo withPropertyValue(String propertyValue)
    • withCeilingClassName

      public DynamicEntityFormInfo withCeilingClassName(String ceilingClassName)
    • withSecurityCeilingClassName

      public DynamicEntityFormInfo withSecurityCeilingClassName(String securityCeilingClassName)
      The security class name that permissions will be based off of for this entity. Generally this is different from the "ceilingClassName" which represents the template that will be used to define the fields being used.
      Parameters:
      securityCeilingClassName -
      Returns:
    • withCustomCriteriaOverride

      public DynamicEntityFormInfo withCustomCriteriaOverride(String[] customCriteriaOverride)
    • getCriteriaName

      public String getCriteriaName()
    • setCriteriaName

      public void setCriteriaName(String criteriaName)
    • getPropertyName

      public String getPropertyName()
    • setPropertyName

      public void setPropertyName(String propertyName)
    • getPropertyValue

      public String getPropertyValue()
    • setPropertyValue

      public void setPropertyValue(String propertyValue)
    • getCeilingClassName

      public String getCeilingClassName()
    • setCeilingClassName

      public void setCeilingClassName(String ceilingClassName)
    • getSecurityCeilingClassName

      public String getSecurityCeilingClassName()
    • setSecurityCeilingClassName

      public void setSecurityCeilingClassName(String securityCeilingClassName)
    • getCustomCriteriaOverride

      public String[] getCustomCriteriaOverride()
    • setCustomCriteriaOverride

      public void setCustomCriteriaOverride(String[] customCriteriaOverride)