blob: 6f0a4a05b95b15a7cba40497f10b10f5b92c3354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
package org.onap.vid.model.aaiTree;
import org.onap.vid.aai.util.AAITreeConverter;
import org.onap.vid.mso.model.ModelInfo;
public class Node extends AbstractNode {
private String instanceType;
private String provStatus;
private Boolean inMaint;
private String uuid;
private String originalName;
private String legacyRegion;
private String lineOfBusiness;
private String platformName;
private final String trackById;
public Node(AAITreeNode aaiNode, AAITreeConverter.ModelType modelType) {
super();
this.instanceId = aaiNode.getId();
this.instanceName = aaiNode.getName();
this.orchStatus = aaiNode.getOrchestrationStatus();
this.provStatus = aaiNode.getProvStatus();
this.inMaint = aaiNode.getInMaint();
this.uuid = aaiNode.getModelVersionId();
this.originalName = aaiNode.getModelCustomizationName();
this.trackById = aaiNode.getUniqueNodeKey();
ModelInfo nodeModelInfo = new ModelInfo();
nodeModelInfo.setModelType(modelType.name());
nodeModelInfo.setModelName(aaiNode.getModelName());
nodeModelInfo.setModelVersion(aaiNode.getModelVersion());
nodeModelInfo.setModelVersionId(aaiNode.getModelVersionId());
nodeModelInfo.setModelInvariantId(aaiNode.getModelInvariantId());
nodeModelInfo.setModelCustomizationId(aaiNode.getModelCustomizationId());
nodeModelInfo.setModelCustomizationName(aaiNode.getModelCustomizationName());
this.modelInfo = nodeModelInfo;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getInstanceType() {
return instanceType;
}
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
public void setOrchStatus(String orchStatus) {
this.orchStatus = orchStatus;
}
public String getProvStatus() {
return provStatus;
}
public void setProvStatus(String provStatus) {
this.provStatus = provStatus;
}
public Boolean getInMaint() {
return inMaint;
}
public void setInMaint(Boolean inMaint) {
this.inMaint = inMaint;
}
public void setModelInfo(ModelInfo modelInfo) {
this.modelInfo = modelInfo;
}
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public String getOriginalName() {
return originalName;
}
public void setOriginalName(String originalName) {
this.originalName = originalName;
}
public void setProductFamilyId(String productFamilyId) {
this.productFamilyId = productFamilyId;
}
public void setLcpCloudRegionId(String lcpCloudRegionId) {
this.lcpCloudRegionId = lcpCloudRegionId;
}
public String getLegacyRegion() {
return legacyRegion;
}
public void setLegacyRegion(String legacyRegion) {
this.legacyRegion = legacyRegion;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getLineOfBusiness() {
return lineOfBusiness;
}
public void setLineOfBusiness(String lineOfBusiness) {
this.lineOfBusiness = lineOfBusiness;
}
public String getPlatformName() {
return platformName;
}
public void setPlatformName(String platformName) {
this.platformName = platformName;
}
public String getTrackById() {
return trackById;
}
}
|