Search in sources :

Example 1 with OrderInfo

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);
}
Also used : OrderRestRep(com.emc.vipr.model.catalog.OrderRestRep) OrderInfo(models.datatable.OrderDataTable.OrderInfo)

Aggregations

OrderRestRep (com.emc.vipr.model.catalog.OrderRestRep)1 OrderInfo (models.datatable.OrderDataTable.OrderInfo)1