@Component public final class WebCmsArticleImporter extends AbstractWebCmsAssetImporter<WebCmsArticle>
LOG| Constructor and Description |
|---|
WebCmsArticleImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected WebCmsArticle |
createDto(WebCmsDataEntry data,
WebCmsArticle itemToUpdate,
WebCmsDataAction action,
Map<String,Object> dataValues)
Create a DTO object for either a new instance or an existing instance.
|
protected WebCmsArticle |
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.
|
deleteInstance, retrieveExistingInstance, saveDto, setAssetRepository, supports, validateObjectIdaddForceUpdateProperty, applyDataValues, importData, prepareForSaving, resolveAction, retrieveDomainForDataEntry, setPropertyDataImportService, validate, validateForSavingprotected WebCmsArticle createDto(WebCmsDataEntry data, WebCmsArticle 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<WebCmsArticle,WebCmsArticle>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 WebCmsArticle getExistingEntity(String entryKey, WebCmsDataEntry data, WebCmsDomain domain)
AbstractWebCmsAssetImportergetExistingEntity in class AbstractWebCmsAssetImporter<WebCmsArticle>entryKey - for the assetdata - for he assetdomain - for the assetCopyright © 2020. All rights reserved.