@Component public class WebCmsRemoteEndpointImporter extends AbstractWebCmsDataImporter<WebCmsEndpoint,WebCmsEndpoint>
WebCmsRemoteEndpoints from a yaml file.LOG| Constructor and Description |
|---|
WebCmsRemoteEndpointImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected WebCmsEndpoint |
createDto(WebCmsDataEntry data,
WebCmsEndpoint existing,
WebCmsDataAction action,
Map<String,Object> dataValues)
Create a DTO object for either a new instance or an existing instance.
|
protected void |
deleteInstance(WebCmsEndpoint instance,
WebCmsDataEntry data)
Perform the delete action on existing instance.
|
protected WebCmsEndpoint |
retrieveExistingInstance(WebCmsDataEntry data)
Get the existing object that this data represents.
|
protected void |
saveDto(WebCmsEndpoint dto,
WebCmsDataAction action,
WebCmsDataEntry data)
Save an updated or created instance.
|
boolean |
supports(WebCmsDataEntry data) |
addForceUpdateProperty, applyDataValues, importData, prepareForSaving, resolveAction, retrieveDomainForDataEntry, setPropertyDataImportService, validate, validateForSavingpublic boolean supports(WebCmsDataEntry data)
protected WebCmsEndpoint retrieveExistingInstance(WebCmsDataEntry data)
AbstractWebCmsDataImporternull..retrieveExistingInstance in class AbstractWebCmsDataImporter<WebCmsEndpoint,WebCmsEndpoint>data - entrynullprotected WebCmsEndpoint createDto(WebCmsDataEntry data, WebCmsEndpoint existing, 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<WebCmsEndpoint,WebCmsEndpoint>data - entryexisting - 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 void deleteInstance(WebCmsEndpoint instance, WebCmsDataEntry data)
AbstractWebCmsDataImporterdeleteInstance in class AbstractWebCmsDataImporter<WebCmsEndpoint,WebCmsEndpoint>instance - to deletedata - entry that is being importedprotected void saveDto(WebCmsEndpoint dto, WebCmsDataAction action, WebCmsDataEntry data)
AbstractWebCmsDataImportersaveDto in class AbstractWebCmsDataImporter<WebCmsEndpoint,WebCmsEndpoint>dto - that should be savedaction - type of save action (create, update or replace)data - entry that is being importedCopyright © 2020. All rights reserved.