Search in sources :

Example 1 with ScheduledOrderInfo

use of models.datatable.ScheduledOrdersDataTable.ScheduledOrderInfo in project coprhd-controller by CoprHD.

the class ScheduledOrders method itemsJson.

public static void itemsJson(@As(",") String[] ids) {
    List<ScheduledOrderInfo> 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 ScheduledOrderInfo(order));
                }
            }
        }
    }
    renderJSON(DataTablesSupport.toJson(results));
}
Also used : ScheduledOrderInfo(models.datatable.ScheduledOrdersDataTable.ScheduledOrderInfo) OrderRestRep(com.emc.vipr.model.catalog.OrderRestRep)

Aggregations

OrderRestRep (com.emc.vipr.model.catalog.OrderRestRep)1 ScheduledOrderInfo (models.datatable.ScheduledOrdersDataTable.ScheduledOrderInfo)1