use of org.camunda.bpm.engine.rest.dto.SortingDto in project camunda-bpm-platform by camunda.
the class TaskQueryDto method convertVariableOrderPropertyToSortingDto.
public static SortingDto convertVariableOrderPropertyToSortingDto(VariableOrderProperty variableOrderProperty) {
SortingDto sortingDto = new SortingDto();
sortingDto.setSortBy(sortByValueForVariableOrderProperty(variableOrderProperty));
sortingDto.setSortOrder(sortOrderValueForDirection(variableOrderProperty.getDirection()));
sortingDto.setParameters(sortParametersForVariableOrderProperty(variableOrderProperty));
return sortingDto;
}
use of org.camunda.bpm.engine.rest.dto.SortingDto in project camunda-bpm-platform by camunda.
the class TaskQueryDto method convertQueryOrderingPropertiesToSortingDtos.
public static List<SortingDto> convertQueryOrderingPropertiesToSortingDtos(List<QueryOrderingProperty> orderingProperties) {
List<SortingDto> sortingDtos = new ArrayList<SortingDto>();
for (QueryOrderingProperty orderingProperty : orderingProperties) {
SortingDto sortingDto;
if (orderingProperty instanceof VariableOrderProperty) {
sortingDto = convertVariableOrderPropertyToSortingDto((VariableOrderProperty) orderingProperty);
} else {
sortingDto = convertQueryOrderingPropertyToSortingDto(orderingProperty);
}
sortingDtos.add(sortingDto);
}
return sortingDtos;
}
use of org.camunda.bpm.engine.rest.dto.SortingDto in project camunda-bpm-platform by camunda.
the class TaskQueryDto method convertQueryOrderingPropertyToSortingDto.
public static SortingDto convertQueryOrderingPropertyToSortingDto(QueryOrderingProperty orderingProperty) {
SortingDto sortingDto = new SortingDto();
sortingDto.setSortBy(sortByValueForQueryProperty(orderingProperty.getQueryProperty()));
sortingDto.setSortOrder(sortOrderValueForDirection(orderingProperty.getDirection()));
return sortingDto;
}
Aggregations