org.broadleafcommerce.cms.admin.server.handler
Class DynamicFieldPersistenceHandlerHelper

java.lang.Object
  extended by org.broadleafcommerce.cms.admin.server.handler.DynamicFieldPersistenceHandlerHelper

@Component(value="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
DynamicFieldPersistenceHandlerHelper()
           
 
Method Summary
 Property[] buildDynamicPropertyList(List<FieldGroup> fieldGroups, Class<?> inheritedType)
          Builds all of the metadata for all of the dynamic properties within a StructuredContentType, gleaned from the FieldGroups and FieldDefinitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicFieldPersistenceHandlerHelper

public DynamicFieldPersistenceHandlerHelper()
Method Detail

buildDynamicPropertyList

public Property[] buildDynamicPropertyList(List<FieldGroup> fieldGroups,
                                           Class<?> inheritedType)
Builds all of the metadata for all of the dynamic properties within a StructuredContentType, gleaned from the FieldGroups and FieldDefinitions.

Parameters:
fieldGroups - groups that the Propertys are built from
inheritedType - 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)
Returns:


Copyright © 2013. All Rights Reserved.