diff options
author | Shwetank Dave <shwetank.dave@amdocs.com> | 2017-08-22 10:36:30 -0400 |
---|---|---|
committer | Shwetank Dave <shwetank.dave@amdocs.com> | 2017-08-22 10:47:15 -0400 |
commit | 7e69be504213aa92893fd3354a767128b3a583f1 (patch) | |
tree | 7548c989b5bc6b1482113f8283b29a1b6f252f34 /src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java | |
parent | 91bfcea8df6302133254c26379ef285525b551f0 (diff) |
Using DbEdgeRules.json files from aai-core jar.
Before we were aai_relationship_vxx.json files.
Now using the edge rules directly from aai-core jar.
Issue-ID: AAI-21
Change-Id: Id62494caabc75bc29e4f3558268ec78897946937
Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
Diffstat (limited to 'src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java')
-rw-r--r-- | src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java b/src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java index 552b60a..af20699 100644 --- a/src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java +++ b/src/main/java/org/openecomp/schema/RelationshipSchemaValidator.java @@ -56,7 +56,7 @@ public class RelationshipSchemaValidator { throw new CrudException("", Status.NOT_FOUND); } - HashMap<String, Class<?>> props = schema.lookupRelationType(type); + Map<String, Class<?>> props = schema.lookupRelationType(type); Map<String, Object> result = new HashMap<String, Object>(); for (String key : filter.keySet()) { @@ -128,7 +128,7 @@ public class RelationshipSchemaValidator { String key = sourceNodeType + ":" + targetNodeType + ":" + type; // find the validate the key from the schema - HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key); + Map<String, Class<?>> schemaObject = schema.lookupRelation(key); if (schemaObject == null) { throw new CrudException("Invalid source/target/relationship type: " + key, @@ -185,7 +185,7 @@ public class RelationshipSchemaValidator { + ":" + edge.getType(); // find the validate the key from the schema - HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key); + Map<String, Class<?>> schemaObject = schema.lookupRelation(key); if (schemaObject == null) { Logger.warn("key :" + key @@ -267,7 +267,7 @@ public class RelationshipSchemaValidator { + ":" + edge.getType(); // find the validate the key from the schema - HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key); + Map<String, Class<?>> schemaObject = schema.lookupRelation(key); if (schemaObject == null) { Logger.warn("key :" + key @@ -295,7 +295,7 @@ public class RelationshipSchemaValidator { private static void validateEdgeProps(Edge.Builder builder, JsonElement props, - HashMap<String, Class<?>> schemaObject) + Map<String, Class<?>> schemaObject) throws CrudException { Set<Map.Entry<String, JsonElement>> entries = props.getAsJsonObject().entrySet(); @@ -323,7 +323,7 @@ public class RelationshipSchemaValidator { String key = edge.getSource().getType() + ":" + edge.getTarget().getType() + ":" + edge.getType(); - HashMap<String, Class<?>> schemaObject = schema.lookupRelation(key); + Map<String, Class<?>> schemaObject = schema.lookupRelation(key); if (schemaObject == null || schemaObject.isEmpty()) { return edge; |