|
|
@@ -133,20 +133,6 @@ public class KeycloakServiceImpl implements KeycloakService {
|
|
|
return Collections.emptyList();
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public List<String> getAiAuditEnabledGroups() {
|
|
|
- List<GroupRepresentation> groups = keycloak.realm(realm).groups().groups();
|
|
|
- List<String> aiAudit = groups.stream().filter(groupRepresentation -> {
|
|
|
- Map<String, List<String>> attributes = groupRepresentation.getAttributes();
|
|
|
- if (attributes != null) {
|
|
|
- List<String> list = attributes.get("aiAudit");
|
|
|
- return !CollectionUtils.isEmpty(list) && "1".equals(list.get(0));
|
|
|
- }
|
|
|
- return false;
|
|
|
- }).map(GroupRepresentation::getPath).collect(Collectors.toList());
|
|
|
- return aiAudit;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public List<KeycloakUserCO> getGroupSupervisor(String group) {
|
|
|
return getUserByRoleAndGroup(group, "ROLE_OPERATION_SUPERVISOR");
|