Search in sources :

Example 1 with ServiceField

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);
        }
    }
}
Also used : ServiceReferenceListField(org.codice.ddf.admin.query.dev.system.fields.ServiceReferenceListField) ServiceReferenceField(org.codice.ddf.admin.query.dev.system.fields.ServiceReferenceField) ServiceField(org.codice.ddf.admin.query.dev.system.fields.ServiceField)

Example 2 with ServiceField

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;
}
Also used : ServiceField(org.codice.ddf.admin.query.dev.system.fields.ServiceField)

Aggregations

ServiceField (org.codice.ddf.admin.query.dev.system.fields.ServiceField)2 ServiceReferenceField (org.codice.ddf.admin.query.dev.system.fields.ServiceReferenceField)1 ServiceReferenceListField (org.codice.ddf.admin.query.dev.system.fields.ServiceReferenceListField)1