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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final Stringprotected com.fasterxml.jackson.databind.ObjectMapperprotected static final Stringprotected static final Stringprotected Stringprotected StringFields inherited from class org.camunda.bpm.webapp.db.QueryParametershistoryEnabled, maxResultsLimitEnabledFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObjectauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractRestQueryParametersDto(jakarta.ws.rs.core.MultivaluedMap<String, String> queryParameters) 
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.protected abstract StringgetOrderByValue(String sortBy) protected abstract booleanisValidSortByValue(String value) protected ObjectresolveVariableValue(Object value) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidvoidsetSortOrder(String sortOrder) protected voidsetValueBasedOnAnnotation(String key, String value) Finds the methods that are annotated with aCamundaQueryParamwith a value that matches the key parameter.protected booleanMethods inherited from class org.camunda.bpm.webapp.db.QueryParametersdisableMaxResultsLimit, isHistoryEnabled, isMaxResultsLimitEnabled, setHistoryEnabledMethods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObjectgetAuthCheck, 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
- 
objectMapperprotected com.fasterxml.jackson.databind.ObjectMapper objectMapper
 
- 
- 
Constructor Details- 
AbstractRestQueryParametersDtopublic AbstractRestQueryParametersDto()
- 
AbstractRestQueryParametersDto
 
- 
- 
Method Details- 
setSortBy
- 
setSortOrder
- 
sortOptionsValidprotected boolean sortOptionsValid()
- 
getInternalOrderBy
- 
getOrderByDeprecated.
- 
getOrderByValue
- 
isValidSortByValue
- 
resolveVariableValue
- 
setValueBasedOnAnnotationFinds the methods that are annotated with aCamundaQueryParamwith a value that matches the key parameter. Before invoking these methods, the annotatedStringToTypeConverteris used to convert the String value to the desired Java type.- Parameters:
- key-
- value-
 
- 
setObjectMapperpublic void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
 
-