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 --- .../src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'aai-annotations/src/main/java/org') 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