use of org.talend.esb.sam.server.persistence.FlowCollection in project tesb-rt-se by Talend.
the class SAMRestServiceImpl method getFlows.
@Override
public Response getFlows(Integer offset, Integer limit) {
Map<String, String[]> params = new HashMap<String, String[]>();
MultivaluedMap<String, String> queryParams = uriInfo.getQueryParameters();
for (Entry<String, List<String>> entry : queryParams.entrySet()) {
params.put(entry.getKey(), entry.getValue().toArray(new String[] {}));
}
CriteriaAdapter adapter = new CriteriaAdapter(offset, limit, params);
FlowCollection flowCollection = provider.getFlows(adapter);
return Response.ok(aggregateRawData(flowCollection)).build();
}
Aggregations