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

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
      extended by org.broadleafcommerce.cms.admin.server.handler.StructuredContentCustomPersistenceHandler
All Implemented Interfaces:
CustomPersistenceHandler

public class StructuredContentCustomPersistenceHandler
extends CustomPersistenceHandlerAdapter

Created by IntelliJ IDEA. User: jfischer Date: 8/23/11 Time: 1:56 PM To change this template use File | Settings | File Templates.


Field Summary
protected  EntityConfiguration entityConfiguration
           
protected  SandBoxService sandBoxService
           
protected  StructuredContentService structuredContentService
           
 
Constructor Summary
StructuredContentCustomPersistenceHandler()
           
 
Method Summary
 Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
protected  void addRule(Entity entity, StructuredContent structuredContentInstance, String propertyName, StructuredContentRuleType type)
           
protected  void addRulesToEntity(StructuredContent structuredContent, Entity structuredContentEntity)
           
 Boolean canHandleAdd(PersistencePackage persistencePackage)
           
 Boolean canHandleFetch(PersistencePackage persistencePackage)
           
 Boolean canHandleInspect(PersistencePackage persistencePackage)
           
 Boolean canHandleRemove(PersistencePackage persistencePackage)
           
 Boolean canHandleUpdate(PersistencePackage persistencePackage)
           
protected  FieldMetadata createHiddenField(String name)
           
protected  void createModifiedProperties(DynamicEntityDao dynamicEntityDao, InspectHelper helper, PersistencePerspective persistencePerspective)
           
 DynamicResultSet fetch(PersistencePackage persistencePackage, com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
protected  Map<String,FieldMetadata> getModifiedProperties()
           
protected  SandBox getSandBox()
           
 DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper)
           
 void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
protected  void updateRule(Entity entity, StructuredContent structuredContentInstance, String propertyName, StructuredContentRuleType type)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
willHandleSecurity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityConfiguration

protected EntityConfiguration entityConfiguration

structuredContentService

protected StructuredContentService structuredContentService

sandBoxService

protected SandBoxService sandBoxService
Constructor Detail

StructuredContentCustomPersistenceHandler

public StructuredContentCustomPersistenceHandler()
Method Detail

canHandleInspect

public Boolean canHandleInspect(PersistencePackage persistencePackage)
Specified by:
canHandleInspect in interface CustomPersistenceHandler
Overrides:
canHandleInspect in class CustomPersistenceHandlerAdapter

canHandleFetch

public Boolean canHandleFetch(PersistencePackage persistencePackage)
Specified by:
canHandleFetch in interface CustomPersistenceHandler
Overrides:
canHandleFetch in class CustomPersistenceHandlerAdapter

canHandleAdd

public Boolean canHandleAdd(PersistencePackage persistencePackage)
Specified by:
canHandleAdd in interface CustomPersistenceHandler
Overrides:
canHandleAdd in class CustomPersistenceHandlerAdapter

canHandleRemove

public Boolean canHandleRemove(PersistencePackage persistencePackage)
Specified by:
canHandleRemove in interface CustomPersistenceHandler
Overrides:
canHandleRemove in class CustomPersistenceHandlerAdapter

canHandleUpdate

public Boolean canHandleUpdate(PersistencePackage persistencePackage)
Specified by:
canHandleUpdate in interface CustomPersistenceHandler
Overrides:
canHandleUpdate in class CustomPersistenceHandlerAdapter

getSandBox

protected SandBox getSandBox()

getModifiedProperties

protected Map<String,FieldMetadata> getModifiedProperties()

createModifiedProperties

protected void createModifiedProperties(DynamicEntityDao dynamicEntityDao,
                                        InspectHelper helper,
                                        PersistencePerspective persistencePerspective)
                                 throws InvocationTargetException,
                                        ClassNotFoundException,
                                        NoSuchMethodException,
                                        IllegalAccessException,
                                        ServiceException,
                                        NoSuchFieldException
Throws:
InvocationTargetException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
ServiceException
NoSuchFieldException

createHiddenField

protected FieldMetadata createHiddenField(String name)

inspect

public DynamicResultSet inspect(PersistencePackage persistencePackage,
                                DynamicEntityDao dynamicEntityDao,
                                InspectHelper helper)
                         throws ServiceException
Specified by:
inspect in interface CustomPersistenceHandler
Overrides:
inspect in class CustomPersistenceHandlerAdapter
Throws:
ServiceException

fetch

public DynamicResultSet fetch(PersistencePackage persistencePackage,
                              com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
                              DynamicEntityDao dynamicEntityDao,
                              RecordHelper helper)
                       throws ServiceException
Specified by:
fetch in interface CustomPersistenceHandler
Overrides:
fetch in class CustomPersistenceHandlerAdapter
Throws:
ServiceException

addRulesToEntity

protected void addRulesToEntity(StructuredContent structuredContent,
                                Entity structuredContentEntity)

add

public Entity add(PersistencePackage persistencePackage,
                  DynamicEntityDao dynamicEntityDao,
                  RecordHelper helper)
           throws ServiceException
Specified by:
add in interface CustomPersistenceHandler
Overrides:
add in class CustomPersistenceHandlerAdapter
Throws:
ServiceException

update

public Entity update(PersistencePackage persistencePackage,
                     DynamicEntityDao dynamicEntityDao,
                     RecordHelper helper)
              throws ServiceException
Specified by:
update in interface CustomPersistenceHandler
Overrides:
update in class CustomPersistenceHandlerAdapter
Throws:
ServiceException

remove

public void remove(PersistencePackage persistencePackage,
                   DynamicEntityDao dynamicEntityDao,
                   RecordHelper helper)
            throws ServiceException
Specified by:
remove in interface CustomPersistenceHandler
Overrides:
remove in class CustomPersistenceHandlerAdapter
Throws:
ServiceException

addRule

protected void addRule(Entity entity,
                       StructuredContent structuredContentInstance,
                       String propertyName,
                       StructuredContentRuleType type)

updateRule

protected void updateRule(Entity entity,
                          StructuredContent structuredContentInstance,
                          String propertyName,
                          StructuredContentRuleType type)


Copyright © 2011. All Rights Reserved.