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.openecomp.policy.adapter;
25 import java.util.ArrayList;
26 import java.util.HashSet;
27 import java.util.List;
31 public class TermCollector {
34 DeployNowJson deploymentOption;
35 String securityZoneId;
37 protected Set<Object> serviceGroups;
38 protected Set<Object> addressGroups;
39 protected List<Term> firewallRuleList;
41 private String primaryParentZoneId;
45 public String getServiceTypeId() {
49 public void setServiceTypeId(String serviceTypeId) {
50 this.serviceTypeId = serviceTypeId;
54 public String getConfigName() {
58 public void setConfigName(String configName) {
59 this.configName = configName;
63 public DeployNowJson getDeploymentOption() {
64 return deploymentOption;
67 public void setDeploymentOption(DeployNowJson deploymentOption) {
68 this.deploymentOption = deploymentOption;
72 public String getSecurityZoneId() {
73 return securityZoneId;
75 public void setSecurityZoneId(String securityZoneId) {
76 this.securityZoneId = securityZoneId;
81 public Set<Object> getServiceGroups() {
82 if(serviceGroups==null)
84 serviceGroups= new HashSet<Object>();
86 return this.serviceGroups;
89 public void setServiceGroups(Set<Object> servListArray) {
90 this.serviceGroups = servListArray;
94 public Set<Object> getAddressGroups() {
95 if(addressGroups==null)
97 addressGroups= new HashSet<Object>();
99 return this.addressGroups;
102 public void setAddressGroups(Set<Object> addressGroups) {
103 this.addressGroups = addressGroups;
107 public List<Term> getFirewallRuleList() {
109 if(firewallRuleList==null)
111 firewallRuleList= new ArrayList<Term>();
113 return this.firewallRuleList;
116 public void setFirewallRuleList(List<Term> firewallRuleList) {
117 this.firewallRuleList = firewallRuleList;
121 //primaryParentZoneId
122 public String getPrimaryParentZoneId() {
123 return primaryParentZoneId;
126 public void setPrimaryParentZoneId(String primaryParentZoneId) {
127 this.primaryParentZoneId = primaryParentZoneId;