From 7620526fd5c1ab4b6fc491d416bd8a91cca8ba74 Mon Sep 17 00:00:00 2001 From: Katy Ekey Date: Mon, 16 Dec 2024 14:00:35 -0500 Subject: [PATCH] refactor: Remove commented code [#OCD-4734] --- .../chpl/user/cognito/CognitoApiWrapper.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/chpl/chpl-service/src/main/java/gov/healthit/chpl/user/cognito/CognitoApiWrapper.java b/chpl/chpl-service/src/main/java/gov/healthit/chpl/user/cognito/CognitoApiWrapper.java index 2bcc75f21f..833a545ea8 100644 --- a/chpl/chpl-service/src/main/java/gov/healthit/chpl/user/cognito/CognitoApiWrapper.java +++ b/chpl/chpl-service/src/main/java/gov/healthit/chpl/user/cognito/CognitoApiWrapper.java @@ -563,26 +563,6 @@ private Developer getDeveloper(Long developerId) { } } -// private User createUserFromUserType(UserType userType) { -// User user = new User(); -// user.setCognitoId(UUID.fromString(userType.username())); -// user.setSubjectName(getUserAttribute(userType.attributes(), "email").value()); -// user.setFullName(getUserAttribute(userType.attributes(), "name").value()); -// user.setEmail(getUserAttribute(userType.attributes(), "email").value()); -// user.setAccountEnabled(userType.enabled()); -// user.setStatus(userType.userStatusAsString()); -// user.setPasswordResetRequired(getForcePasswordReset(userType.attributes())); -// user.setRole(getRoleBasedOnFilteredGroups(getGroupsForUser(user.getEmail()))); -// -// AttributeType orgIdsAttribute = getUserAttribute(userType.attributes(), ORGANIZATIONS_ATTRIBUTE_NAME); -// if (orgIdsAttribute != null && StringUtils.isNotEmpty(orgIdsAttribute.value())) { -// user.setOrganizations(getOrganizations(user.getRole(), Stream.of(orgIdsAttribute.value().split(",")) -// .map(Long::valueOf) -// .toList())); -// } -// return user; -// } - private User createUserFromUserType(UserType userType, List developers, List acbs) { User user = new User(); user.setCognitoId(UUID.fromString(userType.username()));