summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/aai
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-12-11 04:21:33 +0000
committerGerrit Code Review <gerrit@onap.org>2017-12-11 04:21:33 +0000
commit5cfd3b7066e6a6305e140fa59b1fccb8e3c5f81b (patch)
treefff192566312a14dab3331f55b396f2615dec815 /controlloop/common/model-impl/aai
parent379e02e7e500b4c022771e5a1f4bdd1566069a9b (diff)
parentc3619a82215b2277087f73741d57d3a3b75325f6 (diff)
Merge "Technical Debt in AAI."
Diffstat (limited to 'controlloop/common/model-impl/aai')
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETResponse.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVnfResponse.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVserverResponse.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIManager.java174
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQCloudRegion.java3
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQExtraProperties.java12
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQGenericVNF.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInstanceFilters.java10
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItem.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItems.java10
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQNamedQuery.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQQueryParameters.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQRequest.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponse.java18
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponseWrapper.java21
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQServiceInstance.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQTenant.java3
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVServer.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVfModule.java3
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNF.java41
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNFInstance.java83
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToProperty.java8
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToPropertyItem.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/Relationship.java3
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipData.java11
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipDataItem.java4
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipItem.java10
-rw-r--r--controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipList.java10
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVnfResponseTest.java10
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVserverResponseTest.java10
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQExtraPropertiesTest.java10
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemTest.java36
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemsTest.java50
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseTest.java50
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseWrapperTest.java54
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFInstanceTest.java6
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFTest.java4
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelatedToPropertyTest.java4
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipDataTest.java4
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipItemTest.java2
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipListTest.java8
-rw-r--r--controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipTest.java6
42 files changed, 375 insertions, 347 deletions
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETResponse.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETResponse.java
index caba0596f..ac6e38deb 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETResponse.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETResponse.java
@@ -48,8 +48,4 @@ public class AAIGETResponse implements Serializable {
@SerializedName("requestError")
public AAINQRequestError requestError;
-
- public AAIGETResponse() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVnfResponse.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVnfResponse.java
index a95502cca..c89083b18 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVnfResponse.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVnfResponse.java
@@ -45,8 +45,4 @@ public class AAIGETVnfResponse extends AAIGETResponse implements Serializable {
@SerializedName("orchestration-status")
public String orchestrationStatus;
-
- public AAIGETVnfResponse() {
- }
-
} \ No newline at end of file
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVserverResponse.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVserverResponse.java
index 527bbe528..162df0d93 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVserverResponse.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIGETVserverResponse.java
@@ -42,8 +42,4 @@ public class AAIGETVserverResponse extends AAIGETResponse implements Serializabl
@SerializedName("vserver-selflink")
public String vserverSelflink;
-
- public AAIGETVserverResponse() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIManager.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIManager.java
index c92ea775b..621398282 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIManager.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAIManager.java
@@ -33,117 +33,109 @@ import org.slf4j.LoggerFactory;
import com.google.gson.JsonSyntaxException;
public final class AAIManager {
+ private static final String LINE_SEPARATOR = System.lineSeparator();
+
+ /**
+ * Private constructor added to avoid instantiation of static class
+ */
+ private AAIManager() {
+ }
+
private static final Logger logger = LoggerFactory.getLogger(AAIManager.class);
private static final Logger netLogger = LoggerFactory.getLogger(org.onap.policy.drools.event.comm.Topic.NETWORK_LOGGER);
-
+
public static AAINQResponse postQuery(String url, String username, String password, AAINQRequest request, UUID requestID) {
-
- Map<String, String> headers = new HashMap<>();
- headers.put("X-FromAppId", "POLICY");
- headers.put("X-TransactionId", requestID.toString());
- headers.put("Accept", "application/json");
-
+
+ Map<String, String> headers = createHeaders(requestID);
+
url = url + "/aai/search/named-query";
logger.debug("RESTManager.post before");
String requestJson = Serialization.gsonPretty.toJson(request);
- netLogger.info("[OUT|{}|{}|]{}{}", "AAI", url, System.lineSeparator(), requestJson);
+ netLogger.info("[OUT|{}|{}|]{}{}", "AAI", url, LINE_SEPARATOR, requestJson);
Pair<Integer, String> httpDetails = RESTManager.post(url, username, password, headers, "application/json", requestJson);
logger.debug("RESTManager.post after");
-
+
if (httpDetails == null) {
- logger.info("AAI POST Null Response to " + url);
+ logger.info("AAI POST Null Response to {}", url);
return null;
}
+
+ int httpResponseCode = httpDetails.a;
logger.info(url);
- logger.info(httpDetails.a.toString());
+ logger.info("{}", httpResponseCode);
logger.info(httpDetails.b);
+
if (httpDetails.b != null) {
- try {
- AAINQResponse response = Serialization.gsonPretty.fromJson(httpDetails.b, AAINQResponse.class);
- netLogger.info("[IN|{}|{}|]{}{}", "AAI", url, System.lineSeparator(), httpDetails.b);
- return response;
- } catch (JsonSyntaxException e) {
- logger.error("postQuery threw: ", e);
- }
+ return composeResponse(httpDetails, url, AAINQResponse.class);
}
return null;
}
-
+
public static AAIGETVserverResponse getQueryByVserverName(String urlGet, String username, String password, UUID requestID, String key) {
-
- Map<String, String> headers = new HashMap<>();
- headers.put("X-FromAppId", "POLICY");
- headers.put("X-TransactionId", requestID.toString());
- headers.put("Accept", "application/json");
-
+
+ Map<String, String> headers = createHeaders(requestID);
+
urlGet = urlGet + key;
-
+
int attemptsLeft = 3;
- AAIGETVserverResponse responseGet = null;
-
+
while(attemptsLeft-- > 0){
netLogger.info("[OUT|{}|{}|]", "AAI", urlGet);
Pair<Integer, String> httpDetailsGet = RESTManager.get(urlGet, username, password, headers);
if (httpDetailsGet == null) {
- logger.info("AAI GET Null Response to " + urlGet);
+ logger.info("AAI GET Null Response to {}", urlGet);
return null;
}
+
+ int httpResponseCode = httpDetailsGet.a;
logger.info(urlGet);
- logger.info(httpDetailsGet.a.toString());
+ logger.info("{}", httpResponseCode);
logger.info(httpDetailsGet.b);
-
- if (httpDetailsGet.a == 200) {
- try {
- responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.b, AAIGETVserverResponse.class);
- netLogger.info("[IN|{}|{}|]{}{}", "AAI", urlGet, System.lineSeparator(), httpDetailsGet.b);
+
+ if (httpResponseCode == 200) {
+ AAIGETVserverResponse responseGet = composeResponse(httpDetailsGet, urlGet, AAIGETVserverResponse.class);
+ if (responseGet != null) {
return responseGet;
- } catch (JsonSyntaxException e) {
- logger.error("postQuery threw: ", e);
}
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) { Thread.currentThread().interrupt(); }
- }
-
+ }
+
return null;
}
-
+
public static AAIGETVnfResponse getQueryByVnfID(String urlGet, String username, String password, UUID requestID, String key) {
-
- Map<String, String> headers = new HashMap<>();
- headers.put("X-FromAppId", "POLICY");
- headers.put("X-TransactionId", requestID.toString());
- headers.put("Accept", "application/json");
-
+
+ Map<String, String> headers = createHeaders(requestID);
+
urlGet = urlGet + key;
-
+
int attemptsLeft = 3;
- AAIGETVnfResponse responseGet = null;
-
+
while(attemptsLeft-- > 0){
netLogger.info("[OUT|{}|{}|]", "AAI", urlGet);
Pair<Integer, String> httpDetailsGet = RESTManager.get(urlGet, username, password, headers);
if (httpDetailsGet == null) {
- logger.info("AAI GET Null Response to " + urlGet);
+ logger.info("AAI GET Null Response to {}", urlGet);
return null;
}
+
+ int httpResponseCode = httpDetailsGet.a;
logger.info(urlGet);
- logger.info(httpDetailsGet.a.toString());
+ logger.info("{}", httpResponseCode);
logger.info(httpDetailsGet.b);
-
- if (httpDetailsGet.a == 200) {
- try {
- responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.b, AAIGETVnfResponse.class);
- netLogger.info("[IN|{}|{}|]{}{}", "AAI", urlGet, System.lineSeparator(), httpDetailsGet.b);
+
+ if (httpResponseCode == 200) {
+ AAIGETVnfResponse responseGet = composeResponse(httpDetailsGet, urlGet, AAIGETVnfResponse.class);
+ if (responseGet != null) {
return responseGet;
- } catch (JsonSyntaxException e) {
- logger.error("postQuery threw: ", e);
}
}
try {
@@ -151,49 +143,45 @@ public final class AAIManager {
} catch (InterruptedException e) { Thread.currentThread().interrupt(); }
}
-
+
return null;
}
-
+
public static AAIGETVnfResponse getQueryByVnfName(String urlGet, String username, String password, UUID requestID, String key) {
-
+ return getQueryByVnfID(urlGet, username, password, requestID, key);
+ }
+
+ /**
+ * Create the headers for the HTTP request
+ * @param requestID the request ID to insert in the headers
+ * @return the HTTP headers
+ */
+ private static Map<String, String> createHeaders(final UUID requestID) {
Map<String, String> headers = new HashMap<>();
+
headers.put("X-FromAppId", "POLICY");
headers.put("X-TransactionId", requestID.toString());
headers.put("Accept", "application/json");
-
- urlGet = urlGet + key;
-
- int attemptsLeft = 3;
- AAIGETVnfResponse responseGet = null;
-
- while(attemptsLeft-- > 0){
- netLogger.info("[OUT|{}|{}|]", "AAI", urlGet);
- Pair<Integer, String> httpDetailsGet = RESTManager.get(urlGet, username, password, headers);
- if (httpDetailsGet == null) {
- logger.info("AAI GET Null Response to " + urlGet);
- return null;
- }
-
- logger.info(urlGet);
- logger.info(httpDetailsGet.a.toString());
- logger.info(httpDetailsGet.b);
-
- if (httpDetailsGet.a == 200) {
- try {
- responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.b, AAIGETVnfResponse.class);
- netLogger.info("[IN|{}|{}|]{}{}", "AAI", urlGet, System.lineSeparator(), httpDetailsGet.b);
- return responseGet;
- } catch (JsonSyntaxException e) {
- logger.error("postQuery threw: ", e);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
+ return headers;
+ }
+
+ /**
+ * This method uses Google's GSON to create a response object from a JSON string
+ * @param httpDetails the HTTP response
+ * @param url the URL from which the response came
+ * @param classOfT The response class
+ * @return an instance of the response class
+ * @throws JsonSyntaxException on GSON errors instantiating the response
+ */
+ private static <T> T composeResponse(final Pair<Integer, String> httpDetails, final String url, final Class<T> classOfT) {
+ try {
+ T response = Serialization.gsonPretty.fromJson(httpDetails.b, classOfT);
+ netLogger.info("[IN|{}|{}|]{}{}", "AAI", url, LINE_SEPARATOR, httpDetails.b);
+ return response;
+ } catch (JsonSyntaxException e) {
+ logger.error("postQuery threw: ", e);
+ return null;
}
-
- return null;
}
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQCloudRegion.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQCloudRegion.java
index cbe2b9730..bfeb1e56c 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQCloudRegion.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQCloudRegion.java
@@ -45,7 +45,4 @@ public class AAINQCloudRegion implements Serializable {
@SerializedName("resource-version")
public String resourceVersion;
-
- public AAINQCloudRegion() {
- }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQExtraProperties.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQExtraProperties.java
index 6f451ce8d..b11859aeb 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQExtraProperties.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQExtraProperties.java
@@ -34,9 +34,13 @@ public class AAINQExtraProperties implements Serializable {
private static final long serialVersionUID = 4109625574744702319L;
@SerializedName("extra-property")
- public List<AAINQExtraProperty> extraProperty = new LinkedList<AAINQExtraProperty>();
-
- public AAINQExtraProperties() {
+ private List<AAINQExtraProperty> extraProperty = new LinkedList<>();
+
+ public List<AAINQExtraProperty> getExtraProperty() {
+ return extraProperty;
+ }
+
+ public void setExtraProperty(List<AAINQExtraProperty> extraProperty) {
+ this.extraProperty = extraProperty;
}
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQGenericVNF.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQGenericVNF.java
index d2bff6b7b..12b8fc42a 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQGenericVNF.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQGenericVNF.java
@@ -81,8 +81,4 @@ public class AAINQGenericVNF implements Serializable {
@SerializedName("model-version-id")
public String modelVersionId;
-
- public AAINQGenericVNF() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInstanceFilters.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInstanceFilters.java
index b122279d6..24b833f25 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInstanceFilters.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInstanceFilters.java
@@ -35,9 +35,13 @@ public class AAINQInstanceFilters implements Serializable {
private static final long serialVersionUID = 8993824591338121185L;
@SerializedName("instance-filter")
- public List<Map<String, Map<String, String>>> instanceFilter = new LinkedList<>();
-
- public AAINQInstanceFilters() {
+ private List<Map<String, Map<String, String>>> instanceFilter = new LinkedList<>();
+
+ public List<Map<String, Map<String, String>>> getInstanceFilter() {
+ return instanceFilter;
}
+ public void setInstanceFilter(List<Map<String, Map<String, String>>> instanceFilter) {
+ this.instanceFilter = instanceFilter;
+ }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItem.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItem.java
index 1dece7da0..b4f1767e4 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItem.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItem.java
@@ -57,8 +57,4 @@ public class AAINQInventoryResponseItem implements Serializable {
@SerializedName("inventory-response-items")
public AAINQInventoryResponseItems items;
-
- public AAINQInventoryResponseItem() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItems.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItems.java
index f4ee0fa3e..8e9728ab3 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItems.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQInventoryResponseItems.java
@@ -34,9 +34,13 @@ public class AAINQInventoryResponseItems implements Serializable {
private static final long serialVersionUID = 7602807659381179004L;
@SerializedName("inventory-response-item")
- public List<AAINQInventoryResponseItem> inventoryResponseItems = new LinkedList<>();
-
- public AAINQInventoryResponseItems() {
+ private List<AAINQInventoryResponseItem> inventoryResponseItems = new LinkedList<>();
+
+ public List<AAINQInventoryResponseItem> getInventoryResponseItems() {
+ return inventoryResponseItems;
}
+ public void setInventoryResponseItems(List<AAINQInventoryResponseItem> inventoryResponseItems) {
+ this.inventoryResponseItems = inventoryResponseItems;
+ }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQNamedQuery.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQNamedQuery.java
index 7ed82e1e9..423c98090 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQNamedQuery.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQNamedQuery.java
@@ -34,8 +34,4 @@ public class AAINQNamedQuery implements Serializable {
@SerializedName("named-query-uuid")
public UUID namedQueryUUID;
-
- public AAINQNamedQuery() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQQueryParameters.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQQueryParameters.java
index eca372bf6..ddff71043 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQQueryParameters.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQQueryParameters.java
@@ -33,8 +33,4 @@ public class AAINQQueryParameters implements Serializable {
@SerializedName("named-query")
public AAINQNamedQuery namedQuery;
-
- public AAINQQueryParameters() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQRequest.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQRequest.java
index 91d9f1a6e..d8d600075 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQRequest.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQRequest.java
@@ -35,8 +35,4 @@ public class AAINQRequest implements Serializable {
public AAINQQueryParameters queryParameters;
@SerializedName("instance-filters")
public AAINQInstanceFilters instanceFilters;
-
- public AAINQRequest() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponse.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponse.java
index 527a12089..2e6776fc6 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponse.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponse.java
@@ -35,12 +35,24 @@ public class AAINQResponse implements Serializable {
private static final long serialVersionUID = 8411407444051746101L;
@SerializedName("inventory-response-item")
- public List<AAINQInventoryResponseItem> inventoryResponseItems = new LinkedList<>();
+ private List<AAINQInventoryResponseItem> inventoryResponseItems = new LinkedList<>();
@SerializedName("requestError")
- public AAINQRequestError requestError;
+ private AAINQRequestError requestError;
- public AAINQResponse() {
+ public List<AAINQInventoryResponseItem> getInventoryResponseItems() {
+ return inventoryResponseItems;
}
+ public void setInventoryResponseItems(List<AAINQInventoryResponseItem> inventoryResponseItems) {
+ this.inventoryResponseItems = inventoryResponseItems;
+ }
+
+ public AAINQRequestError getRequestError() {
+ return requestError;
+ }
+
+ public void setRequestError(AAINQRequestError requestError) {
+ this.requestError = requestError;
+ }
} \ No newline at end of file
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponseWrapper.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponseWrapper.java
index 7bb58eb7d..e8d1620de 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponseWrapper.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQResponseWrapper.java
@@ -26,15 +26,30 @@ import org.onap.policy.aai.AAINQResponse;
public class AAINQResponseWrapper {
- public UUID requestID;
- public AAINQResponse aainqresponse;
+ private UUID requestID;
+ private AAINQResponse aainqresponse;
public AAINQResponseWrapper() {
-
}
public AAINQResponseWrapper(UUID requestID, AAINQResponse aainqresponse){
this.requestID = requestID;
this.aainqresponse = aainqresponse;
}
+
+ public UUID getRequestID() {
+ return requestID;
+ }
+
+ public void setRequestID(UUID requestID) {
+ this.requestID = requestID;
+ }
+
+ public AAINQResponse getAainqresponse() {
+ return aainqresponse;
+ }
+
+ public void setAainqresponse(AAINQResponse aainqresponse) {
+ this.aainqresponse = aainqresponse;
+ }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQServiceInstance.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQServiceInstance.java
index ed7d9225a..256a057a4 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQServiceInstance.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQServiceInstance.java
@@ -54,8 +54,4 @@ public class AAINQServiceInstance implements Serializable {
@SerializedName("model-version-id")
public String modelVersionId;
-
- public AAINQServiceInstance() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQTenant.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQTenant.java
index 98ea83b1f..afd55fd45 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQTenant.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQTenant.java
@@ -39,7 +39,4 @@ public class AAINQTenant implements Serializable {
@SerializedName("resource-version")
public String resourceVersion;
-
- public AAINQTenant() {
- }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVServer.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVServer.java
index 5a9834fee..f6130e95b 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVServer.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVServer.java
@@ -54,8 +54,4 @@ public class AAINQVServer implements Serializable {
@SerializedName("resource-version")
public String resourceVersion;
-
- public AAINQVServer() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVfModule.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVfModule.java
index 07c4303c2..b20681d7f 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVfModule.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/AAINQVfModule.java
@@ -69,7 +69,4 @@ public class AAINQVfModule implements Serializable {
@SerializedName("model-version-id")
public String modelVersionId;
-
- public AAINQVfModule() {
- }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNF.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNF.java
index d8074e0a8..56fb77362 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNF.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNF.java
@@ -29,28 +29,44 @@ public class PNF implements Serializable {
*/
private static final long serialVersionUID = -3535108358668248501L;
- public String PNFName;
- public PNFType PNFType;
+ private String pnfName;
+ private PNFType pnfType;
public PNF() {
}
public PNF(PNF pnf) {
- this.PNFName = pnf.PNFName;
- this.PNFType = pnf.PNFType;
+ this.pnfName = pnf.pnfName;
+ this.pnfType = pnf.pnfType;
}
+ public String getPNFName() {
+ return pnfName;
+ }
+
+ public void setPNFName(String pNFName) {
+ pnfName = pNFName;
+ }
+
+ public PNFType getPNFType() {
+ return pnfType;
+ }
+
+ public void setPNFType(PNFType pNFType) {
+ pnfType = pNFType;
+ }
+
@Override
public String toString() {
- return "PNF [PNFName=" + PNFName + ", PNFType=" + PNFType + "]";
+ return "PNF [PNFName=" + pnfName + ", PNFType=" + pnfType + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((PNFName == null) ? 0 : PNFName.hashCode());
- result = prime * result + ((PNFType == null) ? 0 : PNFType.hashCode());
+ result = prime * result + ((pnfName == null) ? 0 : pnfName.hashCode());
+ result = prime * result + ((pnfType == null) ? 0 : pnfType.hashCode());
return result;
}
@Override
@@ -62,14 +78,11 @@ public class PNF implements Serializable {
if (getClass() != obj.getClass())
return false;
PNF other = (PNF) obj;
- if (PNFName == null) {
- if (other.PNFName != null)
+ if (pnfName == null) {
+ if (other.pnfName != null)
return false;
- } else if (!PNFName.equals(other.PNFName))
+ } else if (!pnfName.equals(other.pnfName))
return false;
- if (PNFType != other.PNFType)
- return false;
- return true;
+ return pnfType == other.pnfType;
}
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNFInstance.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNFInstance.java
index 21d1d50ac..159e5cb28 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNFInstance.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/PNFInstance.java
@@ -29,10 +29,10 @@ public class PNFInstance implements Serializable {
*/
private static final long serialVersionUID = -3694152433472165034L;
- public String PNFName;
- public String PNFInstanceName;
- public PNFType PNFType;
- public String PNFSerial;
+ private String pnfName;
+ private String pnfInstanceName;
+ private PNFType pnfType;
+ private String pnfSerial;
public PNFInstance() {
@@ -42,26 +42,58 @@ public class PNFInstance implements Serializable {
if (instance == null) {
return;
}
- this.PNFName = instance.PNFName;
- this.PNFInstanceName = instance.PNFInstanceName;
- this.PNFType = instance.PNFType;
- this.PNFSerial = instance.PNFSerial;
+ this.pnfName = instance.pnfName;
+ this.pnfInstanceName = instance.pnfInstanceName;
+ this.pnfType = instance.pnfType;
+ this.pnfSerial = instance.pnfSerial;
+ }
+
+ public String getPNFName() {
+ return pnfName;
+ }
+
+ public void setPNFName(String pNFName) {
+ pnfName = pNFName;
+ }
+
+ public String getPNFInstanceName() {
+ return pnfInstanceName;
+ }
+
+ public void setPNFInstanceName(String pNFInstanceName) {
+ pnfInstanceName = pNFInstanceName;
+ }
+
+ public PNFType getPNFType() {
+ return pnfType;
+ }
+
+ public void setPNFType(PNFType pNFType) {
+ pnfType = pNFType;
+ }
+
+ public String getPNFSerial() {
+ return pnfSerial;
+ }
+
+ public void setPNFSerial(String pNFSerial) {
+ pnfSerial = pNFSerial;
}
@Override
public String toString() {
- return "PNFInstance [PNFName=" + PNFName + ", PNFInstanceName=" + PNFInstanceName + ", PNFType=" + PNFType
- + ", PNFSerial=" + PNFSerial + "]";
+ return "PNFInstance [PNFName=" + pnfName + ", PNFInstanceName=" + pnfInstanceName + ", PNFType=" + pnfType
+ + ", PNFSerial=" + pnfSerial + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((PNFInstanceName == null) ? 0 : PNFInstanceName.hashCode());
- result = prime * result + ((PNFName == null) ? 0 : PNFName.hashCode());
- result = prime * result + ((PNFSerial == null) ? 0 : PNFSerial.hashCode());
- result = prime * result + ((PNFType == null) ? 0 : PNFType.hashCode());
+ result = prime * result + ((pnfInstanceName == null) ? 0 : pnfInstanceName.hashCode());
+ result = prime * result + ((pnfName == null) ? 0 : pnfName.hashCode());
+ result = prime * result + ((pnfSerial == null) ? 0 : pnfSerial.hashCode());
+ result = prime * result + ((pnfType == null) ? 0 : pnfType.hashCode());
return result;
}
@@ -74,24 +106,21 @@ public class PNFInstance implements Serializable {
if (getClass() != obj.getClass())
return false;
PNFInstance other = (PNFInstance) obj;
- if (PNFInstanceName == null) {
- if (other.PNFInstanceName != null)
+ if (pnfInstanceName == null) {
+ if (other.pnfInstanceName != null)
return false;
- } else if (!PNFInstanceName.equals(other.PNFInstanceName))
+ } else if (!pnfInstanceName.equals(other.pnfInstanceName))
return false;
- if (PNFName == null) {
- if (other.PNFName != null)
+ if (pnfName == null) {
+ if (other.pnfName != null)
return false;
- } else if (!PNFName.equals(other.PNFName))
+ } else if (!pnfName.equals(other.pnfName))
return false;
- if (PNFSerial == null) {
- if (other.PNFSerial != null)
+ if (pnfSerial == null) {
+ if (other.pnfSerial != null)
return false;
- } else if (!PNFSerial.equals(other.PNFSerial))
+ } else if (!pnfSerial.equals(other.pnfSerial))
return false;
- if (PNFType != other.PNFType)
- return false;
- return true;
+ return pnfType == other.pnfType;
}
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToProperty.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToProperty.java
index 2f8acf697..bb3a95f30 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToProperty.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToProperty.java
@@ -33,9 +33,13 @@ public class RelatedToProperty implements Serializable {
*/
private static final long serialVersionUID = 2088088164920423658L;
@SerializedName("related-to-property")
- public List<RelatedToPropertyItem> relatedTo = new LinkedList<RelatedToPropertyItem>();
+ private List<RelatedToPropertyItem> relatedTo = new LinkedList<>();
- public RelatedToProperty() {
+ public List<RelatedToPropertyItem> getRelatedTo() {
+ return relatedTo;
+ }
+ public void setRelatedTo(List<RelatedToPropertyItem> relatedTo) {
+ this.relatedTo = relatedTo;
}
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToPropertyItem.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToPropertyItem.java
index d455bcf48..24466d6dc 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToPropertyItem.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelatedToPropertyItem.java
@@ -35,8 +35,4 @@ public class RelatedToPropertyItem implements Serializable {
public String propertyKey;
@SerializedName("property-value")
public String propertyValue;
-
- public RelatedToPropertyItem() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/Relationship.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/Relationship.java
index 029a4b823..07169c9ec 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/Relationship.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/Relationship.java
@@ -41,7 +41,4 @@ public class Relationship implements Serializable {
@SerializedName("related-to-property")
public RelatedToProperty relatedToProperty = new RelatedToProperty();
-
- public Relationship() {
- }
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipData.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipData.java
index 2ad373104..08e41a912 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipData.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipData.java
@@ -33,8 +33,13 @@ public class RelationshipData implements Serializable {
*/
private static final long serialVersionUID = 6809180843309562121L;
@SerializedName("relationship-data")
- public List<RelationshipDataItem> relationshipData = new LinkedList<>();
-
- public RelationshipData() {
+ private List<RelationshipDataItem> relationshipDataList = new LinkedList<>();
+
+ public List<RelationshipDataItem> getRelationshipData() {
+ return relationshipDataList;
+ }
+
+ public void setRelationshipData(List<RelationshipDataItem> relationshipData) {
+ this.relationshipDataList = relationshipData;
}
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipDataItem.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipDataItem.java
index a040f0d61..39efdcd4b 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipDataItem.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipDataItem.java
@@ -35,8 +35,4 @@ public class RelationshipDataItem implements Serializable {
public String relationshipKey;
@SerializedName("relationship-value")
public String relationshipValue;
-
- public RelationshipDataItem() {
- }
-
}
diff --git a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipItem.java b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipItem.java
index 8451998eb..939950561 100644
--- a/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipItem.java
+++ b/controlloop/common/model-impl/aai/src/main/java/org/onap/policy/aai/RelationshipItem.java
@@ -34,9 +34,13 @@ public class RelationshipItem implements Serializable {
private static final long serialVersionUID = 1543404460741069628L;
@SerializedName("related-to-property")
- public List<RelatedToPropertyItem> relatedToProperty = new LinkedList<RelatedToPropertyItem>();
-
- public RelationshipItem() {
+ private List<RelatedToPropertyItem> relatedToProperty = new LinkedList<>();
+
+ public List<RelatedToPropertyItem> getRelatedToProperty() {
+ return relatedToProperty;
}
+ public void setRelatedToProperty(List<RelatedToPropertyItem> relatedToProperty) {
+ this.relatedToProperty = relatedToProperty;
+ }
}
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 b31b3a6dc..46e04c8fd 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
@@ -32,8 +32,14 @@ public class RelationshipList implements Serializable {
*/
private static final long serialVersionUID = 6115655704973981989L;
@SerializedName("relationship-list")
- public List<Relationship> relationshipList = new LinkedList<>();
+ private List<Relationship> relationships = new LinkedList<>();
- public RelationshipList() {
+ public List<Relationship> getRelationshipList() {
+ return relationships;
}
+ public void setRelationshipList(List<Relationship> relationshipList) {
+ this.relationships = relationshipList;
+ }
+
+
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVnfResponseTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVnfResponseTest.java
index e668ca372..534dd4791 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVnfResponseTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVnfResponseTest.java
@@ -49,28 +49,28 @@ public class AAIGETVnfResponseTest {
relationshipDataItem.relationshipKey = "customer.global-customer-id";
relationshipDataItem.relationshipValue = "MSO_1610_ST";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationshipDataItem.relationshipKey = "service-subscription.service-type";
relationshipDataItem.relationshipValue = "MSO-dev-service-type";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationshipDataItem.relationshipKey = "service-instance.service-instance-id";
relationshipDataItem.relationshipValue = "e1e9c97c-02c0-4919-9b4c-eb5d5ef68970";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
RelatedToProperty relatedToProperty = new RelatedToProperty();
RelatedToPropertyItem item = new RelatedToPropertyItem();
item.propertyKey = "service-instance.service-instance-name";
item.propertyValue = "lll_svc_010317";
- relatedToProperty.relatedTo.add(item);
+ relatedToProperty.getRelatedTo().add(item);
relationship.relatedTo = "service-instance";
relationship.relatedLink = "/aai/v11/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/e1e9c97c-02c0-4919-9b4c-eb5d5ef68970";
relationship.relationshipData = relationshipData;
relationship.relatedToProperty = relatedToProperty;
- relationshipList.relationshipList.add(relationship);
+ relationshipList.getRelationshipList().add(relationship);
response.relationshipList = relationshipList;
logger.info(Serialization.gsonPretty.toJson(response));
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVserverResponseTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVserverResponseTest.java
index 83d2a2682..1221557dd 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVserverResponseTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAIGETVserverResponseTest.java
@@ -47,28 +47,28 @@ public class AAIGETVserverResponseTest {
relationshipDataItem.relationshipKey = "customer.global-customer-id";
relationshipDataItem.relationshipValue = "MSO_1610_ST";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationshipDataItem.relationshipKey = "service-subscription.service-type";
relationshipDataItem.relationshipValue = "MSO-dev-service-type";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationshipDataItem.relationshipKey = "service-instance.service-instance-id";
relationshipDataItem.relationshipValue = "e1e9c97c-02c0-4919-9b4c-eb5d5ef68970";
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
RelatedToProperty relatedToProperty = new RelatedToProperty();
RelatedToPropertyItem item = new RelatedToPropertyItem();
item.propertyKey = "service-instance.service-instance-name";
item.propertyValue = "lll_svc_010317";
- relatedToProperty.relatedTo.add(item);
+ relatedToProperty.getRelatedTo().add(item);
relationship.relatedTo = "service-instance";
relationship.relatedLink = "/aai/v11/business/customers/customer/MSO_1610_ST/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/e1e9c97c-02c0-4919-9b4c-eb5d5ef68970";
relationship.relationshipData = relationshipData;
relationship.relatedToProperty = relatedToProperty;
- relationshipList.relationshipList.add(relationship);
+ relationshipList.getRelationshipList().add(relationship);
response.relationshipList = relationshipList;
logger.info(Serialization.gsonPretty.toJson(response));
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQExtraPropertiesTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQExtraPropertiesTest.java
index d67f3dd11..148f5df4b 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQExtraPropertiesTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQExtraPropertiesTest.java
@@ -38,11 +38,11 @@ public class AAINQExtraPropertiesTest {
@Test
public void test() {
AAINQExtraProperties aaiNQExtraProperties = new AAINQExtraProperties();
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "service-instance"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "service-instance"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
assertNotNull(aaiNQExtraProperties);
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemTest.java
index ac21a81d8..9dd686409 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemTest.java
@@ -52,12 +52,12 @@ public class AAINQInventoryResponseItemTest {
aaiNQCloudRegion.resourceVersion = "1485365988";
aaiNQInventoryResponseItem.cloudRegion = aaiNQCloudRegion;
AAINQExtraProperties aaiNQExtraProperties = new AAINQExtraProperties();
- aaiNQExtraProperties.extraProperty = new LinkedList<>();
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
- aaiNQExtraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
+ aaiNQExtraProperties.setExtraProperty(new LinkedList<>());
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
+ aaiNQExtraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
aaiNQInventoryResponseItem.extraProperties = aaiNQExtraProperties;
AAINQGenericVNF aaiNQGenericVNF = new AAINQGenericVNF();
aaiNQGenericVNF.vnfID = "dhv-test-gvnf";
@@ -87,11 +87,11 @@ public class AAINQInventoryResponseItemTest {
serviceItem.serviceInstance.serviceInstanceLocationId = "dhv-test-service-instance-location-id1";
serviceItem.serviceInstance.resourceVersion = "1485366092";
serviceItem.extraProperties = new AAINQExtraProperties();
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "service-instance"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "service-instance"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
AAINQInventoryResponseItem vfModuleItem = new AAINQInventoryResponseItem();
vfModuleItem.modelName = "vf-module";
@@ -108,14 +108,14 @@ public class AAINQInventoryResponseItemTest {
vfModuleItem.vfModule.widgetModelVersion = "example-widget-model-version-val-83317";
vfModuleItem.vfModule.contrailServiceInstanceFqdn = "example-contrail-service-instance-fqdn-val-86796";
vfModuleItem.extraProperties = new AAINQExtraProperties();
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "vf-module"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "vf-module"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
- aaiNQInventoryResponseItems.inventoryResponseItems.add(serviceItem);
- aaiNQInventoryResponseItems.inventoryResponseItems.add(vfModuleItem);
+ aaiNQInventoryResponseItems.getInventoryResponseItems().add(serviceItem);
+ aaiNQInventoryResponseItems.getInventoryResponseItems().add(vfModuleItem);
aaiNQInventoryResponseItem.items = aaiNQInventoryResponseItems;
aaiNQInventoryResponseItem.modelName = "model-name";
AAINQServiceInstance serviceInstance = new AAINQServiceInstance();
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemsTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemsTest.java
index 89ce586b6..df6b19959 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemsTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQInventoryResponseItemsTest.java
@@ -54,11 +54,11 @@ public class AAINQInventoryResponseItemsTest {
serviceItem.serviceInstance.serviceInstanceLocationId = "dhv-test-service-instance-location-id1";
serviceItem.serviceInstance.resourceVersion = "1485366092";
serviceItem.extraProperties = new AAINQExtraProperties();
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "service-instance"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "service-instance"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
AAINQInventoryResponseItem vfModuleItem = new AAINQInventoryResponseItem();
vfModuleItem.modelName = "vf-module";
@@ -75,11 +75,11 @@ public class AAINQInventoryResponseItemsTest {
vfModuleItem.vfModule.widgetModelVersion = "example-widget-model-version-val-83317";
vfModuleItem.vfModule.contrailServiceInstanceFqdn = "example-contrail-service-instance-fqdn-val-86796";
vfModuleItem.extraProperties = new AAINQExtraProperties();
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "vf-module"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "vf-module"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
AAINQInventoryResponseItem genericVNFItem = new AAINQInventoryResponseItem();
genericVNFItem.modelName = "generic-vnf";
@@ -100,16 +100,16 @@ public class AAINQInventoryResponseItemsTest {
genericVNFItem.genericVNF.personaModelId = "acc6edd8-a8d4-4b93-afaa-0994068be14c";
genericVNFItem.genericVNF.personaModelVersion = "1.0";
genericVNFItem.extraProperties = new AAINQExtraProperties();
- genericVNFItem.extraProperties.extraProperty = new LinkedList<>();
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
+ genericVNFItem.extraProperties.setExtraProperty(new LinkedList<>());
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
genericVNFItem.items = new AAINQInventoryResponseItems();
- genericVNFItem.items.inventoryResponseItems = new LinkedList<>();
- genericVNFItem.items.inventoryResponseItems.add(serviceItem);
- genericVNFItem.items.inventoryResponseItems.add(vfModuleItem);
+ genericVNFItem.items.setInventoryResponseItems(new LinkedList<>());
+ genericVNFItem.items.getInventoryResponseItems().add(serviceItem);
+ genericVNFItem.items.getInventoryResponseItems().add(vfModuleItem);
AAINQInventoryResponseItem cloudItem = new AAINQInventoryResponseItem();
cloudItem.cloudRegion = new AAINQCloudRegion();
@@ -125,8 +125,8 @@ public class AAINQInventoryResponseItemsTest {
tenantItem.tenant.tenantName = "dhv-test-tenant-name";
tenantItem.tenant.resourceVersion = "1485366334";
tenantItem.items = new AAINQInventoryResponseItems();
- tenantItem.items.inventoryResponseItems = new LinkedList<>();
- tenantItem.items.inventoryResponseItems.add(cloudItem);
+ tenantItem.items.setInventoryResponseItems(new LinkedList<>());
+ tenantItem.items.getInventoryResponseItems().add(cloudItem);
AAINQInventoryResponseItem vserverItem = new AAINQInventoryResponseItem();
vserverItem.vserver = new AAINQVServer();
vserverItem.vserver.vserverId = "dhv-test-vserver";
@@ -138,10 +138,10 @@ public class AAINQInventoryResponseItemsTest {
vserverItem.vserver.isClosedLoopDisabled = false;
vserverItem.vserver.resourceVersion = "1485366417";
vserverItem.items = new AAINQInventoryResponseItems();
- vserverItem.items.inventoryResponseItems = new LinkedList<>();
- vserverItem.items.inventoryResponseItems.add(genericVNFItem);
- vserverItem.items.inventoryResponseItems.add(tenantItem);
- aaiNQInventoryResponseItems.inventoryResponseItems.add(vserverItem);
+ vserverItem.items.setInventoryResponseItems(new LinkedList<>());
+ vserverItem.items.getInventoryResponseItems().add(genericVNFItem);
+ vserverItem.items.getInventoryResponseItems().add(tenantItem);
+ aaiNQInventoryResponseItems.getInventoryResponseItems().add(vserverItem);
assertNotNull(aaiNQInventoryResponseItems);
logger.info(Serialization.gsonPretty.toJson(aaiNQInventoryResponseItems));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseTest.java
index 6b1b624ef..5e59429c2 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseTest.java
@@ -41,11 +41,11 @@ public class AAINQResponseTest {
serviceItem.serviceInstance.serviceInstanceLocationId = "dhv-test-service-instance-location-id1";
serviceItem.serviceInstance.resourceVersion = "1485366092";
serviceItem.extraProperties = new AAINQExtraProperties();
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "service-instance"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "service-instance"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
AAINQInventoryResponseItem vfModuleItem = new AAINQInventoryResponseItem();
vfModuleItem.modelName = "vf-module";
@@ -62,11 +62,11 @@ public class AAINQResponseTest {
vfModuleItem.vfModule.widgetModelVersion = "example-widget-model-version-val-83317";
vfModuleItem.vfModule.contrailServiceInstanceFqdn = "example-contrail-service-instance-fqdn-val-86796";
vfModuleItem.extraProperties = new AAINQExtraProperties();
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "vf-module"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "vf-module"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
AAINQInventoryResponseItem genericVNFItem = new AAINQInventoryResponseItem();
genericVNFItem.modelName = "generic-vnf";
@@ -87,16 +87,16 @@ public class AAINQResponseTest {
genericVNFItem.genericVNF.personaModelId = "acc6edd8-a8d4-4b93-afaa-0994068be14c";
genericVNFItem.genericVNF.personaModelVersion = "1.0";
genericVNFItem.extraProperties = new AAINQExtraProperties();
- genericVNFItem.extraProperties.extraProperty = new LinkedList<>();
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
+ genericVNFItem.extraProperties.setExtraProperty(new LinkedList<>());
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
genericVNFItem.items = new AAINQInventoryResponseItems();
- genericVNFItem.items.inventoryResponseItems = new LinkedList<>();
- genericVNFItem.items.inventoryResponseItems.add(serviceItem);
- genericVNFItem.items.inventoryResponseItems.add(vfModuleItem);
+ genericVNFItem.items.setInventoryResponseItems(new LinkedList<>());
+ genericVNFItem.items.getInventoryResponseItems().add(serviceItem);
+ genericVNFItem.items.getInventoryResponseItems().add(vfModuleItem);
AAINQInventoryResponseItem cloudItem = new AAINQInventoryResponseItem();
cloudItem.cloudRegion = new AAINQCloudRegion();
@@ -112,8 +112,8 @@ public class AAINQResponseTest {
tenantItem.tenant.tenantName = "dhv-test-tenant-name";
tenantItem.tenant.resourceVersion = "1485366334";
tenantItem.items = new AAINQInventoryResponseItems();
- tenantItem.items.inventoryResponseItems = new LinkedList<>();
- tenantItem.items.inventoryResponseItems.add(cloudItem);
+ tenantItem.items.setInventoryResponseItems(new LinkedList<>());
+ tenantItem.items.getInventoryResponseItems().add(cloudItem);
AAINQInventoryResponseItem vserverItem = new AAINQInventoryResponseItem();
vserverItem.vserver = new AAINQVServer();
@@ -126,12 +126,12 @@ public class AAINQResponseTest {
vserverItem.vserver.isClosedLoopDisabled = false;
vserverItem.vserver.resourceVersion = "1485366417";
vserverItem.items = new AAINQInventoryResponseItems();
- vserverItem.items.inventoryResponseItems = new LinkedList<>();
- vserverItem.items.inventoryResponseItems.add(genericVNFItem);
- vserverItem.items.inventoryResponseItems.add(tenantItem);
+ vserverItem.items.setInventoryResponseItems(new LinkedList<>());
+ vserverItem.items.getInventoryResponseItems().add(genericVNFItem);
+ vserverItem.items.getInventoryResponseItems().add(tenantItem);
AAINQResponse aaiResponse = new AAINQResponse();
- aaiResponse.inventoryResponseItems.add(vserverItem);
+ aaiResponse.getInventoryResponseItems().add(vserverItem);
logger.info(Serialization.gsonPretty.toJson(aaiResponse));
}
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseWrapperTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseWrapperTest.java
index ae578f00c..9c4bfafa8 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseWrapperTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/AAINQResponseWrapperTest.java
@@ -55,11 +55,11 @@ public class AAINQResponseWrapperTest {
serviceItem.serviceInstance.serviceInstanceLocationId = "dhv-test-service-instance-location-id1";
serviceItem.serviceInstance.resourceVersion = "1485366092";
serviceItem.extraProperties = new AAINQExtraProperties();
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "service-instance"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
- serviceItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "service-instance"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "82194af1-3c2c-485a-8f44-420e22a9eaa4"));
+ serviceItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "46b92144-923a-4d20-b85a-3cbd847668a9"));
AAINQInventoryResponseItem vfModuleItem = new AAINQInventoryResponseItem();
vfModuleItem.modelName = "vf-module";
@@ -76,11 +76,11 @@ public class AAINQResponseWrapperTest {
vfModuleItem.vfModule.widgetModelVersion = "example-widget-model-version-val-83317";
vfModuleItem.vfModule.contrailServiceInstanceFqdn = "example-contrail-service-instance-fqdn-val-86796";
vfModuleItem.extraProperties = new AAINQExtraProperties();
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "vf-module"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
- vfModuleItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "vf-module"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "ef86f9c5-2165-44f3-8fc3-96018b609ea5"));
+ vfModuleItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "c00563ae-812b-4e62-8330-7c4d0f47088a"));
AAINQInventoryResponseItem genericVNFItem = new AAINQInventoryResponseItem();
genericVNFItem.modelName = "generic-vnf";
@@ -101,16 +101,16 @@ public class AAINQResponseWrapperTest {
genericVNFItem.genericVNF.personaModelId = "acc6edd8-a8d4-4b93-afaa-0994068be14c";
genericVNFItem.genericVNF.personaModelVersion = "1.0";
genericVNFItem.extraProperties = new AAINQExtraProperties();
- genericVNFItem.extraProperties.extraProperty = new LinkedList<>();
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-type", "widget"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-version", "1.0"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
- genericVNFItem.extraProperties.extraProperty.add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
+ genericVNFItem.extraProperties.setExtraProperty(new LinkedList<>());
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name", "generic-vnf"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-type", "widget"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-version", "1.0"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-id", "acc6edd8-a8d4-4b93-afaa-0994068be14c"));
+ genericVNFItem.extraProperties.getExtraProperty().add(new AAINQExtraProperty("model.model-name-version-id", "93a6166f-b3d5-4f06-b4ba-aed48d009ad9"));
genericVNFItem.items = new AAINQInventoryResponseItems();
- genericVNFItem.items.inventoryResponseItems = new LinkedList<>();
- genericVNFItem.items.inventoryResponseItems.add(serviceItem);
- genericVNFItem.items.inventoryResponseItems.add(vfModuleItem);
+ genericVNFItem.items.setInventoryResponseItems(new LinkedList<>());
+ genericVNFItem.items.getInventoryResponseItems().add(serviceItem);
+ genericVNFItem.items.getInventoryResponseItems().add(vfModuleItem);
AAINQInventoryResponseItem cloudItem = new AAINQInventoryResponseItem();
cloudItem.cloudRegion = new AAINQCloudRegion();
@@ -126,8 +126,8 @@ public class AAINQResponseWrapperTest {
tenantItem.tenant.tenantName = "dhv-test-tenant-name";
tenantItem.tenant.resourceVersion = "1485366334";
tenantItem.items = new AAINQInventoryResponseItems();
- tenantItem.items.inventoryResponseItems = new LinkedList<>();
- tenantItem.items.inventoryResponseItems.add(cloudItem);
+ tenantItem.items.setInventoryResponseItems(new LinkedList<>());
+ tenantItem.items.getInventoryResponseItems().add(cloudItem);
AAINQInventoryResponseItem vserverItem = new AAINQInventoryResponseItem();
vserverItem.vserver = new AAINQVServer();
@@ -140,15 +140,15 @@ public class AAINQResponseWrapperTest {
vserverItem.vserver.isClosedLoopDisabled = false;
vserverItem.vserver.resourceVersion = "1485366417";
vserverItem.items = new AAINQInventoryResponseItems();
- vserverItem.items.inventoryResponseItems = new LinkedList<>();
- vserverItem.items.inventoryResponseItems.add(genericVNFItem);
- vserverItem.items.inventoryResponseItems.add(tenantItem);
+ vserverItem.items.setInventoryResponseItems(new LinkedList<>());
+ vserverItem.items.getInventoryResponseItems().add(genericVNFItem);
+ vserverItem.items.getInventoryResponseItems().add(tenantItem);
AAINQResponse aaiResponse = new AAINQResponse();
- aaiResponse.inventoryResponseItems.add(vserverItem);
+ aaiResponse.getInventoryResponseItems().add(vserverItem);
AAINQResponseWrapper aaiNQResponseWarapper = new AAINQResponseWrapper();
- aaiNQResponseWarapper.aainqresponse = aaiResponse;
- aaiNQResponseWarapper.requestID = UUID.randomUUID();
+ aaiNQResponseWarapper.setAainqresponse(aaiResponse);
+ aaiNQResponseWarapper.setRequestID(UUID.randomUUID());
assertNotNull(aaiNQResponseWarapper);
logger.info(Serialization.gsonPretty.toJson(aaiNQResponseWarapper));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFInstanceTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFInstanceTest.java
index 4dccca852..31243b8d9 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFInstanceTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFInstanceTest.java
@@ -42,9 +42,9 @@ public class PNFInstanceTest {
@Test
public void test() {
PNFInstance pnfInstance = new PNFInstance();
- pnfInstance.PNFInstanceName = "pnf-instance-name-test";
- pnfInstance.PNFName = "pnf-name-test";
- pnfInstance.PNFSerial = "pnf-serial-test";
+ pnfInstance.setPNFInstanceName("pnf-instance-name-test");
+ pnfInstance.setPNFName("pnf-name-test");
+ pnfInstance.setPNFSerial("pnf-serial-test");
assertNotNull(pnfInstance);
logger.info(Serialization.gsonPretty.toJson(pnfInstance));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFTest.java
index e63250f3f..da3593f01 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/PNFTest.java
@@ -42,8 +42,8 @@ public class PNFTest {
@Test
public void test() {
PNF pnf = new PNF();
- pnf.PNFName = "pnf-name-test";
- pnf.PNFType = PNFType.ENODEB;
+ pnf.setPNFName("pnf-name-test");
+ pnf.setPNFType(PNFType.ENODEB);
assertNotNull(pnf);
logger.info(Serialization.gsonPretty.toJson(pnf));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelatedToPropertyTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelatedToPropertyTest.java
index 9ead0cffa..1b0692944 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelatedToPropertyTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelatedToPropertyTest.java
@@ -45,11 +45,11 @@ public class RelatedToPropertyTest {
RelatedToPropertyItem relatedToPropertyItem = new RelatedToPropertyItem();
relatedToPropertyItem.propertyKey = "model.model-name";
relatedToPropertyItem.propertyValue = "service-instance";
- relatedToProperty.relatedTo.add(relatedToPropertyItem);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem);
RelatedToPropertyItem relatedToPropertyItem2 = new RelatedToPropertyItem();
relatedToPropertyItem2.propertyKey = "model.model-name2";
relatedToPropertyItem2.propertyValue = "service-instance2";
- relatedToProperty.relatedTo.add(relatedToPropertyItem2);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem2);
assertNotNull(relatedToProperty);
logger.info(Serialization.gsonPretty.toJson(relatedToProperty));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipDataTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipDataTest.java
index 4a3d947c0..5498caeac 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipDataTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipDataTest.java
@@ -46,11 +46,11 @@ public class RelationshipDataTest {
relationshipDataItem.relationshipKey = "relationship-key";
relationshipDataItem.relationshipValue = "relationship-value";
assertNotNull(relationshipDataItem);
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
RelationshipDataItem relationshipDataItem2 = new RelationshipDataItem();
relationshipDataItem2.relationshipKey = "relationship-key2";
relationshipDataItem2.relationshipValue = "relationship-value2";
- relationshipData.relationshipData.add(relationshipDataItem2);
+ relationshipData.getRelationshipData().add(relationshipDataItem2);
assertNotNull(relationshipData);
logger.info(Serialization.gsonPretty.toJson(relationshipData));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipItemTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipItemTest.java
index 2102ebe04..4313e0605 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipItemTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipItemTest.java
@@ -45,7 +45,7 @@ public class RelationshipItemTest {
RelatedToPropertyItem relatedToPropertyItem = new RelatedToPropertyItem();
relatedToPropertyItem.propertyKey = "model.model-name";
relatedToPropertyItem.propertyValue = "service-instance";
- relationshipItem.relatedToProperty.add(relatedToPropertyItem);
+ relationshipItem.getRelatedToProperty().add(relatedToPropertyItem);
assertNotNull(relationshipItem);
logger.info(Serialization.gsonPretty.toJson(relationshipItem));
}
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipListTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipListTest.java
index 3eccb0bdb..3d06b0e6b 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipListTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipListTest.java
@@ -49,19 +49,19 @@ public class RelationshipListTest {
RelatedToPropertyItem relatedToPropertyItem = new RelatedToPropertyItem();
relatedToPropertyItem.propertyKey = "model.model-name";
relatedToPropertyItem.propertyValue = "service-instance";
- relatedToProperty.relatedTo.add(relatedToPropertyItem);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem);
RelatedToPropertyItem relatedToPropertyItem2 = new RelatedToPropertyItem();
relatedToPropertyItem2.propertyKey = "model.model-name2";
relatedToPropertyItem2.propertyValue = "service-instance2";
- relatedToProperty.relatedTo.add(relatedToPropertyItem2);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem2);
relationship.relatedToProperty = relatedToProperty;
RelationshipDataItem relationshipDataItem = new RelationshipDataItem();
relationshipDataItem.relationshipKey = "relationship-key";
relationshipDataItem.relationshipValue = "relationship-value";
RelationshipData relationshipData = new RelationshipData();
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationship.relationshipData = relationshipData;
- relationshipList.relationshipList.add(relationship);
+ relationshipList.getRelationshipList().add(relationship);
assertNotNull(relationshipList);
logger.info(Serialization.gsonPretty.toJson(relationshipList));
diff --git a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipTest.java b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipTest.java
index 76d3f306b..ec55069ca 100644
--- a/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipTest.java
+++ b/controlloop/common/model-impl/aai/src/test/java/org/onap/policy/aai/RelationshipTest.java
@@ -48,17 +48,17 @@ public class RelationshipTest {
RelatedToPropertyItem relatedToPropertyItem = new RelatedToPropertyItem();
relatedToPropertyItem.propertyKey = "model.model-name";
relatedToPropertyItem.propertyValue = "service-instance";
- relatedToProperty.relatedTo.add(relatedToPropertyItem);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem);
RelatedToPropertyItem relatedToPropertyItem2 = new RelatedToPropertyItem();
relatedToPropertyItem2.propertyKey = "model.model-name2";
relatedToPropertyItem2.propertyValue = "service-instance2";
- relatedToProperty.relatedTo.add(relatedToPropertyItem2);
+ relatedToProperty.getRelatedTo().add(relatedToPropertyItem2);
relationship.relatedToProperty = relatedToProperty;
RelationshipDataItem relationshipDataItem = new RelationshipDataItem();
relationshipDataItem.relationshipKey = "relationship-key";
relationshipDataItem.relationshipValue = "relationship-value";
RelationshipData relationshipData = new RelationshipData();
- relationshipData.relationshipData.add(relationshipDataItem);
+ relationshipData.getRelationshipData().add(relationshipDataItem);
relationship.relationshipData = relationshipData;
assertNotNull(relationship);
logger.info(Serialization.gsonPretty.toJson(relationship));