From d794700d73f72bd162c64888e22ed3789d13915d Mon Sep 17 00:00:00 2001 From: gitCarrot Date: Fri, 6 Sep 2024 14:30:03 -1000 Subject: [PATCH] test remove post construct --- .../api/controller/OotbRestController.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/java/edu/hawaii/its/api/controller/OotbRestController.java b/src/main/java/edu/hawaii/its/api/controller/OotbRestController.java index 8133270c9..a8786b13c 100644 --- a/src/main/java/edu/hawaii/its/api/controller/OotbRestController.java +++ b/src/main/java/edu/hawaii/its/api/controller/OotbRestController.java @@ -42,23 +42,22 @@ public class OotbRestController { public OotbRestController(UserContextService userContextService, OotbStaticUserAuthenticationFilter ootbAuthenticationFilter, OotbActiveUserProfileService ootbActiveUserProfileService, - OotbHttpRequestService ootbHttpRequestService, - Realm realmService) { + OotbHttpRequestService ootbHttpRequestService) { this.userContextService = userContextService; this.ootbAuthenticationFilter = ootbAuthenticationFilter; this.ootbActiveUserProfileService = ootbActiveUserProfileService; this.ootbHttpRequestService = ootbHttpRequestService; } - @PostConstruct() - public void init() { - String adminProfile = ootbActiveUserProfileService.findGivenNameForAdminRole(); - if (adminProfile != null) { - updateActiveDefaultUser(adminProfile); - } else { - logger.error("Admin profile not found, unable to initiate default API request."); - } - } +// @PostConstruct() +// public void init() { +// String adminProfile = ootbActiveUserProfileService.findGivenNameForAdminRole(); +// if (adminProfile != null) { +// updateActiveDefaultUser(adminProfile); +// } else { +// logger.error("Admin profile not found, unable to initiate default API request."); +// } +// } /* * Checks to make sure that the API is running and that there are no issues with