Package org.camunda.bpm.cockpit.rest.dto
Class AbstractRestQueryParametersDto<T>
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.cockpit.db.QueryParameters<T>
-
- org.camunda.bpm.cockpit.rest.dto.AbstractRestQueryParametersDto<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AbstractProcessInstanceQueryDto
,IncidentQueryDto
,ProcessDefinitionQueryDto
public abstract class AbstractRestQueryParametersDto<T> extends QueryParameters<T>
- Author:
- roman.smirnov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DEFAULT_ORDER
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected static java.lang.String
SORT_ORDER_ASC_VALUE
protected static java.lang.String
SORT_ORDER_DESC_VALUE
protected java.lang.String
sortBy
protected java.lang.String
sortOrder
-
Fields inherited from class org.camunda.bpm.cockpit.db.QueryParameters
historyEnabled, maxResultsLimitEnabled
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description AbstractRestQueryParametersDto()
AbstractRestQueryParametersDto(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryParameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getInternalOrderBy()
java.lang.String
getOrderBy()
Deprecated.protected abstract java.lang.String
getOrderByValue(java.lang.String sortBy)
protected abstract boolean
isValidSortByValue(java.lang.String value)
protected java.lang.Object
resolveVariableValue(java.lang.Object value)
void
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
void
setSortBy(java.lang.String sortBy)
void
setSortOrder(java.lang.String sortOrder)
protected void
setValueBasedOnAnnotation(java.lang.String key, java.lang.String value)
Finds the methods that are annotated with aCamundaQueryParam
with a value that matches the key parameter.protected boolean
sortOptionsValid()
-
Methods inherited from class org.camunda.bpm.cockpit.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 Detail
-
DEFAULT_ORDER
protected static final java.lang.String DEFAULT_ORDER
- See Also:
- Constant Field Values
-
SORT_ORDER_ASC_VALUE
protected static final java.lang.String SORT_ORDER_ASC_VALUE
- See Also:
- Constant Field Values
-
SORT_ORDER_DESC_VALUE
protected static final java.lang.String SORT_ORDER_DESC_VALUE
- See Also:
- Constant Field Values
-
sortBy
protected java.lang.String sortBy
-
sortOrder
protected java.lang.String sortOrder
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Detail
-
setSortBy
public void setSortBy(java.lang.String sortBy)
-
setSortOrder
public void setSortOrder(java.lang.String sortOrder)
-
sortOptionsValid
protected boolean sortOptionsValid()
-
getInternalOrderBy
public java.lang.String getInternalOrderBy()
-
getOrderBy
@Deprecated public java.lang.String getOrderBy()
Deprecated.
-
getOrderByValue
protected abstract java.lang.String getOrderByValue(java.lang.String sortBy)
-
isValidSortByValue
protected abstract boolean isValidSortByValue(java.lang.String value)
-
resolveVariableValue
protected java.lang.Object resolveVariableValue(java.lang.Object value)
-
setValueBasedOnAnnotation
protected void setValueBasedOnAnnotation(java.lang.String key, java.lang.String value)
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)
-
-