use of org.codice.ddf.registry.schemabindings.converter.web.OrganizationWebConverter in project ddf by codice.
the class RegistryReportBuilder method getOrganizationMap.
private Map<String, Object> getOrganizationMap(RegistryPackageType registryPackage) {
Map<String, Object> organizationMap = new HashMap<>();
List<Map<String, Object>> organizations = new ArrayList<>();
RegistryPackageTypeHelper rpt = new RegistryPackageTypeHelper(registryPackage);
OrganizationWebConverter owc = new OrganizationWebConverter();
organizations.addAll(rpt.getOrganizations().stream().map(owc::convert).collect(Collectors.toList()));
webMapHelper.putIfNotEmpty(organizationMap, ORGANIZATION_KEY, organizations);
return organizationMap;
}
Aggregations