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

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

public class PagesCustomPersistenceHandler
extends CustomPersistenceHandlerAdapter

Author:
Jeff Fischer

Field Summary
protected  PageService pageService
           
protected  SandBoxService sandBoxService
           
 
Constructor Summary
PagesCustomPersistenceHandler()
           
 
Method Summary
 Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper)
           
 Boolean canHandleAdd(PersistencePackage persistencePackage)
           
 Boolean canHandleFetch(PersistencePackage persistencePackage)
           
 Boolean canHandleInspect(PersistencePackage persistencePackage)
           
 Boolean canHandleRemove(PersistencePackage persistencePackage)
           
 Boolean canHandleUpdate(PersistencePackage persistencePackage)
           
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> getMergedProperties(Class<?> ceilingEntityFullyQualifiedClass, DynamicEntityDao dynamicEntityDao, Boolean populateManyToOneFields, String[] includeManyToOneFields, String[] excludeManyToOneFields, String configurationKey, ForeignKey[] additionalForeignKeys)
           
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)
           
 
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

pageService

protected PageService pageService

sandBoxService

protected SandBoxService sandBoxService
Constructor Detail

PagesCustomPersistenceHandler

public PagesCustomPersistenceHandler()
Method Detail

getModifiedProperties

protected Map<String,FieldMetadata> getModifiedProperties()

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

canHandleInspect

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

getSandBox

protected SandBox getSandBox()

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

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

getMergedProperties

protected Map<String,FieldMetadata> getMergedProperties(Class<?> ceilingEntityFullyQualifiedClass,
                                                        DynamicEntityDao dynamicEntityDao,
                                                        Boolean populateManyToOneFields,
                                                        String[] includeManyToOneFields,
                                                        String[] excludeManyToOneFields,
                                                        String configurationKey,
                                                        ForeignKey[] additionalForeignKeys)
                                                 throws ClassNotFoundException,
                                                        SecurityException,
                                                        IllegalArgumentException,
                                                        NoSuchMethodException,
                                                        IllegalAccessException,
                                                        InvocationTargetException
Throws:
ClassNotFoundException
SecurityException
IllegalArgumentException
NoSuchMethodException
IllegalAccessException
InvocationTargetException

createModifiedProperties

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

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

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


Copyright © 2012. All Rights Reserved.