Class FilterResourceImpl
java.lang.Object
org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
org.camunda.bpm.engine.rest.sub.runtime.impl.FilterResourceImpl
- All Implemented Interfaces:
FilterResource
- Author:
- Sebastian Menski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filter
static final Pattern
protected FilterService
static final String
static final String
protected String
static final List<jakarta.ws.rs.core.Variant>
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
resource, resourceId
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper
-
Constructor Summary
ConstructorsConstructorDescriptionFilterResourceImpl
(String processEngineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String filterId, String relativeRootResourcePath) -
Method Summary
Modifier and TypeMethodDescriptionavailableOperations
(jakarta.ws.rs.core.UriInfo context) protected Query
convertQuery
(String queryString) protected Object
convertToDto
(Object entity) convertToDtoList
(List<?> entities) protected HalCollectionResource
convertToHalCollection
(List<?> entities, long count) protected HalResource<?>
convertToHalResource
(Object entity) protected HalTask
convertToHalTask
(Task task) protected HalTaskList
convertToHalTaskList
(List<Task> tasks, long count) void
protected void
embedVariableValuesInHalTask
(HalTask halTask, Map<String, List<VariableInstance>> variableInstances) protected long
executeFilterCount
(String extendingQuery) protected List<?>
executeFilterList
(String extendingQueryString, Integer firstResult, Integer maxResults) protected Object
executeFilterSingleResult
(String extendingQuery) executeHalList
(Integer firstResult, Integer maxResults) executeJsonList
(Integer firstResult, Integer maxResults) executeList
(jakarta.ws.rs.core.Request request, Integer firstResult, Integer maxResults) executeSingleResult
(jakarta.ws.rs.core.Request request) protected InvalidRequestException
filterNotFound
(Exception cause) protected Filter
protected AbstractQueryDto<?>
getQueryDtoForQuery
(String queryString, String resourceType) protected Map<String,
List<VariableInstance>> getSortedVariableInstances
(Collection<String> variableNames, Collection<String> variableScopeIds) protected Map<String,
List<VariableInstance>> getVariableInstancesForTasks
(HalTask... halTasks) protected Map<String,
List<VariableInstance>> getVariableInstancesForTasks
(HalTaskList halTaskList) protected LinkedHashSet<String>
getVariableScopeIds
(HalTask... halTasks) protected List<HalResource<?>>
getVariableValuesForTask
(HalTask halTask, Map<String, List<VariableInstance>> variableInstances) protected InvalidRequestException
invalidQuery
(Exception cause) protected boolean
isEmptyJson
(String jsonString) protected boolean
isEntityOfClass
(Object entity, Class<?> entityClass) queryCount
(String extendingQuery) queryHalList
(String extendingQuery, Integer firstResult, Integer maxResults) queryHalSingleResult
(String extendingQuery) queryJsonList
(String extendingQuery, Integer firstResult, Integer maxResults) queryJsonSingleResult
(String extendingQuery) queryList
(jakarta.ws.rs.core.Request request, String extendingQuery, Integer firstResult, Integer maxResults) querySingleResult
(jakarta.ws.rs.core.Request request, String extendingQuery) protected List<VariableInstance>
queryVariablesInstancesByVariableScopeIds
(Collection<String> variableNames, Collection<String> variableScopeIds) protected InvalidRequestException
unsupportedEntityClass
(Object entity) void
updateFilter
(FilterDto filterDto) Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractAuthorizedRestResource
isAuthorized, isAuthorized, isAuthorized
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
Field Details
-
EMPTY_JSON_BODY
-
PROPERTIES_VARIABLES_KEY
- See Also:
-
PROPERTIES_VARIABLES_NAME_KEY
- See Also:
-
VARIANTS
-
relativeRootResourcePath
-
filterService
-
dbFilter
-
-
Constructor Details
-
FilterResourceImpl
-
-
Method Details
-
getFilter
- Specified by:
getFilter
in interfaceFilterResource
-
getDbFilter
-
deleteFilter
public void deleteFilter()- Specified by:
deleteFilter
in interfaceFilterResource
-
updateFilter
- Specified by:
updateFilter
in interfaceFilterResource
-
executeSingleResult
- Specified by:
executeSingleResult
in interfaceFilterResource
-
executeJsonSingleResult
-
querySingleResult
- Specified by:
querySingleResult
in interfaceFilterResource
-
queryJsonSingleResult
-
executeHalSingleResult
-
queryHalSingleResult
-
executeFilterSingleResult
-
executeList
public Object executeList(jakarta.ws.rs.core.Request request, Integer firstResult, Integer maxResults) - Specified by:
executeList
in interfaceFilterResource
-
executeJsonList
-
queryList
public Object queryList(jakarta.ws.rs.core.Request request, String extendingQuery, Integer firstResult, Integer maxResults) - Specified by:
queryList
in interfaceFilterResource
-
queryJsonList
-
executeHalList
-
queryHalList
-
executeFilterList
-
executeCount
- Specified by:
executeCount
in interfaceFilterResource
-
queryCount
- Specified by:
queryCount
in interfaceFilterResource
-
executeFilterCount
-
availableOperations
- Specified by:
availableOperations
in interfaceFilterResource
-
convertQuery
-
convertToDto
-
convertToDtoList
-
convertToHalResource
-
convertToHalTask
-
convertToHalCollection
-
convertToHalTaskList
-
embedVariableValuesInHalTask
protected void embedVariableValuesInHalTask(HalTask halTask, Map<String, List<VariableInstance>> variableInstances) -
getQueryDtoForQuery
-
getVariableValuesForTask
protected List<HalResource<?>> getVariableValuesForTask(HalTask halTask, Map<String, List<VariableInstance>> variableInstances) -
getVariableInstancesForTasks
-
getVariableInstancesForTasks
-
getFilterVariableNames
-
getVariableScopeIds
-
getSortedVariableInstances
protected Map<String,List<VariableInstance>> getSortedVariableInstances(Collection<String> variableNames, Collection<String> variableScopeIds) -
queryVariablesInstancesByVariableScopeIds
protected List<VariableInstance> queryVariablesInstancesByVariableScopeIds(Collection<String> variableNames, Collection<String> variableScopeIds) -
isEntityOfClass
-
isEmptyJson
-
filterNotFound
-
invalidQuery
-
unsupportedEntityClass
-