public class FilterQueryDto extends AbstractQueryDto<FilterQuery>
Modifier and Type | Field and Description |
---|---|
protected String |
filterId |
protected String |
name |
protected String |
nameLike |
protected String |
owner |
protected String |
resourceType |
static String |
SORT_BY_ID_VALUE |
static String |
SORT_BY_NAME_VALUE |
static String |
SORT_BY_OWNER_VALUE |
static String |
SORT_BY_RESOURCE_TYPE_VALUE |
expressions, SORT_ORDER_ASC_VALUE, SORT_ORDER_DESC_VALUE, sortBy, sortings, sortOrder, VALID_SORT_ORDER_VALUES
objectMapper
Constructor and Description |
---|
FilterQueryDto() |
FilterQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyFilters(FilterQuery query) |
protected void |
applySortBy(FilterQuery query,
String sortBy,
Map<String,Object> parameters,
ProcessEngine engine) |
protected FilterQuery |
createNewQuery(ProcessEngine engine) |
protected boolean |
isValidSortByValue(String value) |
void |
setFilterId(String filterId) |
void |
setName(String name) |
void |
setNameLike(String nameLike) |
void |
setOwner(String owner) |
void |
setResourceType(String resourceType) |
applySortingOptions, applySortOrder, getSorting, setSortBy, setSorting, setSortOrder, sortOptionsValid, sortOrderValueForDirection, toQuery
setObjectMapper, setValueBasedOnAnnotation
public static final String SORT_BY_ID_VALUE
public static final String SORT_BY_RESOURCE_TYPE_VALUE
public static final String SORT_BY_NAME_VALUE
public static final String SORT_BY_OWNER_VALUE
protected String filterId
protected String resourceType
protected String name
protected String nameLike
protected String owner
public void setFilterId(String filterId)
public void setResourceType(String resourceType)
public void setName(String name)
public void setNameLike(String nameLike)
public void setOwner(String owner)
protected boolean isValidSortByValue(String value)
isValidSortByValue
in class AbstractQueryDto<FilterQuery>
protected FilterQuery createNewQuery(ProcessEngine engine)
createNewQuery
in class AbstractQueryDto<FilterQuery>
protected void applyFilters(FilterQuery query)
applyFilters
in class AbstractQueryDto<FilterQuery>
protected void applySortBy(FilterQuery query, String sortBy, Map<String,Object> parameters, ProcessEngine engine)
applySortBy
in class AbstractQueryDto<FilterQuery>
Copyright © 2022. All rights reserved.