From c35c896ba3cf8ea670c9a3a87e77be0b3dedb2b3 Mon Sep 17 00:00:00 2001 From: Rodrigo Lima Date: Wed, 9 Sep 2020 14:54:15 -0400 Subject: Add side effect to check pnf owning entity - Create side effect to check : user's groups contains pnf's owning entity name - Create unit tests for side effect - Add new process method in HttpEntry to pass set of groups - Pass set of groups to db serializer Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima Change-Id: I4bc7ab6e22bce8cbe60bd7ef6bb5db73dac3a1c4 --- aai-annotations/pom.xml | 2 +- .../src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'aai-annotations') diff --git a/aai-annotations/pom.xml b/aai-annotations/pom.xml index 9b794df2..bc4ebb9e 100644 --- a/aai-annotations/pom.xml +++ b/aai-annotations/pom.xml @@ -27,7 +27,7 @@ org.onap.aai.aai-common aai-parent - 1.7.0-SNAPSHOT + 1.7.1-SNAPSHOT ../aai-parent/pom.xml aai-annotations diff --git a/aai-annotations/src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java b/aai-annotations/src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java index 559501a7..8b28fc79 100644 --- a/aai-annotations/src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java +++ b/aai-annotations/src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java @@ -71,7 +71,13 @@ public enum PropertyMetadata { * Add a private edge between two objects based on the uri provided by user which should provide * the appropriate information from the url similar to dataCopy */ - PRIVATE_EDGE("privateEdge"); + PRIVATE_EDGE("privateEdge"), + + /** + * Checks if user's owning entity equals to pnf's owning entity (if it exists) + * + */ + OWNER_CHECK("ownerCheck"); private final String name; -- cgit 1.2.3-korg