@Component(value="blStructuredContentTypeCustomPersistenceHandler") public class StructuredContentTypeCustomPersistenceHandler extends CustomPersistenceHandlerAdapter implements DynamicEntityRetriever
| Modifier and Type | Field and Description |
|---|---|
protected DynamicFieldPersistenceHandlerHelper |
dynamicFieldUtil |
protected javax.persistence.EntityManager |
em |
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)
Is this persistence handler capable of dealing with an add request from the admin
|
Boolean |
canHandleFetch(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an fetch request from the admin
|
Boolean |
canHandleInspect(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an inspect request from the admin
|
Boolean |
canHandleRemove(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with a remove request from the admin
|
Boolean |
canHandleUpdate(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an update request from the admin
|
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
protected javax.persistence.EntityManager em
public StructuredContentTypeCustomPersistenceHandler()
public Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpersistencePackage - details about the fetch operationpublic Boolean canHandleAdd(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpersistencePackage - details about the add operationpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpersistencePackage - details about the inspect operationpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpersistencePackage - details about the remove operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpersistencePackage - details about the update operationpublic 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 © 2015. All rights reserved.