summaryrefslogtreecommitdiffstats
path: root/controlloop/common
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-09-08 16:47:59 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-08 16:47:59 +0000
commit045198cd1a5a73ffe6630e6833e1d021585fb82f (patch)
tree53cbabe4f5b0657e13142d7a3fa8041e3dce5f24 /controlloop/common
parent9641684f3084e3e6a0ce8b8594258c25c1092c2d (diff)
parentbf2a2faad8e56abfe39cba37fe5e8cee6bfe3a5c (diff)
Merge "Clearing sonar critical for missing serialization"
Diffstat (limited to 'controlloop/common')
-rw-r--r--controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/APPCActorServiceProvider.java5
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java9
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java7
3 files changed, 15 insertions, 6 deletions
diff --git a/controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/APPCActorServiceProvider.java b/controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/APPCActorServiceProvider.java
index e7b7d2371..2d2992106 100644
--- a/controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/APPCActorServiceProvider.java
+++ b/controlloop/common/actors/actor.appc/src/main/java/org/onap/policy/controlloop/actor/appc/APPCActorServiceProvider.java
@@ -24,7 +24,6 @@ import java.util.Collections;
import java.util.List;
import org.onap.policy.controlloop.VirtualControlLoopEvent;
-import org.onap.policy.controlloop.actor.appclcm.AppcLcmActorServiceProvider;
import org.onap.policy.appc.CommonHeader;
import org.onap.policy.appc.Request;
import org.onap.policy.controlloop.ControlLoopOperation;
@@ -101,9 +100,7 @@ public class APPCActorServiceProvider implements Actor {
* specified in the yaml, the target vnf-id is retrieved by
* a named query to A&AI.
*/
- String resourceId = policy.getTarget().getResourceID();
- String sourceVnfId = onset.AAI.get("generic-vnf.vnf-id");
- String vnfId = "test"; //AppcLcmActorServiceProvider.vnfNamedQuery(resourceId, sourceVnfId);
+ String vnfId = "test";
/*
* For now Policy generates the PG Streams as a demo, in the
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java
index 8667544eb..823dc76a0 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQF199/AAINQF199VServer.java
@@ -20,9 +20,16 @@
package org.onap.policy.aai.AAINQF199;
+import java.io.Serializable;
+
import com.google.gson.annotations.SerializedName;
-public class AAINQF199VServer {
+public class AAINQF199VServer implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6718526692734215643L;
@SerializedName("vserver-id")
public String vserverId;
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java
index 36d34f75b..4799733da 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java
@@ -21,12 +21,17 @@
package org.onap.policy.aai;
import java.util.List;
+import java.io.Serializable;
import java.util.LinkedList;
import com.google.gson.annotations.SerializedName;
-public class RelationshipList {
+public class RelationshipList implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1769880386474240406L;
@SerializedName("relationship")
public List<RelationshipItem> relationship = new LinkedList<RelationshipItem>();