Fixed the Sonar technical debt.
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / adapter / TermCollector.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 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.policy.rest.adapter;
22
23
24
25 import java.util.ArrayList;
26 import java.util.HashSet;
27 import java.util.List;
28 import java.util.Set;
29
30
31 public class TermCollector {
32         private String serviceTypeId;
33         private String configName;
34         private DeployNowJson deploymentOption;
35         private String securityZoneId;
36         private String vendorServiceId;
37         private VendorSpecificData vendorSpecificData= new VendorSpecificData();
38
39         protected Set<Object> serviceGroups;
40         protected Set<Object> addressGroups;
41         protected List<Term> firewallRuleList;
42
43         protected List<Tags> ruleToTag;
44
45         public List<Tags> getRuleToTag() {
46                 return ruleToTag;
47         }
48
49         public void setRuleToTag(List<Tags> ruleToTag) {
50                 this.ruleToTag = ruleToTag;
51         }
52
53         //SecurityTypeId
54         public String getServiceTypeId() {
55                 return serviceTypeId;
56         }
57
58         public void setServiceTypeId(String serviceTypeId) {
59                 this.serviceTypeId = serviceTypeId;
60         }
61
62         //ConfigName
63         public String getConfigName() {
64                 return configName;
65         }
66
67         public void setConfigName(String configName) {
68                 this.configName = configName;
69         }
70
71         //DeploymentControl
72         public DeployNowJson getDeploymentOption() {
73                 return deploymentOption;
74         }
75
76         public void setDeploymentOption(DeployNowJson deploymentOption) {
77                 this.deploymentOption = deploymentOption;
78         }
79
80         //SecurityZoneId
81         public String getSecurityZoneId() {
82                 return securityZoneId;
83         }
84         public void setSecurityZoneId(String securityZoneId) {
85                 this.securityZoneId = securityZoneId;
86         }
87
88
89         //ServiceGroup
90         public Set<Object> getServiceGroups() {
91                 if(serviceGroups==null)
92                 {
93                         serviceGroups= new HashSet<>();
94                 }
95                 return this.serviceGroups;
96         }
97
98         public void setServiceGroups(Set<Object> servListArray) {
99                 this.serviceGroups = servListArray;
100         }
101
102         //AddressGroup
103         public Set<Object> getAddressGroups() {
104                 if(addressGroups==null)
105                 {
106                         addressGroups= new HashSet<>();
107                 }
108                 return this.addressGroups;
109         }
110
111         public void setAddressGroups(Set<Object> addressGroups) {
112                 this.addressGroups = addressGroups;
113         }
114
115         //FirewallRuleList
116         public List<Term> getFirewallRuleList() {
117
118                 if(firewallRuleList==null)
119                 {
120                         firewallRuleList= new ArrayList<>();
121                 }
122                 return this.firewallRuleList;
123         }
124
125         public void setFirewallRuleList(List<Term> firewallRuleList) {
126                 this.firewallRuleList = firewallRuleList;
127         }
128
129         //vendorServiceId
130         public String getVendorServiceId() {
131                 return vendorServiceId;
132         }
133
134         public void setVendorServiceId(String vendorServiceId) {
135                 this.vendorServiceId = vendorServiceId;
136         }
137
138         public VendorSpecificData getVendorSpecificData() {
139                 return vendorSpecificData;
140         }
141
142         public void setVendorSpecificData(VendorSpecificData vendorSpecificData) {
143                 this.vendorSpecificData = vendorSpecificData;
144         }
145 }