public abstract class AbstractRestQueryParametersDto<T> extends QueryParameters<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_ORDER |
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, maxResultsLimitEnabled
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
AbstractRestQueryParametersDto() |
AbstractRestQueryParametersDto(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
Modifier and Type | Method and Description |
---|---|
String |
getInternalOrderBy() |
String |
getOrderBy()
Deprecated.
|
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() |
disableMaxResultsLimit, isHistoryEnabled, isMaxResultsLimitEnabled, setHistoryEnabled
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected static final String DEFAULT_ORDER
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 getInternalOrderBy()
@Deprecated public String getOrderBy()
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 © 2019. All rights reserved.