use of org.codice.ddf.admin.query.dev.system.fields.ServiceField in project admin-console-beta by connexta.
the class CreateServiceDependencyGraph method populateGraphWithServices.
private void populateGraphWithServices(BundleField bundle, DirectedGraph graph, List<BundleField> allBundles) {
bundle.serviceRefs().forEach(ref -> createEdgeFromServiceRef(bundle, ref, graph, allBundles));
for (ServiceReferenceListField refList : bundle.serviceRefLists()) {
for (ServiceField service : refList.services()) {
ServiceReferenceField tempServRef = new ServiceReferenceField().serviceInterface(refList.referenceListInterface()).filter(refList.filter()).resolution(refList.resolution()).service(service);
createEdgeFromServiceRef(bundle, tempServRef, graph, allBundles);
}
}
}
use of org.codice.ddf.admin.query.dev.system.fields.ServiceField in project admin-console-beta by connexta.
the class BundleUtils method createServiceField.
private ServiceField createServiceField(ServiceReference ref) {
ServiceField serviceField = new ServiceField();
serviceField.serviceName(getService(ref).toString());
serviceField.bundleId(ref.getBundle().getBundleId());
return serviceField;
}
Aggregations