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