From 2d27084d87e5164ee1b903dc3530e4f9977b6545 Mon Sep 17 00:00:00 2001 From: Erling Jahr Date: Mon, 20 Nov 2023 13:13:54 +0100 Subject: [PATCH] removed externalUserrepository --- .../externalUser/ExternalUserRepository.java | 16 ---------------- .../externalUser/ExternalUserService.java | 10 ++-------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 src/main/java/no/fintlabs/externalUser/ExternalUserRepository.java diff --git a/src/main/java/no/fintlabs/externalUser/ExternalUserRepository.java b/src/main/java/no/fintlabs/externalUser/ExternalUserRepository.java deleted file mode 100644 index 7d06cc7..0000000 --- a/src/main/java/no/fintlabs/externalUser/ExternalUserRepository.java +++ /dev/null @@ -1,16 +0,0 @@ -package no.fintlabs.externalUser; - -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -import java.util.Optional; -import java.util.UUID; - -@Repository -public interface ExternalUserRepository extends JpaRepository { - - - Optional findExternalUserByIdentityProviderUserObjectId(UUID uuid); - - -} diff --git a/src/main/java/no/fintlabs/externalUser/ExternalUserService.java b/src/main/java/no/fintlabs/externalUser/ExternalUserService.java index b934fa1..ce47718 100644 --- a/src/main/java/no/fintlabs/externalUser/ExternalUserService.java +++ b/src/main/java/no/fintlabs/externalUser/ExternalUserService.java @@ -5,19 +5,13 @@ import no.fintlabs.user.UserService; import org.springframework.stereotype.Service; -import java.util.List; -import java.util.Optional; -import java.util.function.Consumer; - - @Service @Slf4j public class ExternalUserService { - private final ExternalUserRepository externalUserRepository; + private final UserService userService; - public ExternalUserService(ExternalUserRepository externalUserRepository, UserService userService) { - this.externalUserRepository = externalUserRepository; + public ExternalUserService(UserService userService) { this.userService = userService; }