org.broadleafcommerce.cms.admin.server.handler
Class PagesCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.cms.admin.server.handler.PagesCustomPersistenceHandler
- All Implemented Interfaces:
- CustomPersistenceHandler
public class PagesCustomPersistenceHandler
- extends CustomPersistenceHandlerAdapter
- Author:
- Jeff Fischer
|
Method Summary |
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
|
protected void |
addRule(Entity entity,
Page structuredContentInstance,
String propertyName,
PageRuleType type)
|
protected void |
addRulesToEntity(Page 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> |
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)
|
protected void |
updateRule(Entity entity,
Page structuredContentInstance,
String propertyName,
PageRuleType type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityConfiguration
protected EntityConfiguration entityConfiguration
pageService
protected PageService pageService
sandBoxService
protected SandBoxService sandBoxService
PagesCustomPersistenceHandler
public PagesCustomPersistenceHandler()
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
addRulesToEntity
protected void addRulesToEntity(Page structuredContent,
Entity structuredContentEntity)
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,
NoSuchFieldException
- Throws:
ClassNotFoundException
SecurityException
IllegalArgumentException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
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
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,
Page structuredContentInstance,
String propertyName,
PageRuleType type)
updateRule
protected void updateRule(Entity entity,
Page structuredContentInstance,
String propertyName,
PageRuleType type)
Copyright © 2013. All Rights Reserved.