use of org.camunda.bpm.engine.rest.dto.runtime.FilterDto in project camunda-bpm-platform by camunda.
the class FilterResourceImpl method getFilter.
public FilterDto getFilter(Boolean itemCount) {
Filter filter = getDbFilter();
FilterDto dto = FilterDto.fromFilter(filter);
if (itemCount != null && itemCount) {
dto.setItemCount(filterService.count(filter.getId()));
}
return dto;
}
use of org.camunda.bpm.engine.rest.dto.runtime.FilterDto in project camunda-bpm-platform by camunda.
the class FilterRestServiceImpl method getFilters.
public List<FilterDto> getFilters(UriInfo uriInfo, Boolean itemCount, Integer firstResult, Integer maxResults) {
FilterService filterService = getProcessEngine().getFilterService();
FilterQuery query = getQueryFromQueryParameters(uriInfo.getQueryParameters());
List<Filter> matchingFilters = executeFilterQuery(query, firstResult, maxResults);
List<FilterDto> filters = new ArrayList<FilterDto>();
for (Filter filter : matchingFilters) {
FilterDto dto = FilterDto.fromFilter(filter);
if (itemCount != null && itemCount) {
dto.setItemCount(filterService.count(filter.getId()));
}
filters.add(dto);
}
return filters;
}
Aggregations