2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.policy.rest.adapter;
25 import java.util.ArrayList;
26 import java.util.HashSet;
27 import java.util.List;
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();
39 protected Set<Object> serviceGroups;
40 protected Set<Object> addressGroups;
41 protected List<Term> firewallRuleList;
43 protected List<Tags> ruleToTag;
45 public List<Tags> getRuleToTag() {
49 public void setRuleToTag(List<Tags> ruleToTag) {
50 this.ruleToTag = ruleToTag;
54 public String getServiceTypeId() {
58 public void setServiceTypeId(String serviceTypeId) {
59 this.serviceTypeId = serviceTypeId;
63 public String getConfigName() {
67 public void setConfigName(String configName) {
68 this.configName = configName;
72 public DeployNowJson getDeploymentOption() {
73 return deploymentOption;
76 public void setDeploymentOption(DeployNowJson deploymentOption) {
77 this.deploymentOption = deploymentOption;
81 public String getSecurityZoneId() {
82 return securityZoneId;
84 public void setSecurityZoneId(String securityZoneId) {
85 this.securityZoneId = securityZoneId;
90 public Set<Object> getServiceGroups() {
91 if(serviceGroups==null)
93 serviceGroups= new HashSet<Object>();
95 return this.serviceGroups;
98 public void setServiceGroups(Set<Object> servListArray) {
99 this.serviceGroups = servListArray;
103 public Set<Object> getAddressGroups() {
104 if(addressGroups==null)
106 addressGroups= new HashSet<Object>();
108 return this.addressGroups;
111 public void setAddressGroups(Set<Object> addressGroups) {
112 this.addressGroups = addressGroups;
116 public List<Term> getFirewallRuleList() {
118 if(firewallRuleList==null)
120 firewallRuleList= new ArrayList<Term>();
122 return this.firewallRuleList;
125 public void setFirewallRuleList(List<Term> firewallRuleList) {
126 this.firewallRuleList = firewallRuleList;
130 public String getVendorServiceId() {
131 return vendorServiceId;
134 public void setVendorServiceId(String vendorServiceId) {
135 this.vendorServiceId = vendorServiceId;
138 public VendorSpecificData getVendorSpecificData() {
139 return vendorSpecificData;
142 public void setVendorSpecificData(VendorSpecificData vendorSpecificData) {
143 this.vendorSpecificData = vendorSpecificData;