public abstract class AbstractRestQueryParametersDto<T> extends QueryParameters<T>
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 |
historyEnabled
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
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) |
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
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
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 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
- Copyright © 2015. All rights reserved.