Class DynamicRegionalFormImpl

java.lang.Object
com.broadleafcommerce.i18n.enterprise.form.domain.DynamicRegionalFormImpl
All Implemented Interfaces:
DynamicRegionalForm, Serializable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.copy.MultiTenantCloneable<DynamicRegionalForm>

@Entity public class DynamicRegionalFormImpl extends Object implements DynamicRegionalForm, org.broadleafcommerce.common.admin.domain.AdminMainEntity
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Details

    • id

      protected Long id
    • name

      protected String name
    • isoCountry

      protected org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry
    • formFieldList

      protected List<DynamicRegionalFormField> formFieldList
    • formType

      protected String formType
  • Constructor Details

    • DynamicRegionalFormImpl

      public DynamicRegionalFormImpl()
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: DynamicRegionalForm
      Unique id of the DB record
      Specified by:
      getId in interface DynamicRegionalForm
      Returns:
      the id
    • setId

      public void setId(Long id)
      Description copied from interface: DynamicRegionalForm
      Sets the id of the DB record
      Specified by:
      setId in interface DynamicRegionalForm
    • getName

      public String getName()
      Description copied from interface: DynamicRegionalForm
      Get the name of this Dynamic Form
      Specified by:
      getName in interface DynamicRegionalForm
      Returns:
    • setName

      public void setName(String name)
      Description copied from interface: DynamicRegionalForm
      Sets the name for this Dynamic Form
      Specified by:
      setName in interface DynamicRegionalForm
    • getIsoCountry

      public org.broadleafcommerce.common.i18n.domain.ISOCountry getIsoCountry()
      Description copied from interface: DynamicRegionalForm
      Returns the ISOCountry that this form is associated with
      Specified by:
      getIsoCountry in interface DynamicRegionalForm
      Returns:
      the ISOCountry
    • setIsoCountry

      public void setIsoCountry(org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry)
      Description copied from interface: DynamicRegionalForm
      Sets the ISOCountry for this Form. A Regional Form is tied to an ISOCountry and not a Country allowing you to internationalize a form for all countries and not just those restricted to the lookup table.

      For example: You can prevent shipping to specified countries using the Country on a shipping address form, however that shouldn't inhibit customers from paying with a billing address based in another country.

      Specified by:
      setIsoCountry in interface DynamicRegionalForm
    • setRegionalFormFieldList

      public void setRegionalFormFieldList(List<DynamicRegionalFormField> regionalFormFieldList)
      Description copied from interface: DynamicRegionalForm
      sets the DynamicRegionalFormFieldlist. Each line in the form is seen as a DynamicRegionalFormField. which contain DynamicRegionalFormFieldItems.
      Specified by:
      setRegionalFormFieldList in interface DynamicRegionalForm
    • getDynamicFormFieldList

      public List<DynamicRegionalFormField> getDynamicFormFieldList()
      Specified by:
      getDynamicFormFieldList in interface DynamicRegionalForm
      Returns:
      the list of the FormFields
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
    • getFormType

      public org.broadleafcommerce.common.web.form.BroadleafFormType getFormType()
      Description copied from interface: DynamicRegionalForm
      Get the BroadleafFormType form this Dynamic Form
      Specified by:
      getFormType in interface DynamicRegionalForm
      Returns:
    • setFormType

      public void setFormType(org.broadleafcommerce.common.web.form.BroadleafFormType formType)
      Description copied from interface: DynamicRegionalForm
      Sets the BroadleafFormType for this Dynamic Form
      Specified by:
      setFormType in interface DynamicRegionalForm
    • createOrRetrieveCopyInstance

      public <G extends DynamicRegionalForm> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<DynamicRegionalForm>
      Throws:
      CloneNotSupportedException