From 12fb324b9890fe405afe9c533ca03d34527d3f54 Mon Sep 17 00:00:00 2001 From: Arved Solth Date: Thu, 21 Apr 2022 14:24:54 +0200 Subject: [PATCH] Fix typo --- .../main/java/org/kitodo/production/enums/ObjectType.java | 2 +- .../org/kitodo/production/forms/MappingFileEditView.java | 6 +++--- .../org/kitodo/production/forms/MappingFileListView.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/enums/ObjectType.java b/Kitodo/src/main/java/org/kitodo/production/enums/ObjectType.java index 43501b88c8a..95b03001ba9 100644 --- a/Kitodo/src/main/java/org/kitodo/production/enums/ObjectType.java +++ b/Kitodo/src/main/java/org/kitodo/production/enums/ObjectType.java @@ -36,7 +36,7 @@ public enum ObjectType { WORKFLOW("workflow", "workflows", true), FILTER("filter", "filters", true), IMPORT_CONFIGURATION("importConfig.configuration", "importConfig.configurations", false), - MAPPPING_FILE("mappingFile.file", "mappingFile.files", false), + MAPPING_FILE("mappingFile.file", "mappingFile.files", false), NONE("", "", false); private final String messageKeySingular; diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileEditView.java b/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileEditView.java index 17039d07bbd..0d7ea54618c 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileEditView.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileEditView.java @@ -57,7 +57,7 @@ public void load(int id) { setSaveDisabled(true); } catch (DAOException e) { Helper.setErrorMessage(ERROR_LOADING_ONE, - new Object[] { ObjectType.MAPPPING_FILE.getTranslationSingular(), id }, logger, e); + new Object[] { ObjectType.MAPPING_FILE.getTranslationSingular(), id }, logger, e); } } @@ -71,7 +71,7 @@ public String save() { ServiceManager.getMappingFileService().saveToDatabase(mappingFile); return projectsPage; } catch (DAOException e) { - Helper.setErrorMessage(ERROR_SAVING, new Object[] {ObjectType.MAPPPING_FILE.getTranslationSingular() }, logger, e); + Helper.setErrorMessage(ERROR_SAVING, new Object[] {ObjectType.MAPPING_FILE.getTranslationSingular() }, logger, e); return this.stayOnCurrentPage; } } @@ -104,7 +104,7 @@ public List getFilenames() { return mappingFiles.filter(f -> f.toString().endsWith(".xsl") || f.toString().endsWith("xslt")) .map(Path::getFileName).sorted().collect(Collectors.toList()); } catch (IOException e) { - Helper.setErrorMessage(ERROR_LOADING_MANY, new Object[] {ObjectType.MAPPPING_FILE.getTranslationPlural() }, + Helper.setErrorMessage(ERROR_LOADING_MANY, new Object[] {ObjectType.MAPPING_FILE.getTranslationPlural() }, logger, e); return new ArrayList<>(); } diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileListView.java b/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileListView.java index fe308fad236..b47e05bba10 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileListView.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/MappingFileListView.java @@ -43,7 +43,7 @@ public List getMappingFiles() { return ServiceManager.getMappingFileService().getAll(); } catch (DAOException e) { Helper.setErrorMessage(ERROR_LOADING_MANY, - new Object[] {ObjectType.MAPPPING_FILE.getTranslationPlural() }, logger, e); + new Object[] {ObjectType.MAPPING_FILE.getTranslationPlural() }, logger, e); return new ArrayList<>(); } } @@ -66,7 +66,7 @@ public void deleteById(int id) { try { ServiceManager.getMappingFileService().removeFromDatabase(id); } catch (DAOException e) { - Helper.setErrorMessage(ERROR_DELETING, new Object[] {ObjectType.MAPPPING_FILE.getTranslationSingular() }, logger, e); + Helper.setErrorMessage(ERROR_DELETING, new Object[] {ObjectType.MAPPING_FILE.getTranslationSingular() }, logger, e); } }