From 7c8ce81a418bdf311d13dcc2c87fb874679a09f0 Mon Sep 17 00:00:00 2001 From: Hauke Hund Date: Mon, 16 Dec 2024 23:01:21 +0100 Subject: [PATCH] typo fix --- .../main/java/dev/dsf/fhir/dao/command/BatchCommandList.java | 2 +- .../java/dev/dsf/fhir/dao/command/TransactionCommandList.java | 4 ++-- .../src/main/java/dev/dsf/fhir/help/ResponseGenerator.java | 4 ++-- .../dsf/fhir/webservice/impl/AbstractResourceServiceImpl.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/BatchCommandList.java b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/BatchCommandList.java index 2b6f15a90..6bcb2588a 100755 --- a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/BatchCommandList.java +++ b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/BatchCommandList.java @@ -169,7 +169,7 @@ private Consumer execute(Map idTranslationTable, Connec if (e instanceof PSQLException s && PSQLState.UNIQUE_VIOLATION.getState().equals(s.getSQLState())) caughtExceptions.put(command.getIndex(), - new WebApplicationException(responseGenerator.dupicateResourceExists())); + new WebApplicationException(responseGenerator.duplicateResourceExists())); else caughtExceptions.put(command.getIndex(), e); diff --git a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/TransactionCommandList.java b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/TransactionCommandList.java index 4dc591044..c92b1164e 100755 --- a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/TransactionCommandList.java +++ b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/dao/command/TransactionCommandList.java @@ -128,7 +128,7 @@ public Bundle execute() throws WebApplicationException if (e instanceof PSQLException s && PSQLState.UNIQUE_VIOLATION.getState().equals(s.getSQLState())) - e = new WebApplicationException(e, responseGenerator.dupicateResourceExists()); + e = new WebApplicationException(e, responseGenerator.duplicateResourceExists()); try { @@ -198,7 +198,7 @@ public Bundle execute() throws WebApplicationException connection.rollback(); if (PSQLState.UNIQUE_VIOLATION.getState().equals(e.getSQLState())) - throw new WebApplicationException(responseGenerator.dupicateResourceExists()); + throw new WebApplicationException(responseGenerator.duplicateResourceExists()); else throw e; } diff --git a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/help/ResponseGenerator.java b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/help/ResponseGenerator.java index 7a655f80d..c05969f94 100755 --- a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/help/ResponseGenerator.java +++ b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/help/ResponseGenerator.java @@ -381,7 +381,7 @@ public Response multipleExists(String resourceTypeName, String ifNoneExistsHeade return Response.status(Status.PRECONDITION_FAILED).entity(outcome).build(); } - public Response dupicateResourceExists() + public Response duplicateResourceExists() { logger.warn("Duplicate resources exists"); @@ -389,7 +389,7 @@ public Response dupicateResourceExists() return Response.status(Status.FORBIDDEN).entity(outcome).build(); } - public Response dupicateResourceExists(String resourceTypeName) + public Response duplicateResourceExists(String resourceTypeName) { logger.warn("Duplicate {} resources exists", resourceTypeName); diff --git a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/webservice/impl/AbstractResourceServiceImpl.java b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/webservice/impl/AbstractResourceServiceImpl.java index cddd2049a..335967e02 100755 --- a/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/webservice/impl/AbstractResourceServiceImpl.java +++ b/dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/webservice/impl/AbstractResourceServiceImpl.java @@ -168,7 +168,7 @@ public Response create(R resource, UriInfo uri, HttpHeaders headers) connection.rollback(); if (PSQLState.UNIQUE_VIOLATION.getState().equals(e.getSQLState())) - throw new WebApplicationException(responseGenerator.dupicateResourceExists(resourceTypeName)); + throw new WebApplicationException(responseGenerator.duplicateResourceExists(resourceTypeName)); else throw e; } @@ -535,7 +535,7 @@ public Response update(String id, R resource, UriInfo uri, HttpHeaders headers) { if (PSQLState.UNIQUE_VIOLATION.getState().equals(e.getSQLState())) throw new WebApplicationException( - responseGenerator.dupicateResourceExists(resourceTypeName)); + responseGenerator.duplicateResourceExists(resourceTypeName)); connection.rollback(); throw e;