aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model')
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdQuery.java45
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResource.java5
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResources.java4
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResourcesList.java45
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NetworkDiscoveryRspInfo.java93
5 files changed, 7 insertions, 185 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdQuery.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdQuery.java
deleted file mode 100644
index f40af2b..0000000
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdQuery.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * ============LICENSE_START===================================================
- * Copyright (c) 2018 Amdocs
- * ============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=====================================================
- */
-
-package org.onap.pomba.contextbuilder.networkdiscovery.model;
-
-import com.google.gson.annotations.Expose;
-import com.google.gson.annotations.SerializedName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-
-@ApiModel(value="NdQuery")
-public class NdQuery {
-
- @Expose
- @SerializedName("ndQuery")
- private List<NdResourcesList> ndQuery = new ArrayList<>();
-
- @ApiModelProperty(value = "List of NdResource associated with the service instance")
- public List<NdResourcesList> getNdQuery() {
- return ndQuery;
- }
- public void setNdQuery(List<NdResourcesList> ndQuery) {
- this.ndQuery = ndQuery;
- }
- public void addNdQuery(NdResourcesList ndResourcesList) {
- this.ndQuery.add(ndResourcesList);
- }
-}
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResource.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResource.java
index a4575b6..9f79849 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResource.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResource.java
@@ -23,7 +23,7 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
-@ApiModel(value="NdResource")
+@ApiModel(value = "NdResource")
public class NdResource {
@Expose
@@ -37,13 +37,16 @@ public class NdResource {
public String getResourceId() {
return resourceId;
}
+
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
+
@ApiModelProperty(value = "Type of Resource for Network Discovery")
public String getResourceType() {
return resourceType;
}
+
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResources.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResources.java
index a1592fc..54e627d 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResources.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResources.java
@@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
-@ApiModel(value="NdResources")
+@ApiModel(value = "NdResources")
public class NdResources {
@Expose
@@ -36,9 +36,11 @@ public class NdResources {
public List<NdResource> getNdResources() {
return ndResources;
}
+
public void setNdResources(List<NdResource> ndResources) {
this.ndResources = ndResources;
}
+
public void addNdResource(NdResource ndResource) {
this.ndResources.add(ndResource);
}
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResourcesList.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResourcesList.java
deleted file mode 100644
index c7e397f..0000000
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NdResourcesList.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * ============LICENSE_START===================================================
- * Copyright (c) 2018 Amdocs
- * ============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=====================================================
- */
-
-package org.onap.pomba.contextbuilder.networkdiscovery.model;
-
-import com.google.gson.annotations.Expose;
-import com.google.gson.annotations.SerializedName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.ArrayList;
-import java.util.List;
-
-@ApiModel(value="NdResourcesList")
-public class NdResourcesList {
-
- @Expose
- @SerializedName("ndResourcesList")
- private List<NdResources> ndResourcesList = new ArrayList<>();
-
- @ApiModelProperty(value = "List of NdResources associated with the service instance")
- public List<NdResources> getNdResources() {
- return ndResourcesList;
- }
- public void setNdResources(List<NdResources> ndResourcesList) {
- this.ndResourcesList = ndResourcesList;
- }
- public void addNdResource(NdResources ndResources) {
- this.ndResourcesList.add(ndResources);
- }
-}
diff --git a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NetworkDiscoveryRspInfo.java b/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NetworkDiscoveryRspInfo.java
deleted file mode 100644
index b371631..0000000
--- a/src/main/java/org/onap/pomba/contextbuilder/networkdiscovery/model/NetworkDiscoveryRspInfo.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * ============LICENSE_START===================================================
- * Copyright (c) 2018 Amdocs
- * ============================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=====================================================
- */
-package org.onap.pomba.contextbuilder.networkdiscovery.model;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.concurrent.CountDownLatch;
-
-import org.onap.sdnc.apps.pomba.networkdiscovery.datamodel.NetworkDiscoveryNotification;
-
-public class NetworkDiscoveryRspInfo {
-
- private String requestId;
- private String resourceId; // e.g.:
- // vserverId
- private String resourceType; // e.g.:
- // vserver
- private CountDownLatch latchSignal;
-
- private List<NetworkDiscoveryNotification> networkDiscoveryNotificationList = Collections
- .synchronizedList(new ArrayList<>());
- private List<String> relatedRequestIdList;
-
- public String getRequestId() {
- return requestId;
- }
-
- public void setRequestId(String requestId) {
- this.requestId = requestId;
- }
-
- public String getResourceType() {
- return resourceType;
- }
-
- public void setResourceType(String resourceType) {
- this.resourceType = resourceType;
- }
-
- public String getResourceId() {
- return resourceId;
- }
-
- public void setResourceId(String resourceId) {
- this.resourceId = resourceId;
- }
-
- public CountDownLatch getLatchSignal() {
- return latchSignal;
- }
-
- public void setLatchSignal(CountDownLatch latchSignal) {
- this.latchSignal = latchSignal;
- }
-
- public List<NetworkDiscoveryNotification> getNetworkDiscoveryNotificationList() {
- return this.networkDiscoveryNotificationList;
- }
-
- public void setNetworkDiscoveryNotificationList(List<NetworkDiscoveryNotification> response) {
- this.networkDiscoveryNotificationList = response;
- }
-
- public List<String> getRelatedRequestIdList() {
- return this.relatedRequestIdList;
- }
-
- public void setRelatedRequestIdList(List<String> response) {
- this.relatedRequestIdList = response;
- }
-
- @Override
- public String toString() {
- return "networkDiscoveryRspInfo [requestId=" + this.requestId + ", resourceId=" + this.resourceId
- + ", resourceType=" + this.resourceType + "]";
- }
-}