From 85d71428da542bfa9d545ce13fae6608f8b9f167 Mon Sep 17 00:00:00 2001 From: mwithi Date: Fri, 29 Dec 2023 13:33:19 +0100 Subject: [PATCH] Rename class --- src/main/java/org/isf/config/SecurityConfig.java | 4 ++-- .../{CustomAuditorAwareImpl.java => ApiAuditorAwareImpl.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/org/isf/security/{CustomAuditorAwareImpl.java => ApiAuditorAwareImpl.java} (88%) diff --git a/src/main/java/org/isf/config/SecurityConfig.java b/src/main/java/org/isf/config/SecurityConfig.java index c898c0c85..31d48347a 100644 --- a/src/main/java/org/isf/config/SecurityConfig.java +++ b/src/main/java/org/isf/config/SecurityConfig.java @@ -25,7 +25,7 @@ import org.isf.permissions.manager.PermissionManager; import org.isf.security.CustomLogoutHandler; -import org.isf.security.CustomAuditorAwareImpl; +import org.isf.security.ApiAuditorAwareImpl; import org.isf.security.OHSimpleUrlAuthenticationSuccessHandler; import org.isf.security.RestAuthenticationEntryPoint; import org.isf.security.jwt.JWTConfigurer; @@ -343,6 +343,6 @@ public RoleHierarchy roleHierarchy() { @Bean public AuditorAwareInterface auditorAwareCustomizer() { - return new CustomAuditorAwareImpl(); + return new ApiAuditorAwareImpl(); } } diff --git a/src/main/java/org/isf/security/CustomAuditorAwareImpl.java b/src/main/java/org/isf/security/ApiAuditorAwareImpl.java similarity index 88% rename from src/main/java/org/isf/security/CustomAuditorAwareImpl.java rename to src/main/java/org/isf/security/ApiAuditorAwareImpl.java index 01dd2f97b..b8114e8f0 100644 --- a/src/main/java/org/isf/security/CustomAuditorAwareImpl.java +++ b/src/main/java/org/isf/security/ApiAuditorAwareImpl.java @@ -6,7 +6,7 @@ import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; -public class CustomAuditorAwareImpl implements AuditorAwareInterface { +public class ApiAuditorAwareImpl implements AuditorAwareInterface { @Override public Optional getCurrentAuditor() {