79172965

Date: 2024-11-09 14:28:21
Score: 0.5
Natty:
Report link

Ok, I found the missing method:

        Optional<UserRepresentation> user = foundUsers.stream().findFirst();
        if (user.isPresent()) {
            Map<String, List<String>> attribs = user.get().getAttributes();
            if (attribs.containsKey("language")) {
                attribs.get("language").set(0,"hu");
                userResource.get(user.get().getId()).update(user.get());
            }
        }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Papp Zoltán