public abstract class AbstractWebCmsPropertyDataImporter<T,U extends com.foreach.across.modules.hibernate.business.SettableIdBasedEntity<U>> extends Object implements WebCmsPropertyDataImporter<T>
WebCmsPropertyDataImporter.Phase| Constructor and Description |
|---|
AbstractWebCmsPropertyDataImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applyDataValues(Map<String,Object> values,
U dto)
Apply the data values to the dto object.
|
protected abstract U |
createDto(WebCmsDataEntry menuDataSet,
U existing,
WebCmsDataAction action,
T parent) |
protected abstract void |
delete(U dto,
T parent) |
protected abstract U |
getExisting(WebCmsDataEntry dataKey,
T parent) |
boolean |
importData(WebCmsPropertyDataImporter.Phase phase,
WebCmsDataEntry data,
T parent,
WebCmsDataAction action)
Perform the actual import of the property data.
|
protected abstract void |
save(U dto,
T parent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic boolean importData(WebCmsPropertyDataImporter.Phase phase, WebCmsDataEntry data, T parent, WebCmsDataAction action)
WebCmsPropertyDataImportertrue this means that data has been imported.importData in interface WebCmsPropertyDataImporter<T>phase - in which this importer should executedata - specific property data setparent - asset being importedaction - that will be performed with the assetprotected abstract U createDto(WebCmsDataEntry menuDataSet, U existing, WebCmsDataAction action, T parent)
protected abstract U getExisting(WebCmsDataEntry dataKey, T parent)
protected boolean applyDataValues(Map<String,Object> values, U dto)
false no values have been applied to the DTO and actual updating
might get skipped.values - to apply (key/value pairs)dto - to set the values onCopyright © 2020. All rights reserved.