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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<DynamicRegionalFormField>protected Stringprotected Longprotected org.broadleafcommerce.common.i18n.domain.ISOCountryprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends DynamicRegionalForm>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) org.broadleafcommerce.common.web.form.BroadleafFormTypeGet theBroadleafFormTypeform this Dynamic FormgetId()Unique id of the DB recordorg.broadleafcommerce.common.i18n.domain.ISOCountryReturns the ISOCountry that this form is associated withgetName()Get the name of this Dynamic FormvoidsetFormType(org.broadleafcommerce.common.web.form.BroadleafFormType formType) Sets theBroadleafFormTypefor this Dynamic FormvoidSets the id of the DB recordvoidsetIsoCountry(org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry) Sets the ISOCountry for this Form.voidSets the name for this Dynamic FormvoidsetRegionalFormFieldList(List<DynamicRegionalFormField> regionalFormFieldList) sets the DynamicRegionalFormFieldlist.
-
Field Details
-
id
-
name
-
isoCountry
protected org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry -
formFieldList
-
formType
-
-
Constructor Details
-
DynamicRegionalFormImpl
public DynamicRegionalFormImpl()
-
-
Method Details
-
getId
Description copied from interface:DynamicRegionalFormUnique id of the DB record- Specified by:
getIdin interfaceDynamicRegionalForm- Returns:
- the id
-
setId
Description copied from interface:DynamicRegionalFormSets the id of the DB record- Specified by:
setIdin interfaceDynamicRegionalForm
-
getName
Description copied from interface:DynamicRegionalFormGet the name of this Dynamic Form- Specified by:
getNamein interfaceDynamicRegionalForm- Returns:
-
setName
Description copied from interface:DynamicRegionalFormSets the name for this Dynamic Form- Specified by:
setNamein interfaceDynamicRegionalForm
-
getIsoCountry
public org.broadleafcommerce.common.i18n.domain.ISOCountry getIsoCountry()Description copied from interface:DynamicRegionalFormReturns the ISOCountry that this form is associated with- Specified by:
getIsoCountryin interfaceDynamicRegionalForm- Returns:
- the ISOCountry
-
setIsoCountry
public void setIsoCountry(org.broadleafcommerce.common.i18n.domain.ISOCountry isoCountry) Description copied from interface:DynamicRegionalFormSets the ISOCountry for this Form. A Regional Form is tied to an ISOCountry and not aCountryallowing 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
Countryon a shipping address form, however that shouldn't inhibit customers from paying with a billing address based in another country.- Specified by:
setIsoCountryin interfaceDynamicRegionalForm
-
setRegionalFormFieldList
Description copied from interface:DynamicRegionalFormsets the DynamicRegionalFormFieldlist. Each line in the form is seen as a DynamicRegionalFormField. which contain DynamicRegionalFormFieldItems.- Specified by:
setRegionalFormFieldListin interfaceDynamicRegionalForm
-
getDynamicFormFieldList
- Specified by:
getDynamicFormFieldListin interfaceDynamicRegionalForm- Returns:
- the list of the FormFields
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-
getFormType
public org.broadleafcommerce.common.web.form.BroadleafFormType getFormType()Description copied from interface:DynamicRegionalFormGet theBroadleafFormTypeform this Dynamic Form- Specified by:
getFormTypein interfaceDynamicRegionalForm- Returns:
-
setFormType
public void setFormType(org.broadleafcommerce.common.web.form.BroadleafFormType formType) Description copied from interface:DynamicRegionalFormSets theBroadleafFormTypefor this Dynamic Form- Specified by:
setFormTypein interfaceDynamicRegionalForm
-
createOrRetrieveCopyInstance
public <G extends DynamicRegionalForm> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<DynamicRegionalForm>- Throws:
CloneNotSupportedException
-