use of org.jbei.ice.lib.dto.web.WebOfRegistries in project ice by JBEI.
the class WoRController method getRegistryPartners.
public WebOfRegistries getRegistryPartners(boolean approvedOnly) {
WebOfRegistries webOfRegistries = new WebOfRegistries();
webOfRegistries.setWebEnabled(isWebEnabled());
// retrieve actual partners
List<RemotePartner> partners = dao.getRegistryPartners();
ArrayList<RegistryPartner> registryPartners = new ArrayList<>();
for (RemotePartner partner : partners) {
if (approvedOnly && partner.getPartnerStatus() != RemotePartnerStatus.APPROVED)
continue;
registryPartners.add(partner.toDataTransferObject());
}
webOfRegistries.setPartners(registryPartners);
return webOfRegistries;
}
Aggregations