public class StructuredContentCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected EntityConfiguration |
entityConfiguration |
protected SandBoxService |
sandBoxService |
protected StructuredContentService |
structuredContentService |
Constructor and Description |
---|
StructuredContentCustomPersistenceHandler() |
willHandleSecurity
protected EntityConfiguration entityConfiguration
protected StructuredContentService structuredContentService
protected SandBoxService sandBoxService
public StructuredContentCustomPersistenceHandler()
public Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect
in interface CustomPersistenceHandler
canHandleInspect
in class CustomPersistenceHandlerAdapter
public Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch
in interface CustomPersistenceHandler
canHandleFetch
in class CustomPersistenceHandlerAdapter
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd
in interface CustomPersistenceHandler
canHandleAdd
in class CustomPersistenceHandlerAdapter
public Boolean canHandleRemove(PersistencePackage persistencePackage)
canHandleRemove
in interface CustomPersistenceHandler
canHandleRemove
in class CustomPersistenceHandlerAdapter
public Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate
in interface CustomPersistenceHandler
canHandleUpdate
in class CustomPersistenceHandlerAdapter
protected SandBox getSandBox()
protected Map<String,FieldMetadata> getModifiedProperties()
protected void createModifiedProperties(DynamicEntityDao dynamicEntityDao, InspectHelper helper, PersistencePerspective persistencePerspective) throws InvocationTargetException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, ServiceException, NoSuchFieldException
protected FieldMetadata createHiddenField(String name)
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect
in interface CustomPersistenceHandler
inspect
in class CustomPersistenceHandlerAdapter
ServiceException
public DynamicResultSet fetch(PersistencePackage persistencePackage, com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch
in interface CustomPersistenceHandler
fetch
in class CustomPersistenceHandlerAdapter
ServiceException
protected void addRulesToEntity(StructuredContent structuredContent, Entity structuredContentEntity)
public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
add
in interface CustomPersistenceHandler
add
in class CustomPersistenceHandlerAdapter
ServiceException
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update
in interface CustomPersistenceHandler
update
in class CustomPersistenceHandlerAdapter
ServiceException
public void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
remove
in interface CustomPersistenceHandler
remove
in class CustomPersistenceHandlerAdapter
ServiceException
protected void addRule(Entity entity, StructuredContent structuredContentInstance, String propertyName, StructuredContentRuleType type)
protected void updateRule(Entity entity, StructuredContent structuredContentInstance, String propertyName, StructuredContentRuleType type)
Copyright © 2013. All rights reserved.