26853d36007a945a4d6bd8014ee03f412c25c987
[policy/engine.git] / ECOMP-REST / src / main / java / org / openecomp / policy / rest / adapter / TermCollector.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP 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.openecomp.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         String serviceTypeId;
33         String configName;
34         DeployNowJson deploymentOption;
35         String securityZoneId;
36         
37     protected Set<Object> serviceGroups;
38     protected Set<Object> addressGroups;
39     protected List<Term> firewallRuleList;
40     
41     private String primaryParentZoneId;
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<Object>();
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<Object>();
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<Term>();
121         }
122         return this.firewallRuleList;
123     }
124
125     public void setFirewallRuleList(List<Term> firewallRuleList) {
126         this.firewallRuleList = firewallRuleList;
127     }
128     
129     
130     //primaryParentZoneId
131     public String getPrimaryParentZoneId() {
132                 return primaryParentZoneId;
133         }
134
135         public void setPrimaryParentZoneId(String primaryParentZoneId) {
136                 this.primaryParentZoneId = primaryParentZoneId;
137         }
138
139         
140
141 }