Make filters on TOSCA entities generic 75/117575/1
authorliamfallon <liam.fallon@est.tech>
Sun, 7 Feb 2021 15:23:31 +0000 (15:23 +0000)
committerliamfallon <liam.fallon@est.tech>
Sun, 7 Feb 2021 15:23:37 +0000 (15:23 +0000)
commit479e03a28380d98ebd71b919797733276e2ef003
tree6a64b0710e1b456ea4ef027e7db8375e60f7e85d
parent4e5bcfe2a7aeccebcea55c0146a38a931567ea75
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>
main/src/main/java/org/onap/policy/pap/main/rest/SessionData.java
main/src/test/java/org/onap/policy/pap/main/rest/TestSessionData.java