use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class HistoricJobLogRestServiceImpl method queryHistoricJobLogsCount.
public CountResultDto queryHistoricJobLogsCount(HistoricJobLogQueryDto queryDto) {
queryDto.setObjectMapper(objectMapper);
HistoricJobLogQuery query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class GroupRestServiceImpl method getGroupCount.
protected CountResultDto getGroupCount(GroupQueryDto queryDto) {
GroupQuery query = queryDto.toQuery(getProcessEngine());
long count = query.count();
return new CountResultDto(count);
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class IncidentRestServiceImpl method getIncidentsCount.
@Override
public CountResultDto getIncidentsCount(UriInfo uriInfo) {
IncidentQueryDto queryDto = new IncidentQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
IncidentQuery query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class JobRestServiceImpl method queryJobsCount.
@Override
public CountResultDto queryJobsCount(JobQueryDto queryDto) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
JobQuery query = queryDto.toQuery(engine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class ProcessDefinitionRestServiceImpl method getProcessDefinitionsCount.
@Override
public CountResultDto getProcessDefinitionsCount(UriInfo uriInfo) {
ProcessDefinitionQueryDto queryDto = new ProcessDefinitionQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
ProcessEngine engine = getProcessEngine();
ProcessDefinitionQuery query = queryDto.toQuery(engine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
Aggregations