use of org.camunda.bpm.engine.rest.dto.history.HistoricIdentityLinkLogDto in project camunda-bpm-platform by camunda.
the class HistoricIdentityLinkLogRestServiceImpl method getHistoricIdentityLinks.
@Override
public List<HistoricIdentityLinkLogDto> getHistoricIdentityLinks(UriInfo uriInfo, Integer firstResult, Integer maxResults) {
HistoricIdentityLinkLogQueryDto queryDto = new HistoricIdentityLinkLogQueryDto(objectMapper, uriInfo.getQueryParameters());
HistoricIdentityLinkLogQuery query = queryDto.toQuery(processEngine);
List<HistoricIdentityLinkLog> queryResult;
if (firstResult != null || maxResults != null) {
queryResult = executePaginatedQuery(query, firstResult, maxResults);
} else {
queryResult = query.list();
}
List<HistoricIdentityLinkLogDto> result = new ArrayList<HistoricIdentityLinkLogDto>();
for (HistoricIdentityLinkLog historicIdentityLink : queryResult) {
HistoricIdentityLinkLogDto dto = HistoricIdentityLinkLogDto.fromHistoricIdentityLink(historicIdentityLink);
result.add(dto);
}
return result;
}
Aggregations