RED-2200 - Dossier Template export and import

- rework of pmd failures
This commit is contained in:
devplant 2022-09-22 11:05:28 +03:00
parent ddf78824c9
commit 61e9456a9b

View File

@ -50,7 +50,6 @@ import java.util.function.Function;
import java.util.stream.Collectors;
import static com.iqser.red.service.persistence.management.v1.processor.utils.MagicConverter.convert;
import static java.util.stream.Collectors.toList;
@Slf4j
@Service
@ -222,7 +221,7 @@ public class DossierTemplateImportService {
List<String> existing = entryPersistenceService.getEntries(typeId, dictionaryType, null)
.stream()
.map(BaseDictionaryEntry::getValue)
.collect(toList());
.collect(Collectors.toList());
if (!existing.isEmpty()) {
dictionaryService.deleteEntries(typeId, existing, dictionaryType);
}
@ -507,9 +506,4 @@ public class DossierTemplateImportService {
return filename.substring(0, index);
}
private String removeMultiFileFromFilename(String filename) {
var index = filename.indexOf(ExportFilename.REPORT_TEMPLATE_MULTI_FILE.getFilename());
return filename.substring(0, index);
}
}