Package org.camunda.bpm.webapp.rest.dto
Class AbstractRestQueryParametersDto<T>
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.webapp.db.QueryParameters
org.camunda.bpm.webapp.rest.dto.AbstractRestQueryParametersDto<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MetricsAggregatedQueryDto
- See Also:
-
Field Summary
FieldsModifier 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.QueryParameters
historyEnabled, maxResultsLimitEnabledFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRestQueryParametersDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParameters) -
Method Summary
Modifier 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.QueryParameters
disableMaxResultsLimit, isHistoryEnabled, isMaxResultsLimitEnabled, setHistoryEnabledMethods 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 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-
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-