use of cz.mzk.recordmanager.api.model.configurations.ImportConfigurationDto in project RecordManager2 by moravianlibrary.
the class ImportConfigurationServiceImpl method getConfigurations.
@Override
@Transactional(readOnly = true)
public List<ImportConfigurationDto> getConfigurations() {
List<ImportConfiguration> configurations = importConfigurationDAO.findAll();
List<ImportConfigurationDto> result = new ArrayList<ImportConfigurationDto>(configurations.size());
for (ImportConfiguration configuration : configurations) {
result.add(translator.translate(configuration));
}
return result;
}
use of cz.mzk.recordmanager.api.model.configurations.ImportConfigurationDto in project RecordManager2 by moravianlibrary.
the class Translator method translate.
public ImportConfigurationDto translate(ImportConfiguration configuration) {
ImportConfigurationDto importConfigurationDto = new ImportConfigurationDto();
importConfigurationDto.setId(configuration.getId());
importConfigurationDto.setIdPrefix(configuration.getIdPrefix());
importConfigurationDto.setLibrary(translate(configuration.getLibrary()));
return importConfigurationDto;
}
Aggregations