public class FilterResourceResolver extends Object
FilterNode tree on a resource list to filter all resources that match
the given filter expression| Constructor and Description |
|---|
FilterResourceResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
checkValueEquality(com.fasterxml.jackson.databind.JsonNode attributeNode,
AttributeExpressionLeaf attributeExpressionLeaf)
checks if the given simple attribute node does match the given filter expression
|
static <T extends ResourceNode> |
filterResources(List<T> resources,
FilterNode filterNode)
filters the given resources based on the filternode
|
public static <T extends ResourceNode> List<T> filterResources(List<T> resources, FilterNode filterNode)
T - a ResourceNode typeresources - the resources that must be filteredfilterNode - the filter node that holds the information how the resources should be filteredprotected static boolean checkValueEquality(com.fasterxml.jackson.databind.JsonNode attributeNode,
AttributeExpressionLeaf attributeExpressionLeaf)
attributeNode - a simple attribute node with primitive values. This might be a json array with
primitives or a json primitiveattributeExpressionLeaf - the expression leaf that describes the nodeCopyright © 2019. All rights reserved.