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;
}
Aggregations