use of com.ctrip.framework.apollo.portal.entity.bo.ConfigBO in project apollo by ctripcorp.
the class ConfigsExportService method exportNamespaces.
private void exportNamespaces(final Env env, final App exportApp, final ClusterDTO exportCluster, ZipOutputStream zipOutputStream) {
String clusterName = exportCluster.getName();
List<NamespaceBO> namespaceBOS = namespaceService.findNamespaceBOs(exportApp.getAppId(), env, clusterName);
if (CollectionUtils.isEmpty(namespaceBOS)) {
return;
}
Stream<ConfigBO> configBOStream = namespaceBOS.stream().map(namespaceBO -> new ConfigBO(env, exportApp.getOwnerName(), exportApp.getAppId(), clusterName, namespaceBO));
writeNamespacesToZip(configBOStream, zipOutputStream);
}
Aggregations