From 09e2bc57b947fb71c4dde9a8c0ded52f695abda1 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 11 May 2021 14:35:20 +0100 Subject: Handling Policy deploy/undeploy audit models Added a new Entity to store information when a Pdp Policy is deployed or undeployed and its create/retrieve methods. Change-Id: I35b3608c878bbfbbee0a99a124d100a48fe08131 Issue-ID: POLICY-2899 Signed-off-by: adheli.tavares --- models-pap/pom.xml | 12 +- .../policy/models/pap/concepts/PolicyAudit.java | 50 +++++ .../pap/persistence/concepts/JpaPolicyAudit.java | 191 ++++++++++++++++ .../persistence/provider/PolicyAuditProvider.java | 137 ++++++++++++ .../persistence/concepts/JpaPolicyAuditTest.java | 126 +++++++++++ .../provider/PolicyAuditProviderTest.java | 241 +++++++++++++++++++++ .../src/test/resources/META-INF/persistence.xml | 46 ++++ 7 files changed, 802 insertions(+), 1 deletion(-) create mode 100644 models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyAudit.java create mode 100644 models-pap/src/main/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAudit.java create mode 100644 models-pap/src/main/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProvider.java create mode 100644 models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java create mode 100644 models-pap/src/test/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProviderTest.java create mode 100644 models-pap/src/test/resources/META-INF/persistence.xml (limited to 'models-pap') diff --git a/models-pap/pom.xml b/models-pap/pom.xml index f2ac085a7..39508638e 100644 --- a/models-pap/pom.xml +++ b/models-pap/pom.xml @@ -1,6 +1,6 @@ + + + + org.eclipse.persistence.jpa.PersistenceProvider + + org.onap.policy.models.pap.persistence.concepts.JpaPolicyAudit + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg