use of models.datatable.ComputeSystemElementDataTable.ComputeElementInfo in project coprhd-controller by CoprHD.
the class ComputeSystems method computeElementsJson.
public static void computeElementsJson(String id) {
List<ComputeElementInfo> results = Lists.newArrayList();
List<ComputeElementRestRep> computeElements = ComputeSystemUtils.getComputeElements(id);
String computeSystemName = ComputeSystemUtils.getComputeSystem(id).getName();
for (ComputeElementRestRep computeElement : computeElements) {
results.add(new ComputeElementInfo(computeElement, computeSystemName));
}
renderJSON(DataTablesSupport.createJSON(results, params));
}
Aggregations