public abstract class AbstractQueryDto<T extends Query<?,?>> extends AbstractSearchQueryDto
CamundaQueryParam
annotations which is
used for processing Http query parameters.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
expressions |
static String |
SORT_ORDER_ASC_VALUE |
static String |
SORT_ORDER_DESC_VALUE |
protected String |
sortBy |
protected List<SortingDto> |
sortings |
protected String |
sortOrder |
static List<String> |
VALID_SORT_ORDER_VALUES |
objectMapper
Constructor and Description |
---|
AbstractQueryDto() |
AbstractQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyFilters(T query) |
protected abstract void |
applySortBy(T query,
String sortBy,
Map<String,Object> parameters,
ProcessEngine engine) |
protected void |
applySortingOptions(T query,
ProcessEngine engine) |
protected void |
applySortOrder(T query,
String sortOrder) |
protected abstract T |
createNewQuery(ProcessEngine engine) |
List<SortingDto> |
getSorting() |
protected abstract boolean |
isValidSortByValue(String value) |
void |
setSortBy(String sortBy) |
void |
setSorting(List<SortingDto> sorting) |
void |
setSortOrder(String sortOrder) |
protected boolean |
sortOptionsValid() |
static String |
sortOrderValueForDirection(Direction direction) |
T |
toQuery(ProcessEngine engine) |
setObjectMapper, setValueBasedOnAnnotation
public static final String SORT_ORDER_ASC_VALUE
public static final String SORT_ORDER_DESC_VALUE
protected String sortBy
protected String sortOrder
protected List<SortingDto> sortings
public void setSortBy(String sortBy)
public void setSortOrder(String sortOrder)
public void setSorting(List<SortingDto> sorting)
public List<SortingDto> getSorting()
protected abstract boolean isValidSortByValue(String value)
protected boolean sortOptionsValid()
public T toQuery(ProcessEngine engine)
protected abstract T createNewQuery(ProcessEngine engine)
protected abstract void applyFilters(T query)
protected void applySortingOptions(T query, ProcessEngine engine)
protected abstract void applySortBy(T query, String sortBy, Map<String,Object> parameters, ProcessEngine engine)
Copyright © 2020. All rights reserved.