@Component public final class WebCmsPublicationImporter extends AbstractWebCmsAssetImporter<WebCmsPublication>
WebCmsPublication assets.LOG| Constructor and Description |
|---|
WebCmsPublicationImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected WebCmsPublication |
createDto(WebCmsDataEntry data,
WebCmsPublication itemToUpdate,
WebCmsDataAction action,
Map<String,Object> dataValues)
Create a DTO object for either a new instance or an existing instance.
|
protected WebCmsPublication |
getExistingEntity(String entryKey,
WebCmsDataEntry data,
WebCmsDomain domain)
If no asset has been found by the unique asset key and domain combination (or no asset key was defined), this method will be called with the entry key.
|
protected WebCmsPublication |
prepareForSaving(WebCmsPublication itemToBeSaved,
WebCmsDataEntry data)
Override if you want to post process an item before saving.
|
protected void |
validate(WebCmsPublication itemToBeSaved,
org.springframework.validation.Errors errors)
Perform some custom validation on the item to be saved.
|
deleteInstance, retrieveExistingInstance, saveDto, setAssetRepository, supports, validateObjectIdaddForceUpdateProperty, applyDataValues, importData, resolveAction, retrieveDomainForDataEntry, setPropertyDataImportService, validateForSavingprotected WebCmsPublication createDto(WebCmsDataEntry data, WebCmsPublication itemToUpdate, WebCmsDataAction action, Map<String,Object> dataValues)
AbstractWebCmsDataImporternull a new instance should be created.
Note that the DTO should not apply the data entry values yet, but the data entry
can be used to determine the initial type of instance that needs to be created.
If the DTO is null, the import will be skipped but properties will still be called.createDto in class AbstractWebCmsDataImporter<WebCmsPublication,WebCmsPublication>data - entryitemToUpdate - instance or null if a new instance should be createdaction - purpose for which the DTO should be created (create, delete or replace)dataValues - modifiable collection of the data values that will be applied afterwardsprotected WebCmsPublication prepareForSaving(WebCmsPublication itemToBeSaved, WebCmsDataEntry data)
AbstractWebCmsDataImporterprepareForSaving in class AbstractWebCmsDataImporter<WebCmsPublication,WebCmsPublication>itemToBeSaved - original item to be saveddata - that was used to build the itemprotected WebCmsPublication getExistingEntity(String entryKey, WebCmsDataEntry data, WebCmsDomain domain)
AbstractWebCmsAssetImportergetExistingEntity in class AbstractWebCmsAssetImporter<WebCmsPublication>entryKey - for the assetdata - for he assetdomain - for the assetprotected void validate(WebCmsPublication itemToBeSaved, org.springframework.validation.Errors errors)
AbstractWebCmsDataImportervalidate in class AbstractWebCmsDataImporter<WebCmsPublication,WebCmsPublication>itemToBeSaved - item to be savederrors - collection to add validation errors toCopyright © 2020. All rights reserved.