Class FieldDefinitionImpl
java.lang.Object
org.broadleafcommerce.cms.field.domain.FieldDefinitionImpl
- All Implemented Interfaces:
Serializable,FieldDefinition,MultiTenantCloneable<FieldDefinition>,ProfileEntity
Created by bpolster.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Stringprotected DataDrivenEnumerationprotected FieldGroupprotected Integerprotected Stringprotected Stringprotected Stringprotected Booleanprotected Stringprotected Longprotected Integerprotected Stringprotected Booleanprotected Stringprotected Booleanprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends FieldDefinition>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.intgetHint()getId()getName()voidsetAdditionalForeignKeyClass(String className) voidsetAllowMultiples(Boolean allowMultiples) voidsetColumnWidth(String columnWidth) voidsetDataDrivenEnumeration(DataDrivenEnumeration dataDrivenEnumeration) voidsetFieldGroup(FieldGroup fieldGroup) voidsetFieldOrder(int fieldOrder) voidsetFieldType(String fieldType) voidsetFieldType(SupportedFieldType fieldType) voidsetFriendlyName(String friendlyName) voidsetHelpText(String helpText) voidsetHiddenFlag(Boolean hiddenFlag) voidvoidvoidsetMaxLength(Integer maxLength) voidvoidsetRequiredFlag(Boolean requiredFlag) voidsetSecurityLevel(String securityLevel) voidsetTextAreaFlag(Boolean textAreaFlag) voidsetTooltip(String tooltip) voidsetValidationErrorMesageKey(String validationErrorMesageKey) voidsetValidationRegEx(String validationRegEx)
-
Field Details
-
id
-
name
-
friendlyName
-
fieldType
-
securityLevel
-
validationRegEx
-
validationErrorMesageKey
-
maxLength
-
columnWidth
-
textAreaFlag
-
requiredFlag
-
dataDrivenEnumeration
-
allowMultiples
-
fieldGroup
-
fieldOrder
-
tooltip
-
helpText
-
hint
-
-
Constructor Details
-
FieldDefinitionImpl
public FieldDefinitionImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFieldDefinition
-
setId
- Specified by:
setIdin interfaceFieldDefinition
-
getName
- Specified by:
getNamein interfaceFieldDefinition
-
setName
- Specified by:
setNamein interfaceFieldDefinition
-
getFieldType
- Specified by:
getFieldTypein interfaceFieldDefinition
-
setFieldType
- Specified by:
setFieldTypein interfaceFieldDefinition
-
setFieldType
- Specified by:
setFieldTypein interfaceFieldDefinition
-
getFieldTypeVal
- Specified by:
getFieldTypeValin interfaceFieldDefinition
-
getAdditionalForeignKeyClass
- Specified by:
getAdditionalForeignKeyClassin interfaceFieldDefinition
-
setAdditionalForeignKeyClass
- Specified by:
setAdditionalForeignKeyClassin interfaceFieldDefinition
-
getSecurityLevel
- Specified by:
getSecurityLevelin interfaceFieldDefinition
-
setSecurityLevel
- Specified by:
setSecurityLevelin interfaceFieldDefinition
-
getHiddenFlag
- Specified by:
getHiddenFlagin interfaceFieldDefinition
-
setHiddenFlag
- Specified by:
setHiddenFlagin interfaceFieldDefinition
-
getValidationRegEx
- Specified by:
getValidationRegExin interfaceFieldDefinition
-
setValidationRegEx
- Specified by:
setValidationRegExin interfaceFieldDefinition
-
getMaxLength
- Specified by:
getMaxLengthin interfaceFieldDefinition
-
setMaxLength
- Specified by:
setMaxLengthin interfaceFieldDefinition
-
getColumnWidth
- Specified by:
getColumnWidthin interfaceFieldDefinition
-
setColumnWidth
- Specified by:
setColumnWidthin interfaceFieldDefinition
-
getTextAreaFlag
- Specified by:
getTextAreaFlagin interfaceFieldDefinition
-
setTextAreaFlag
- Specified by:
setTextAreaFlagin interfaceFieldDefinition
-
getRequiredFlag
- Specified by:
getRequiredFlagin interfaceFieldDefinition
-
setRequiredFlag
- Specified by:
setRequiredFlagin interfaceFieldDefinition
-
getAllowMultiples
- Specified by:
getAllowMultiplesin interfaceFieldDefinition
-
setAllowMultiples
- Specified by:
setAllowMultiplesin interfaceFieldDefinition
-
getFriendlyName
- Specified by:
getFriendlyNamein interfaceFieldDefinition
-
setFriendlyName
- Specified by:
setFriendlyNamein interfaceFieldDefinition
-
getValidationErrorMesageKey
- Specified by:
getValidationErrorMesageKeyin interfaceFieldDefinition
-
setValidationErrorMesageKey
- Specified by:
setValidationErrorMesageKeyin interfaceFieldDefinition
-
getFieldGroup
- Specified by:
getFieldGroupin interfaceFieldDefinition
-
setFieldGroup
- Specified by:
setFieldGroupin interfaceFieldDefinition
-
getFieldOrder
public int getFieldOrder()- Specified by:
getFieldOrderin interfaceFieldDefinition
-
setFieldOrder
public void setFieldOrder(int fieldOrder) - Specified by:
setFieldOrderin interfaceFieldDefinition
-
getDataDrivenEnumeration
- Specified by:
getDataDrivenEnumerationin interfaceFieldDefinition
-
setDataDrivenEnumeration
- Specified by:
setDataDrivenEnumerationin interfaceFieldDefinition
-
getTooltip
- Specified by:
getTooltipin interfaceFieldDefinition
-
setTooltip
- Specified by:
setTooltipin interfaceFieldDefinition
-
getHelpText
- Specified by:
getHelpTextin interfaceFieldDefinition
-
setHelpText
- Specified by:
setHelpTextin interfaceFieldDefinition
-
getHint
- Specified by:
getHintin interfaceFieldDefinition
-
setHint
- Specified by:
setHintin interfaceFieldDefinition
-
createOrRetrieveCopyInstance
public <G extends FieldDefinition> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Description copied from interface:MultiTenantCloneableClone this entity for the purpose of multiple tenancy. Note, extending classes should follow this pattern:public CreateResponse<MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponse<MyClass> createResponse = super.createOrRetrieveCopyInstance(context); if (createResponse.isAlreadyPopulated()) { return createResponse; } MyClass myClone = createResponse.getClone();Support should also be added for @Embeddable classes that contribute fields (collections or basic) to a cloneable entity://copy extended field values on myClone here
return createResponse; }
public CreateResponse<G extends MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponsecreateResponse = context.createOrRetrieveCopyInstance(this); MyClass myClone = createResponse.getClone(); //copy extended field values on myClone here
return createResponse; }
- Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<FieldDefinition>- Parameters:
context- a context object providing persistence and library functionality for copying entities- Returns:
- the resulting copy container, possibly already persisted
- Throws:
CloneNotSupportedException- if there's a problem detected with the cloning configuration
-