Search in sources :

Example 1 with HistoricIdentityLinkLogDto

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;
}
Also used : HistoricIdentityLinkLogQueryDto(org.camunda.bpm.engine.rest.dto.history.HistoricIdentityLinkLogQueryDto) HistoricIdentityLinkLog(org.camunda.bpm.engine.history.HistoricIdentityLinkLog) ArrayList(java.util.ArrayList) HistoricIdentityLinkLogQuery(org.camunda.bpm.engine.history.HistoricIdentityLinkLogQuery) HistoricIdentityLinkLogDto(org.camunda.bpm.engine.rest.dto.history.HistoricIdentityLinkLogDto)

Aggregations

ArrayList (java.util.ArrayList)1 HistoricIdentityLinkLog (org.camunda.bpm.engine.history.HistoricIdentityLinkLog)1 HistoricIdentityLinkLogQuery (org.camunda.bpm.engine.history.HistoricIdentityLinkLogQuery)1 HistoricIdentityLinkLogDto (org.camunda.bpm.engine.rest.dto.history.HistoricIdentityLinkLogDto)1 HistoricIdentityLinkLogQueryDto (org.camunda.bpm.engine.rest.dto.history.HistoricIdentityLinkLogQueryDto)1