use of com.emc.sa.api.mapper.OrderFilter 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