@Component(value="blDynamicFieldPersistenceHandlerHelper") public class DynamicFieldPersistenceHandlerHelper extends Object
PageTemplateCustomPersistenceHandler
and StructuredContentTypeCustomPersistenceHandler
since they share similar issues in regards to dynamic fieldsConstructor and Description |
---|
DynamicFieldPersistenceHandlerHelper() |
Modifier and Type | Method and Description |
---|---|
Property |
buildDynamicProperty(FieldDefinition definition,
Class<?> inheritedType) |
Property[] |
buildDynamicPropertyList(List<FieldGroup> fieldGroups,
Class<?> inheritedType)
Builds all of the metadata for all of the dynamic properties within a
StructuredContentType , gleaned from
the FieldGroup s and FieldDefinition s. |
Property[] |
buildDynamicPropertyList(Map<FieldGroup,Long> fieldGroups,
Class<?> inheritedType) |
public DynamicFieldPersistenceHandlerHelper()
public Property buildDynamicProperty(FieldDefinition definition, Class<?> inheritedType)
public Property[] buildDynamicPropertyList(List<FieldGroup> fieldGroups, Class<?> inheritedType)
StructuredContentType
, gleaned from
the FieldGroup
s and FieldDefinition
s.fieldGroups
- groups that the Property
s are built frominheritedType
- the value that each built FieldMetadata
for each property will use to notate where the
dynamic field actually came from (meaning FieldMetadata.setAvailableToTypes(String[])
and FieldMetadata.setInheritedFromType(String)
public Property[] buildDynamicPropertyList(Map<FieldGroup,Long> fieldGroups, Class<?> inheritedType)
Copyright © 2022. All rights reserved.