From 8054d6dcff521c460954b9e9e203faf65924bfee Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 2 Apr 2019 23:32:32 +0000 Subject: Add persistence for PDP concepts This review adds the JPA annotations to PDP group/subgroup and PDP for persisting to the database. It also updates the Provider API as requested by other team members. Issue-ID: POLICY-1095 Change-Id: I8188afb763849ede9680f3751b464d9d76c27196 Signed-off-by: liamfallon --- .../tosca/authorative/provider/AuthorativeToscaProvider.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'models-tosca') diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java index e9e92d361..d0127d65f 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java @@ -174,11 +174,13 @@ public class AuthorativeToscaProvider { * * @param dao the DAO to use to access the database * @param policyTypeName the name of the policy type for which to get policies + * @param policyTypeVersion the version of the policy type, null returns all versions of deployed policies for + * policy types * @return the policies found * @throws PfModelException on errors getting policies */ - public List getPolicyList4PolicyType(@NonNull final PfDao dao, @NonNull final String policyTypeName) - throws PfModelException { + public List getPolicyList4PolicyType(@NonNull final PfDao dao, @NonNull final String policyTypeName, + final String policyTypeVersion) throws PfModelException { return new ArrayList<>(); } @@ -202,7 +204,7 @@ public class AuthorativeToscaProvider { * @return the policies found * @throws PfModelException on errors getting policies */ - public List getLatestPolicyList(@NonNull final PfDao dao, final String name) throws PfModelException { + public List getLatestPolicyList(@NonNull final PfDao dao, final String name) throws PfModelException { return new ArrayList<>(); } -- cgit 1.2.3-korg