summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZi Li <li.zi30@zte.com.cn>2018-08-20 07:27:43 +0000
committerZi Li <li.zi30@zte.com.cn>2018-08-20 07:27:58 +0000
commit572c36a74c648dd4ccbe44cd8c1184e18dbea751 (patch)
tree90b11beab7ab542a43dd0649695ff09360bdf492
parent16e963509621830d8828054750f9512b535b1948 (diff)
Define attributes about PNF
Issue-ID: AAI-1495 Change-Id: I8a6cc5320447866a4cb232623aaf9cfd432803bf Signed-off-by: Zi Li <li.zi30@zte.com.cn>
-rw-r--r--esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnf.java134
-rw-r--r--esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnfList.java36
-rw-r--r--esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/PnfRegisterInfo.java99
3 files changed, 269 insertions, 0 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnf.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnf.java
new file mode 100644
index 0000000..cb382a9
--- /dev/null
+++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnf.java
@@ -0,0 +1,134 @@
+/**
+ * Copyright 2018 ZTE Corporation.
+ *
+ * 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.
+ */
+package org.onap.aai.esr.entity.aai;
+
+import java.io.Serializable;
+import com.google.gson.annotations.SerializedName;
+
+public class EsrPnf implements Serializable{
+
+ public static final long serialVersionUID = 1L;
+
+ @SerializedName("pnf-name")
+ private String pnfName;
+
+ @SerializedName("pnf-name2")
+ private String pnfName2;
+
+ @SerializedName("pnf-id")
+ private String pnfId;
+
+ @SerializedName("equip-type")
+ private String equipType;
+
+ @SerializedName("equip-vendor")
+ private String equipVendor;
+
+ @SerializedName("equip-model")
+ private String equipModel;
+
+ @SerializedName("management-option")
+ private String managementOption;
+
+ @SerializedName("in-maint")
+ private boolean inMaint = false;
+
+ @SerializedName("frame-id")
+ private String frameId;
+
+ @SerializedName("resource-version")
+ private String resourceVersion;
+
+ public String getPnfName() {
+ return pnfName;
+ }
+
+ public void setPnfName(String pnfName) {
+ this.pnfName = pnfName;
+ }
+
+ public String getPnfName2() {
+ return pnfName2;
+ }
+
+ public void setPnfName2(String pnfName2) {
+ this.pnfName2 = pnfName2;
+ }
+
+ public String getPnfId() {
+ return pnfId;
+ }
+
+ public void setPnfId(String pnfId) {
+ this.pnfId = pnfId;
+ }
+
+ public String getEquipType() {
+ return equipType;
+ }
+
+ public void setEquipType(String equipType) {
+ this.equipType = equipType;
+ }
+
+ public String getEquipVendor() {
+ return equipVendor;
+ }
+
+ public void setEquipVendor(String equipVendor) {
+ this.equipVendor = equipVendor;
+ }
+
+ public String getEquipModel() {
+ return equipModel;
+ }
+
+ public void setEquipModel(String equipModel) {
+ this.equipModel = equipModel;
+ }
+
+ public String getManagementOption() {
+ return managementOption;
+ }
+
+ public void setManagementOption(String managementOption) {
+ this.managementOption = managementOption;
+ }
+
+ public boolean isInMaint() {
+ return inMaint;
+ }
+
+ public void setInMaint(boolean inMaint) {
+ this.inMaint = inMaint;
+ }
+
+ public String getFrameId() {
+ return frameId;
+ }
+
+ public void setFrameId(String frameId) {
+ this.frameId = frameId;
+ }
+
+ public String getResourceVersion() {
+ return resourceVersion;
+ }
+
+ public void setResourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ }
+}
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnfList.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnfList.java
new file mode 100644
index 0000000..9af8e9e
--- /dev/null
+++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/aai/EsrPnfList.java
@@ -0,0 +1,36 @@
+/**
+ * Copyright 2018 ZTE Corporation.
+ *
+ * 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.
+ */
+package org.onap.aai.esr.entity.aai;
+
+import java.io.Serializable;
+import java.util.List;
+import com.google.gson.annotations.SerializedName;
+
+public class EsrPnfList implements Serializable{
+
+ public static final long serialVersionUID = 1L;
+
+ @SerializedName("pnf")
+ private List<EsrPnf> pnf;
+
+ public List<EsrPnf> getPnf() {
+ return pnf;
+ }
+
+ public void setPnf(List<EsrPnf> pnf) {
+ this.pnf = pnf;
+ }
+}
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/PnfRegisterInfo.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/PnfRegisterInfo.java
index 242cb11..84ecdd1 100644
--- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/PnfRegisterInfo.java
+++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/PnfRegisterInfo.java
@@ -17,4 +17,103 @@ package org.onap.aai.esr.entity.rest;
public class PnfRegisterInfo {
+ private String pnfId;
+
+ private String userLabel;
+
+ private String subnetId;
+
+ private String neId;
+
+ private String managementType;
+
+ private String vendor;
+
+ private String pnfdId;
+
+ private String emsId;
+
+ private String lattitude;
+
+ private String longitude;
+
+ public String getPnfId() {
+ return pnfId;
+ }
+
+ public void setPnfId(String pnfId) {
+ this.pnfId = pnfId;
+ }
+
+ public String getUserLabel() {
+ return userLabel;
+ }
+
+ public void setUserLabel(String userLabel) {
+ this.userLabel = userLabel;
+ }
+
+ public String getSubnetId() {
+ return subnetId;
+ }
+
+ public void setSubnetId(String subnetId) {
+ this.subnetId = subnetId;
+ }
+
+ public String getNeId() {
+ return neId;
+ }
+
+ public void setNeId(String neId) {
+ this.neId = neId;
+ }
+
+ public String getManagementType() {
+ return managementType;
+ }
+
+ public void setManagementType(String managementType) {
+ this.managementType = managementType;
+ }
+
+ public String getVendor() {
+ return vendor;
+ }
+
+ public void setVendor(String vendor) {
+ this.vendor = vendor;
+ }
+
+ public String getPnfdId() {
+ return pnfdId;
+ }
+
+ public void setPnfdId(String pnfdId) {
+ this.pnfdId = pnfdId;
+ }
+
+ public String getEmsId() {
+ return emsId;
+ }
+
+ public void setEmsId(String emsId) {
+ this.emsId = emsId;
+ }
+
+ public String getLattitude() {
+ return lattitude;
+ }
+
+ public void setLattitude(String lattitude) {
+ this.lattitude = lattitude;
+ }
+
+ public String getLongitude() {
+ return longitude;
+ }
+
+ public void setLongitude(String longitude) {
+ this.longitude = longitude;
+ }
}