public virtual CountResultDto getHistoricIdentityLinksCount(UriInfo uriInfo) { HistoricIdentityLinkLogQueryDto queryDto = new HistoricIdentityLinkLogQueryDto(objectMapper, uriInfo.QueryParameters); HistoricIdentityLinkLogQuery query = queryDto.toQuery(processEngine); long count = query.count(); CountResultDto result = new CountResultDto(); result.Count = count; return(result); }
public virtual IList <HistoricIdentityLinkLogDto> getHistoricIdentityLinks(UriInfo uriInfo, int?firstResult, int?maxResults) { HistoricIdentityLinkLogQueryDto queryDto = new HistoricIdentityLinkLogQueryDto(objectMapper, uriInfo.QueryParameters); HistoricIdentityLinkLogQuery query = queryDto.toQuery(processEngine); IList <HistoricIdentityLinkLog> queryResult; if (firstResult != null || maxResults != null) { queryResult = executePaginatedQuery(query, firstResult, maxResults); } else { queryResult = query.list(); } IList <HistoricIdentityLinkLogDto> result = new List <HistoricIdentityLinkLogDto>(); foreach (HistoricIdentityLinkLog historicIdentityLink in queryResult) { HistoricIdentityLinkLogDto dto = HistoricIdentityLinkLogDto.fromHistoricIdentityLink(historicIdentityLink); result.Add(dto); } return(result); }