Class CustomFieldImpl
java.lang.Object
org.broadleafcommerce.core.search.domain.FieldImpl
com.broadleafcommerce.customfield.domain.CustomFieldImpl
- All Implemented Interfaces:
CustomField,CustomFieldAdminPresentation,Serializable,org.broadleafcommerce.common.admin.domain.AdminMainEntity,org.broadleafcommerce.common.copy.MultiTenantCloneable<org.broadleafcommerce.core.search.domain.Field>,org.broadleafcommerce.core.search.domain.Field,org.broadleafcommerce.core.search.domain.FieldAdminPresentation
@Entity
public class CustomFieldImpl
extends org.broadleafcommerce.core.search.domain.FieldImpl
implements CustomField, CustomFieldAdminPresentation
- Author:
- Jeff Fischer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.broadleafcommerce.customfield.domain.CustomFieldAdminPresentation
CustomFieldAdminPresentation.FieldOrder, CustomFieldAdminPresentation.GroupName, CustomFieldAdminPresentation.GroupOrder, CustomFieldAdminPresentation.TabName, CustomFieldAdminPresentation.TabOrderNested classes/interfaces inherited from interface org.broadleafcommerce.core.search.domain.FieldAdminPresentation
org.broadleafcommerce.core.search.domain.FieldAdminPresentation.FieldOrder, org.broadleafcommerce.core.search.domain.FieldAdminPresentation.GroupName, org.broadleafcommerce.core.search.domain.FieldAdminPresentation.GroupOrder, org.broadleafcommerce.core.search.domain.FieldAdminPresentation.TabName, org.broadleafcommerce.core.search.domain.FieldAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AllowedEnumValue>protected Booleanprotected Booleanprotected Stringprotected Integerprotected Stringprotected Booleanprotected Booleanprotected StringFields inherited from class org.broadleafcommerce.core.search.domain.FieldImpl
abbreviation, entityType, friendlyName, id, overrideGeneratedPropertyName, propertyName, translatableFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of allowed values for this custom field if it is an ENUMERATION type.Get whether multiple values are allowed to be selected for this enum CustomFieldWhether or not a new FieldGroup should be created for the target EntityForm.The type for this field (e.g.org.broadleafcommerce.core.search.domain.FieldEntityOptional - The order for this field in the formOptional - The group in the target entity in which this field will reside.Retrieve the raw, fully-qualified classname for the entity type targeted in this custom fieldWhether or not this field is available to rule builders based on the target entity.Whether or not this field is visible on the target entity form.Optional - The tab in the target entity in which this field will residevoidsetAllowedEnumValues(List<AllowedEnumValue> allowedEnumValues) Sets the list of allowed values for this custom field if it is an ENUMERATION type.voidsetAllowMultiValueSelect(Boolean allowMultiValueSelect) Set whether multiple values are allowed to be selected for this enum CustomFieldvoidsetCreateNewGroup(Boolean createNewGroup) Whether or not a new FieldGroup should be created for the target EntityForm.voidsetCustomFieldType(CustomFieldType customFieldType) The type for this field (e.g.voidsetEntityType(CustomFieldTargetType customFieldTargetType) Set the value that gets saved to BLC_FIELD.ENTITY_TYPE.voidsetFieldOrder(Integer groupOrder) Optional - the order for this field in the formvoidsetGroupName(String groupName) Optional - The group in the target entity in which this field will reside.voidsetShowFieldInRuleBuilder(Boolean showFieldInRuleBuilder) Whether or not this field is available to rule builders based on the target entity.voidsetShowFieldOnForm(Boolean showFieldOnForm) Whether or not this field is visible on the target entity form.voidsetTabName(String tabName) Optional - The tab in the target entity in which this field will resideMethods inherited from class org.broadleafcommerce.core.search.domain.FieldImpl
createOrRetrieveCopyInstance, equals, getAbbreviation, getFriendlyName, getId, getMainEntityName, getOverrideGeneratedPropertyName, getQualifiedFieldName, getSearchConfigs, getTranslatable, hashCode, setAbbreviation, setEntityType, setFriendlyName, setId, setOverrideGeneratedPropertyName, setPropertyName, setSearchConfigs, setTranslatableMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.search.domain.Field
getAbbreviation, getFriendlyName, getId, getOverrideGeneratedPropertyName, getQualifiedFieldName, getSearchConfigs, getTranslatable, setAbbreviation, setEntityType, setFriendlyName, setId, setOverrideGeneratedPropertyName, setPropertyName, setSearchConfigs, setTranslatableMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Field Details
-
customFieldType
-
showFieldOnForm
-
showFieldInRuleBuilder
-
createNewGroup
-
groupName
-
tabName
-
fieldOrder
-
allowedEnumValues
-
allowMultiValueSelect
-
-
Constructor Details
-
CustomFieldImpl
public CustomFieldImpl()
-
-
Method Details
-
setEntityType
Description copied from interface:CustomFieldSet the value that gets saved to BLC_FIELD.ENTITY_TYPE.- Specified by:
setEntityTypein interfaceCustomField
-
getEntityType
public org.broadleafcommerce.core.search.domain.FieldEntity getEntityType()- Specified by:
getEntityTypein interfaceorg.broadleafcommerce.core.search.domain.Field- Overrides:
getEntityTypein classorg.broadleafcommerce.core.search.domain.FieldImpl
-
getRawEntityType
Description copied from interface:CustomFieldRetrieve the raw, fully-qualified classname for the entity type targeted in this custom field- Specified by:
getRawEntityTypein interfaceCustomField- Returns:
-
getCustomFieldType
Description copied from interface:CustomFieldThe type for this field (e.g. Boolean, Date, ...). This drives the picker and validation in the admin.- Specified by:
getCustomFieldTypein interfaceCustomField- Returns:
- The type for this field
-
setCustomFieldType
Description copied from interface:CustomFieldThe type for this field (e.g. Boolean, Date, ...). This drives the picker and validation in the admin.- Specified by:
setCustomFieldTypein interfaceCustomField- Parameters:
customFieldType- The type for this field
-
getFieldOrder
Description copied from interface:CustomFieldOptional - The order for this field in the form- Specified by:
getFieldOrderin interfaceCustomField- Returns:
- the order of the field in the form
-
setFieldOrder
Description copied from interface:CustomFieldOptional - the order for this field in the form- Specified by:
setFieldOrderin interfaceCustomField- Parameters:
groupOrder- the order of the field in the form
-
getGroupName
Description copied from interface:CustomFieldOptional - The group in the target entity in which this field will reside. Grouping effects visual organization of fields in the admin tool form. May be null, in which case the field will be in the default, general group.- Specified by:
getGroupNamein interfaceCustomField- Returns:
- The group in the target entity in which this field will reside.
-
setGroupName
Description copied from interface:CustomFieldOptional - The group in the target entity in which this field will reside. Grouping effects visual organization of fields in the admin tool form. May be null, in which case the field will be in the default, general group.- Specified by:
setGroupNamein interfaceCustomField- Parameters:
groupName- The group in the target entity in which this field will reside.
-
getTabName
Description copied from interface:CustomFieldOptional - The tab in the target entity in which this field will reside- Specified by:
getTabNamein interfaceCustomField- Returns:
- the name of the tab this field should reside in
-
setTabName
Description copied from interface:CustomFieldOptional - The tab in the target entity in which this field will reside- Specified by:
setTabNamein interfaceCustomField
-
getPropertyName
- Specified by:
getPropertyNamein interfaceorg.broadleafcommerce.core.search.domain.Field- Overrides:
getPropertyNamein classorg.broadleafcommerce.core.search.domain.FieldImpl
-
getShowFieldInRuleBuilder
Description copied from interface:CustomFieldWhether or not this field is available to rule builders based on the target entity.- Specified by:
getShowFieldInRuleBuilderin interfaceCustomField- Returns:
- whether or not this field appears in the rule builder
-
setShowFieldInRuleBuilder
Description copied from interface:CustomFieldWhether or not this field is available to rule builders based on the target entity.- Specified by:
setShowFieldInRuleBuilderin interfaceCustomField- Parameters:
showFieldInRuleBuilder- whether or not this field appears in the rule builder
-
getShowFieldOnForm
Description copied from interface:CustomFieldWhether or not this field is visible on the target entity form.- Specified by:
getShowFieldOnFormin interfaceCustomField- Returns:
- whether or not this field appears on the target entity form
-
setShowFieldOnForm
Description copied from interface:CustomFieldWhether or not this field is visible on the target entity form.- Specified by:
setShowFieldOnFormin interfaceCustomField- Parameters:
showFieldOnForm- whether or not this field appears on the target entity form
-
getCreateNewGroup
Description copied from interface:CustomFieldWhether or not a new FieldGroup should be created for the target EntityForm.- Specified by:
getCreateNewGroupin interfaceCustomField- Returns:
-
setCreateNewGroup
Description copied from interface:CustomFieldWhether or not a new FieldGroup should be created for the target EntityForm.- Specified by:
setCreateNewGroupin interfaceCustomField
-
getAllowedEnumValues
Description copied from interface:CustomFieldReturns the list of allowed values for this custom field if it is an ENUMERATION type.- Specified by:
getAllowedEnumValuesin interfaceCustomField- Returns:
-
setAllowedEnumValues
Description copied from interface:CustomFieldSets the list of allowed values for this custom field if it is an ENUMERATION type.- Specified by:
setAllowedEnumValuesin interfaceCustomField
-
getAllowMultiValueSelect
Description copied from interface:CustomFieldGet whether multiple values are allowed to be selected for this enum CustomField- Specified by:
getAllowMultiValueSelectin interfaceCustomField- Returns:
-
setAllowMultiValueSelect
Description copied from interface:CustomFieldSet whether multiple values are allowed to be selected for this enum CustomField- Specified by:
setAllowMultiValueSelectin interfaceCustomField
-