Skip to content

Commit

Permalink
refactor: Remove commented code
Browse files Browse the repository at this point in the history
[#OCD-4734]
  • Loading branch information
kekey1 committed Dec 16, 2024
1 parent 1afb8dd commit 7620526
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Developer> developers, List<CertificationBody> acbs) {
User user = new User();
user.setCognitoId(UUID.fromString(userType.username()));
Expand Down

0 comments on commit 7620526

Please sign in to comment.