Fix for Penetration test _ Session and cookie management
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / aaiTree / ServiceInstance.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.model.aaiTree;
22
23 import java.util.HashMap;
24 import java.util.Map;
25 import org.onap.vid.mso.model.ModelInfo;
26
27 public class ServiceInstance extends AbstractNode implements ExistingElementsCounterMaps {
28
29     private String globalSubscriberId;
30     private String subscriptionServiceType;
31
32     private String owningEntityId;
33
34     private String owningEntityName;
35     private String tenantName;
36     private String aicZoneId;
37     private String aicZoneName;
38     private String projectName;
39
40     private String rollbackOnFailure;
41     private boolean isALaCarte;
42
43     private Map<String, Vnf> vnfs = new HashMap<>();
44     private Map<String, Pnf> pnfs = new HashMap<>();
45     private Map<String, Network> networks = new HashMap<>();
46     private Map<String, Vrf> vrfs = new HashMap<>();
47
48
49     private Map<String, VnfGroup> vnfGroups = new HashMap<>();
50     private Map<String, CollectionResource> collectionResources = new HashMap<>();
51
52     private int validationCounter;
53     private Map<String, Long> existingVNFCounterMap;
54     private Map<String, Long> existingPNFCounterMap;
55     private Map<String, Long> existingNetworksCounterMap;
56     private Map<String, Long> existingVnfGroupCounterMap;
57     private Map<String, Long> existingVRFCounterMap;
58
59     public void setInstanceName(String instanceName) {
60         this.instanceName = instanceName;
61     }
62
63     public void setInstanceId(String instanceId) {
64         this.instanceId = instanceId;
65     }
66
67     public void setOrchStatus(String orchStatus) {
68         this.orchStatus = orchStatus;
69     }
70
71     public String getGlobalSubscriberId() {
72         return globalSubscriberId;
73     }
74
75     public void setGlobalSubscriberId(String globalSubscriberId) {
76         this.globalSubscriberId = globalSubscriberId;
77     }
78
79     public String getSubscriptionServiceType() {
80         return subscriptionServiceType;
81     }
82
83     public void setSubscriptionServiceType(String subscriptionServiceType) {
84         this.subscriptionServiceType = subscriptionServiceType;
85     }
86
87     public String getOwningEntityId() {
88         return owningEntityId;
89     }
90
91     public void setOwningEntityId(String owningEntityId) {
92         this.owningEntityId = owningEntityId;
93     }
94
95     public String getOwningEntityName() {
96         return owningEntityName;
97     }
98
99     public void setOwningEntityName(String owningEntityName) {
100         this.owningEntityName = owningEntityName;
101     }
102
103     public void setProductFamilyId(String productFamilyId) {
104         this.productFamilyId = productFamilyId;
105     }
106
107     public void setLcpCloudRegionId(String lcpCloudRegionId) {
108         this.lcpCloudRegionId = lcpCloudRegionId;
109     }
110
111     public void setTenantId(String tenantId) {
112         this.tenantId = tenantId;
113     }
114
115     public String getTenantName() {
116         return tenantName;
117     }
118
119     public void setTenantName(String tenantName) {
120         this.tenantName = tenantName;
121     }
122
123     public String getAicZoneId() {
124         return aicZoneId;
125     }
126
127     public void setAicZoneId(String aicZoneId) {
128         this.aicZoneId = aicZoneId;
129     }
130
131     public String getAicZoneName() {
132         return aicZoneName;
133     }
134
135     public void setAicZoneName(String aicZoneName) {
136         this.aicZoneName = aicZoneName;
137     }
138
139     public String getProjectName() {
140         return projectName;
141     }
142
143     public void setProjectName(String projectName) {
144         this.projectName = projectName;
145     }
146
147     public String getRollbackOnFailure() {
148         return rollbackOnFailure;
149     }
150
151     public void setRollbackOnFailure(String rollbackOnFailure) {
152         this.rollbackOnFailure = rollbackOnFailure;
153     }
154
155     public boolean getIsALaCarte() {
156         return isALaCarte;
157     }
158
159     public void setIsALaCarte(boolean isALaCarte) {
160         this.isALaCarte = isALaCarte;
161     }
162
163     public void setModelInfo(ModelInfo modelInfo) {
164         this.modelInfo = modelInfo;
165     }
166
167     public Map<String, Vnf> getVnfs() {
168         return vnfs;
169     }
170
171     public void setVnfs(Map<String, Vnf> vnfs) {
172         this.vnfs = vnfs;
173     }
174
175     public Map<String, Pnf> getPnfs() {
176         return pnfs;
177     }
178
179     public void setPnfs(Map<String, Pnf> pnfs) {
180         this.pnfs = pnfs;
181     }
182
183     public Map<String, Network> getNetworks() {
184         return networks;
185     }
186
187     public void setNetworks(Map<String, Network> networks) {
188         this.networks = networks;
189     }
190
191     public Map<String, CollectionResource> getCollectionResources() {
192         return collectionResources;
193     }
194
195     public void setCollectionResources(Map<String, CollectionResource> collectionResources) {
196         this.collectionResources = collectionResources;
197     }
198
199     public Map<String, VnfGroup> getVnfGroups() { return vnfGroups; }
200
201     public void setVnfGroups(Map<String, VnfGroup> vnfGroups) { this.vnfGroups = vnfGroups; }
202
203     public int getValidationCounter() {
204         return validationCounter;
205     }
206
207     public void setValidationCounter(int validationCounter) {
208         this.validationCounter = validationCounter;
209     }
210
211     @Override
212     public Map<String, Long> getExistingVNFCounterMap() {
213         return existingVNFCounterMap;
214     }
215
216     public void setExistingVNFCounterMap(Map<String, Long> existingVNFCounterMap) {
217         this.existingVNFCounterMap = existingVNFCounterMap;
218     }
219
220     @Override
221     public Map<String, Long> getExistingPNFCounterMap() {
222         return existingPNFCounterMap;
223     }
224
225     public void setExistingPNFCounterMap(Map<String, Long> existingPNFCounterMap) {
226         this.existingPNFCounterMap = existingPNFCounterMap;
227     }
228
229     @Override
230     public Map<String, Long> getExistingNetworksCounterMap() {
231         return existingNetworksCounterMap;
232     }
233
234     public void setExistingNetworksCounterMap(Map<String, Long> existingNetworksCounterMap) {
235         this.existingNetworksCounterMap = existingNetworksCounterMap;
236     }
237
238     @Override
239     public Map<String, Long> getExistingVnfGroupCounterMap() {
240         return existingVnfGroupCounterMap;
241     }
242
243     public void setExistingVnfGroupCounterMap(Map<String, Long> existingVnfGroupCounterMap) {
244         this.existingVnfGroupCounterMap = existingVnfGroupCounterMap;
245     }
246
247     public Map<String, Vrf> getVrfs() {
248         return vrfs;
249     }
250
251     public void setVrfs(Map<String, Vrf> vrfs) {
252         this.vrfs = vrfs;
253     }
254
255     @Override
256     public Map<String, Long> getExistingVRFCounterMap() {
257         return existingVRFCounterMap;
258     }
259
260     public void setExistingVRFCounterMap(Map<String, Long> existingVRFCounterMap) {
261         this.existingVRFCounterMap = existingVRFCounterMap;
262     }
263 }