@Component(value="blStructuredContentTypeCustomPersistenceHandler") public class StructuredContentTypeCustomPersistenceHandler extends CustomPersistenceHandlerAdapter implements DynamicEntityRetriever
| Modifier and Type | Field and Description |
|---|---|
protected DynamicFieldPersistenceHandlerHelper |
dynamicFieldUtil |
protected StructuredContentService |
structuredContentService |
DEFAULT_ORDER| Constructor and Description |
|---|
StructuredContentTypeCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
Invoked when
StructuredContent is saved in order to fill out the dynamic form for the structured content type |
protected Entity |
addOrUpdate(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) |
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Entity |
fetchDynamicEntity(Serializable root,
List<String> dirtyFields,
boolean includeId) |
Entity |
fetchEntityBasedOnId(String structuredContentId,
List<String> dirtyFields) |
String |
getFieldContainerClassName() |
DynamicResultSet |
inspect(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
InspectHelper helper) |
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
Invoked when
StructuredContent is saved in order to fill out the dynamic form for the structured content type |
getMetadata, getOrder, getResultSet, remove, willHandleSecurityprotected StructuredContentService structuredContentService
protected DynamicFieldPersistenceHandlerHelper dynamicFieldUtil
public StructuredContentTypeCustomPersistenceHandler()
public Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpublic Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
canHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterServiceExceptionpublic DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity fetchEntityBasedOnId(String structuredContentId, List<String> dirtyFields) throws Exception
fetchEntityBasedOnId in interface DynamicEntityRetrieverExceptionpublic String getFieldContainerClassName()
getFieldContainerClassName in interface DynamicEntityRetrieverpublic Entity fetchDynamicEntity(Serializable root, List<String> dirtyFields, boolean includeId) throws Exception
fetchDynamicEntity in interface DynamicEntityRetrieverExceptionpublic Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
StructuredContent is saved in order to fill out the dynamic form for the structured content typeupdate in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
StructuredContent is saved in order to fill out the dynamic form for the structured content typeadd in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterServiceExceptionprotected Entity addOrUpdate(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
ServiceExceptionCopyright © 2014. All Rights Reserved.