public abstract class AbstractQueryDto<T extends Query<?,?>> extends Object
CamundaQueryParam
annotations which is
used for processing Http query parameters.Modifier and Type | Field and Description |
---|---|
protected static String |
SORT_ORDER_ASC_VALUE |
protected static String |
SORT_ORDER_DESC_VALUE |
protected String |
sortBy |
protected String |
sortOrder |
Constructor and Description |
---|
AbstractQueryDto() |
AbstractQueryDto(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyFilters(T query) |
protected abstract void |
applySortingOptions(T query) |
protected abstract T |
createNewQuery(ProcessEngine engine) |
protected abstract boolean |
isValidSortByValue(String value) |
void |
setSortBy(String sortBy) |
void |
setSortOrder(String sortOrder) |
protected void |
setValueBasedOnAnnotation(String key,
String value)
Finds the methods that are annotated with a
CamundaQueryParam with a value that matches the key parameter. |
protected boolean |
sortOptionsValid() |
T |
toQuery(ProcessEngine engine) |
protected static final String SORT_ORDER_ASC_VALUE
protected static final String SORT_ORDER_DESC_VALUE
protected String sortBy
protected String sortOrder
public void setSortBy(String sortBy)
public void setSortOrder(String sortOrder)
protected abstract boolean isValidSortByValue(String value)
protected boolean sortOptionsValid()
protected void setValueBasedOnAnnotation(String key, String value)
CamundaQueryParam
with a value that matches the key parameter.
Before invoking these methods, the annotated StringToTypeConverter
is used to convert the String value to the desired Java type.key
- value
- public T toQuery(ProcessEngine engine)
protected abstract T createNewQuery(ProcessEngine engine)
protected abstract void applyFilters(T query)
protected abstract void applySortingOptions(T query)
Copyright © 2015. All rights reserved.