use of com.enonic.xp.repository.IndexMapping in project xp by enonic.
the class NodeRepositoryServiceImpl method mergeMappings.
private static IndexMapping mergeMappings(IndexMapping... indexMappings) {
JsonNode intermediate = JsonHelper.from(Map.of());
Arrays.stream(indexMappings).filter(Objects::nonNull).forEach(indexMapping -> JsonHelper.merge(intermediate, indexMapping.getNode()));
return new IndexMapping(intermediate);
}
Aggregations