default-to-user-email #30
1 changed files with 5 additions and 10 deletions
commit
2243397e85
|
|
@ -51,16 +51,11 @@ public class AttributeEndpointsResourceProvider implements RealmResourceProvider
|
|||
AttributeExportContext ctx = new AttributeExportContext(attributeGroupName);
|
||||
|
||||
List<String> attribute_list = ctx.users
|
||||
.map(user -> {
|
||||
Stream<String> attributeStream = ctx.attributeNames.stream();
|
||||
|
||||
attributeStream = attributeStream.map(attributeName -> ctx.MapUserAttribute(user, attributeName).toList())
|
||||
.flatMap(Collection::stream);
|
||||
|
||||
return attributeStream
|
||||
.filter(attribute -> !attribute.isEmpty())
|
||||
.toList();
|
||||
})
|
||||
.map(user -> ctx.attributeNames.stream()
|
||||
.map(attributeName -> ctx.MapUserAttribute(user, attributeName).toList())
|
||||
.flatMap(Collection::stream)
|
||||
.filter(attribute -> !attribute.isEmpty()).toList()
|
||||
)
|
||||
.flatMap(List::stream)
|
||||
.filter(ctx.filter::matches)
|
||||
.toList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue