use of models.datatable.OrderDataTable.OrderInfo in project coprhd-controller by CoprHD.
the class Orders method itemsJson.
public static void itemsJson(@As(",") String[] ids) {
List<OrderInfo> results = Lists.newArrayList();
if (ids != null && ids.length > 0) {
for (String id : ids) {
if (StringUtils.isNotBlank(id)) {
OrderRestRep order = OrderUtils.getOrder(uri(id));
if (order != null) {
Models.checkAccess(order.getTenant());
results.add(new OrderInfo(order));
}
}
}
}
renderJSON(results);
}
Aggregations