Class DynamicFieldPersistenceHandlerHelper
java.lang.Object
org.broadleafcommerce.cms.admin.server.handler.DynamicFieldPersistenceHandlerHelper
@Component("blDynamicFieldPersistenceHandlerHelper")
public class DynamicFieldPersistenceHandlerHelper
extends Object
Commonalities between
PageTemplateCustomPersistenceHandler and StructuredContentTypeCustomPersistenceHandler
since they share similar issues in regards to dynamic fields- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDynamicProperty(FieldDefinition definition, Class<?> inheritedType) Property[]buildDynamicPropertyList(List<FieldGroup> fieldGroups, Class<?> inheritedType) Builds all of the metadata for all of the dynamic properties within aStructuredContentType, gleaned from theFieldGroups andFieldDefinitions.Property[]buildDynamicPropertyList(Map<FieldGroup, Long> fieldGroups, Class<?> inheritedType) protected voidconstructPropertiesFromFieldGroup(Class<?> inheritedType, List<Property> propertiesList, FieldGroup group, Long groupOrder)
-
Constructor Details
-
DynamicFieldPersistenceHandlerHelper
public DynamicFieldPersistenceHandlerHelper()
-
-
Method Details
-
buildDynamicProperty
-
buildDynamicPropertyList
Builds all of the metadata for all of the dynamic properties within aStructuredContentType, gleaned from theFieldGroups andFieldDefinitions.- Parameters:
fieldGroups- groups that thePropertys are built frominheritedType- the value that each builtFieldMetadatafor each property will use to notate where the dynamic field actually came from (meaningFieldMetadata.setAvailableToTypes(String[])andFieldMetadata.setInheritedFromType(String)- Returns:
-
constructPropertiesFromFieldGroup
protected void constructPropertiesFromFieldGroup(Class<?> inheritedType, List<Property> propertiesList, FieldGroup group, Long groupOrder) -
buildDynamicPropertyList
public Property[] buildDynamicPropertyList(Map<FieldGroup, Long> fieldGroups, Class<?> inheritedType)
-