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: Ibf12c757758d31ec3075119c56243e0abcf259bf
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 files changed
tree: af4541fb9f4735055db79b69fb68fc1b6265eb8e
  1. csit/
  2. main/
  3. packages/
  4. postman/
  5. releases/
  6. testsuites/
  7. .gitignore
  8. .gitreview
  9. INFO.yaml
  10. LICENSE.txt
  11. lombok.config
  12. pom.xml
  13. README.md
  14. 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 API code.

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