Make filters on TOSCA entities generic

The classes PolicyTypeFilter and PolicyFilter only work on Policy types
and policies. However they just filter on name/version/type/typeversion
so there is no reason that the filters could not be applied to other
entities.

This commit adapts the PolicyTypeFilter to EntityFilter and PolicyFilter
to TypedEntityFilter, so the filters can be applied to collections of
any ToscaEntity class.

Issue-ID: POLICY-2995
Change-Id: I7cc0ffa23fb12ab5b6e7617491dccd6f3289fa22
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 files changed
tree: 6a64b0710e1b456ea4ef027e7db8375e60f7e85d
  1. main/
  2. packages/
  3. postman/
  4. releases/
  5. testsuites/
  6. .gitignore
  7. .gitreview
  8. INFO.yaml
  9. LICENSE.txt
  10. lombok.config
  11. pom.xml
  12. README.md
  13. version.properties
README.md

Copyright 2017-2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains the ONAP Policy Administration Point Backend code.

To build it using Maven 3, run: mvn clean install