use of cz.mzk.recordmanager.api.model.configurations.DownloadImportConfigurationDto in project RecordManager2 by moravianlibrary.
the class Translator method translate.
public DownloadImportConfigurationDto translate(DownloadImportConfiguration downloadImportConfiguration) {
DownloadImportConfigurationDto downloadImportConfigurationDto = new DownloadImportConfigurationDto();
downloadImportConfigurationDto.setId(downloadImportConfiguration.getId());
downloadImportConfigurationDto.setIdPrefix(downloadImportConfiguration.getIdPrefix());
downloadImportConfigurationDto.setUrl(downloadImportConfiguration.getUrl());
downloadImportConfigurationDto.setFormat(downloadImportConfiguration.getFormat());
downloadImportConfigurationDto.setJobName(downloadImportConfiguration.getJobName());
downloadImportConfigurationDto.setRegex(downloadImportConfiguration.getRegex());
downloadImportConfigurationDto.setContact(translate(downloadImportConfiguration.getContact()));
downloadImportConfigurationDto.setThisLibrary(downloadImportConfiguration.isLibrary());
downloadImportConfigurationDto.setConfigurationType(downloadImportConfiguration.getClass().getSimpleName());
return downloadImportConfigurationDto;
}
Aggregations