Search in sources :

Example 1 with OrderList

use of com.emc.vipr.model.catalog.OrderList in project coprhd-controller by CoprHD.

the class OrderService method toOrderList.

private OrderList toOrderList(List<Order> orders) {
    OrderList list = new OrderList();
    for (Order order : orders) {
        NamedRelatedResourceRep resourceRep = toNamedRelatedResource(ResourceTypeEnum.ORDER, order.getId(), order.getLabel());
        list.getOrders().add(resourceRep);
    }
    return list;
}
Also used : Order(com.emc.storageos.db.client.model.uimodels.Order) OrderList(com.emc.vipr.model.catalog.OrderList) NamedRelatedResourceRep(com.emc.storageos.model.NamedRelatedResourceRep)

Aggregations

Order (com.emc.storageos.db.client.model.uimodels.Order)1 NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)1 OrderList (com.emc.vipr.model.catalog.OrderList)1