Class FilterQueryDto
- java.lang.Object
-
- org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
-
- org.camunda.bpm.engine.rest.dto.AbstractQueryDto<FilterQuery>
-
- org.camunda.bpm.engine.rest.dto.runtime.FilterQueryDto
-
public class FilterQueryDto extends AbstractQueryDto<FilterQuery>
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
filterId
protected java.lang.String
name
protected java.lang.String
nameLike
protected java.lang.String
owner
protected java.lang.String
resourceType
static java.lang.String
SORT_BY_ID_VALUE
static java.lang.String
SORT_BY_NAME_VALUE
static java.lang.String
SORT_BY_OWNER_VALUE
static java.lang.String
SORT_BY_RESOURCE_TYPE_VALUE
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.AbstractQueryDto
expressions, SORT_ORDER_ASC_VALUE, SORT_ORDER_DESC_VALUE, sortBy, sortings, sortOrder, VALID_SORT_ORDER_VALUES
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
objectMapper
-
-
Constructor Summary
Constructors Constructor Description FilterQueryDto()
FilterQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyFilters(FilterQuery query)
protected void
applySortBy(FilterQuery query, java.lang.String sortBy, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessEngine engine)
protected FilterQuery
createNewQuery(ProcessEngine engine)
protected boolean
isValidSortByValue(java.lang.String value)
void
setFilterId(java.lang.String filterId)
void
setName(java.lang.String name)
void
setNameLike(java.lang.String nameLike)
void
setOwner(java.lang.String owner)
void
setResourceType(java.lang.String resourceType)
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractQueryDto
applySortingOptions, applySortOrder, getSorting, setSortBy, setSorting, setSortOrder, sortOptionsValid, sortOrderValueForDirection, toQuery
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
setObjectMapper, setValueBasedOnAnnotation
-
-
-
-
Field Detail
-
SORT_BY_ID_VALUE
public static final java.lang.String SORT_BY_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_RESOURCE_TYPE_VALUE
public static final java.lang.String SORT_BY_RESOURCE_TYPE_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_NAME_VALUE
public static final java.lang.String SORT_BY_NAME_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_OWNER_VALUE
public static final java.lang.String SORT_BY_OWNER_VALUE
- See Also:
- Constant Field Values
-
filterId
protected java.lang.String filterId
-
resourceType
protected java.lang.String resourceType
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
owner
protected java.lang.String owner
-
-
Method Detail
-
setFilterId
public void setFilterId(java.lang.String filterId)
-
setResourceType
public void setResourceType(java.lang.String resourceType)
-
setName
public void setName(java.lang.String name)
-
setNameLike
public void setNameLike(java.lang.String nameLike)
-
setOwner
public void setOwner(java.lang.String owner)
-
isValidSortByValue
protected boolean isValidSortByValue(java.lang.String value)
- Specified by:
isValidSortByValue
in classAbstractQueryDto<FilterQuery>
-
createNewQuery
protected FilterQuery createNewQuery(ProcessEngine engine)
- Specified by:
createNewQuery
in classAbstractQueryDto<FilterQuery>
-
applyFilters
protected void applyFilters(FilterQuery query)
- Specified by:
applyFilters
in classAbstractQueryDto<FilterQuery>
-
applySortBy
protected void applySortBy(FilterQuery query, java.lang.String sortBy, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessEngine engine)
- Specified by:
applySortBy
in classAbstractQueryDto<FilterQuery>
-
-