/** * Merge the content of the specified repository to this repository. * @param repository the repository to include */ public void include(ConfigurationMetadataRepository repository) { for (ConfigurationMetadataGroup group : repository.getAllGroups().values()) { ConfigurationMetadataGroup existingGroup = this.allGroups.get(group.getId()); if (existingGroup == null) { this.allGroups.put(group.getId(), group); } else { // Merge properties group.getProperties().forEach((name, value) -> putIfAbsent( existingGroup.getProperties(), name, value)); // Merge sources group.getSources().forEach((name, value) -> putIfAbsent(existingGroup.getSources(), name, value)); } } }
result.addAll(group.getProperties().values()); else if ("_ROOT_GROUP_".equals(group.getId())) { for (ConfigurationMetadataProperty property : group.getProperties().values()) { if (isWhiteListed(property, whiteListedProperties)) {
else if ("_ROOT_GROUP_".equals(group.getId())) { for (ConfigurationMetadataProperty property : group.getProperties().values()) { if (isWhiteListed(property, whiteListedProperties)) {
else if ("_ROOT_GROUP_".equals(group.getId())) { for (ConfigurationMetadataProperty property : group.getProperties().values()) { if (isWhiteListed(property, whiteListedProperties)) {