Catalog alignment
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / graph / datatype / GraphNode.java
index 3375719..1744162 100644 (file)
@@ -35,16 +35,16 @@ public abstract class GraphNode extends GraphElement {
 
        private NodeTypeEnum label;
 
-    protected GraphNode(NodeTypeEnum label) {
-        super(GraphElementTypeEnum.Node);
-
-        this.label = label;
-    }
-       
        protected Gson getGson() {
                return gson;
        }
 
+       protected GraphNode(NodeTypeEnum label) {
+               super(GraphElementTypeEnum.Node);
+
+               this.label = label;
+       }
+
        public String getLabel() {
                return label.getName();
        }
@@ -53,6 +53,11 @@ public abstract class GraphNode extends GraphElement {
         return new ImmutablePair<>(getUniqueIdKey(), getUniqueId());
        }
 
+
+       public ImmutablePair<String, Object> getKeyValueIdForLog() {
+               return getKeyValueId();
+       }
+
        protected void addIfExists(Map<String, Object> map, GraphPropertiesDictionary property, Object value) {
                if (value != null) {
                        if (value instanceof List || value instanceof Map) {