ain.setEntityType(gizmoEntity.getType());
ain.setPrimaryKeyName(getEntityTypePrimaryKeyName(gizmoEntity.getType()));
-
- OxmEntityDescriptor descriptor = oxmEntityLookup.getEntityDescriptors().get(gizmoEntity);
+
+ OxmEntityDescriptor descriptor = oxmEntityLookup.getEntityDescriptors().get(gizmoEntity.getType());
if (descriptor != null) {
ain.setPrimaryKeyValue(getPrimaryKeyValues(gizmoEntity.getProperties(),
} else {
LOG.error(AaiUiMsgs.ERROR_GENERIC, "Could not determine oxm descriptor for entity type = " + gizmoEntity.getType());
}
-
+
gizmoEntity.getProperties().forEach((key, value) -> {
ain.getProperties().put(key, value);
});
if (ain.getSelfLink() != null) {
ain.addProperty(SparkyConstants.URI_ATTR_NAME, ain.getSelfLink());
}
-
-
/*
* Only discover neighbors if our depth is less than the Max-Traversal-Depth
/*
* I think the next thing to do is:
- *
+ *
* 1. Calculate the source / target node id 2. Add the nodeId to the incoming / outgoing links
* collection 3. Add the node to the node cache for processing
*/
break;
}
- case READY:
+ case READY:
case ERROR: {
break;
}
}
}
-
+
dumpThrottledWorkOnHandLog();
}
}
}
-
+
return (aaiWorkOnHand.get() + numNodesWithPendingStates);
}
}
}
-
+
dumpThrottledWorkOnHandLog(true);
}
/*
* (non-Javadoc)
- *
+ *
* @see
* org.onap.aai.sparky.viewandinspect.services.VisualizationContext#processSelfLinks(org.onap.aai.
* sparky.sync.entity.SearchableEntity, org.onap.aai.sparky.viewandinspect.entity.QueryParams)