public abstract class AbstractRestQueryParametersDto<T> extends QueryParameters<T>
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected static String |
SORT_ORDER_ASC_VALUE |
protected static String |
SORT_ORDER_DESC_VALUE |
protected String |
sortBy |
protected String |
sortOrder |
historyEnabled
authCheck, databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter, tenantCheck
Constructor and Description |
---|
AbstractRestQueryParametersDto() |
AbstractRestQueryParametersDto(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
Modifier and Type | Method and Description |
---|---|
String |
getOrderBy() |
protected abstract String |
getOrderByValue(String sortBy) |
protected abstract boolean |
isValidSortByValue(String value) |
protected Object |
resolveVariableValue(Object value) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
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() |
isHistoryEnabled, setHistoryEnabled
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter, setTenantCheck
protected static final String SORT_ORDER_ASC_VALUE
protected static final String SORT_ORDER_DESC_VALUE
protected String sortBy
protected String sortOrder
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public void setSortBy(String sortBy)
public void setSortOrder(String sortOrder)
protected boolean sortOptionsValid()
public String getOrderBy()
getOrderBy
in class ListQueryParameterObject
protected abstract boolean isValidSortByValue(String value)
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 void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Copyright © 2018. All rights reserved.