aboutsummaryrefslogtreecommitdiffstats
path: root/aai-annotations
diff options
context:
space:
mode:
authorRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-09 14:54:15 -0400
committerRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-10 15:08:25 -0400
commitc35c896ba3cf8ea670c9a3a87e77be0b3dedb2b3 (patch)
treeed7c20c179fe6b82ddb3f0064bef68624192292b /aai-annotations
parent87925eec3e39fc79540e034622705ff9ee663343 (diff)
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 <rodrigo.lima@yoppworks.com> Change-Id: I4bc7ab6e22bce8cbe60bd7ef6bb5db73dac3a1c4
Diffstat (limited to 'aai-annotations')
-rw-r--r--aai-annotations/pom.xml2
-rw-r--r--aai-annotations/src/main/java/org/onap/aai/schema/enums/PropertyMetadata.java8
2 files changed, 8 insertions, 2 deletions
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 @@
<parent>
<groupId>org.onap.aai.aai-common</groupId>
<artifactId>aai-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.1-SNAPSHOT</version>
<relativePath>../aai-parent/pom.xml</relativePath>
</parent>
<artifactId>aai-annotations</artifactId>
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;