use of com.emc.storageos.db.client.model.uimodels.OrderAndParams in project coprhd-controller by CoprHD.
the class OrderService method queryBulkResourceReps.
@Override
public OrderBulkRep queryBulkResourceReps(List<URI> ids) {
List<OrderRestRep> orderRestReps = new ArrayList<OrderRestRep>();
List<OrderAndParams> ordersAndParams = orderManager.getOrdersAndParams(ids);
for (OrderAndParams orderAndParams : ordersAndParams) {
orderRestReps.add(OrderMapper.map(orderAndParams.getOrder(), orderAndParams.getParameters()));
}
OrderBulkRep rep = new OrderBulkRep(orderRestReps);
return rep;
}
use of com.emc.storageos.db.client.model.uimodels.OrderAndParams in project coprhd-controller by CoprHD.
the class OrderService method queryFilteredBulkResourceReps.
@Override
public OrderBulkRep queryFilteredBulkResourceReps(List<URI> ids) {
OrderFilter filter = new OrderFilter(getUserFromContext(), _permissionsHelper);
List<OrderRestRep> orderRestReps = new ArrayList<OrderRestRep>();
List<OrderAndParams> ordersAndParams = orderManager.getOrdersAndParams(ids);
for (OrderAndParams orderAndParams : ordersAndParams) {
if (filter.isAccessible(orderAndParams.getOrder())) {
orderRestReps.add(OrderMapper.map(orderAndParams.getOrder(), orderAndParams.getParameters()));
}
}
return new OrderBulkRep(orderRestReps);
}
Aggregations