Package org.camunda.bpm.cockpit.rest.dto
Class AbstractRestQueryParametersDto<T>
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.webapp.db.QueryParameters
org.camunda.bpm.cockpit.db.QueryParameters
org.camunda.bpm.cockpit.rest.dto.AbstractRestQueryParametersDto<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractProcessInstanceQueryDto
,IncidentQueryDto
,ProcessDefinitionQueryDto
,ProcessDefinitionStatisticsQueryDto
- Author:
- roman.smirnov
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected com.fasterxml.jackson.databind.ObjectMapper
protected static final String
protected static final String
protected String
protected String
Fields inherited from class org.camunda.bpm.webapp.db.QueryParameters
historyEnabled, maxResultsLimitEnabled
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
ConstructorDescriptionAbstractRestQueryParametersDto
(javax.ws.rs.core.MultivaluedMap<String, String> queryParameters) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.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
void
setSortOrder
(String sortOrder) protected void
setValueBasedOnAnnotation
(String key, String value) Finds the methods that are annotated with aCamundaQueryParam
with a value that matches the key parameter.protected boolean
Methods inherited from class org.camunda.bpm.webapp.db.QueryParameters
disableMaxResultsLimit, isHistoryEnabled, isMaxResultsLimitEnabled, setHistoryEnabled
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Field Details
-
DEFAULT_ORDER
- See Also:
-
SORT_ORDER_ASC_VALUE
- See Also:
-
SORT_ORDER_DESC_VALUE
- See Also:
-
sortBy
-
sortOrder
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractRestQueryParametersDto
public AbstractRestQueryParametersDto() -
AbstractRestQueryParametersDto
-
-
Method Details
-
setSortBy
-
setSortOrder
-
sortOptionsValid
protected boolean sortOptionsValid() -
getInternalOrderBy
-
getOrderBy
Deprecated. -
getOrderByValue
-
isValidSortByValue
-
resolveVariableValue
-
setValueBasedOnAnnotation
Finds the methods that are annotated with aCamundaQueryParam
with a value that matches the key parameter. Before invoking these methods, the annotatedStringToTypeConverter
is used to convert the String value to the desired Java type.- Parameters:
key
-value
-
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-