Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / java / org / openecomp / policy / 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.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         
44         //SecurityTypeId
45     public String getServiceTypeId() {
46         return serviceTypeId;
47     }
48     
49     public void setServiceTypeId(String serviceTypeId) {
50         this.serviceTypeId = serviceTypeId;
51     }
52     
53     //ConfigName
54     public String getConfigName() {
55         return configName;
56     }
57     
58     public void setConfigName(String configName) {
59         this.configName = configName;
60     }
61     
62     //DeploymentControl
63     public DeployNowJson getDeploymentOption() {
64         return deploymentOption;
65     }
66     
67     public void setDeploymentOption(DeployNowJson deploymentOption) {
68         this.deploymentOption = deploymentOption;
69     }
70     
71     //SecurityZoneId
72     public String getSecurityZoneId() {
73         return securityZoneId;
74     }
75     public void setSecurityZoneId(String securityZoneId) {
76         this.securityZoneId = securityZoneId;
77     }
78     
79
80     //ServiceGroup
81     public Set<Object> getServiceGroups() {
82         if(serviceGroups==null)
83         {
84                 serviceGroups= new HashSet<Object>();
85         }
86         return this.serviceGroups;
87     }
88     
89     public void setServiceGroups(Set<Object> servListArray) {
90                 this.serviceGroups = servListArray;
91         }
92
93     //AddressGroup
94     public Set<Object> getAddressGroups() {
95         if(addressGroups==null)
96         {
97                 addressGroups= new HashSet<Object>();
98         }
99         return this.addressGroups;
100     }
101
102     public void setAddressGroups(Set<Object> addressGroups) {
103         this.addressGroups = addressGroups;
104     }
105     
106     //FirewallRuleList
107     public List<Term> getFirewallRuleList() {
108         
109         if(firewallRuleList==null)
110         {
111                 firewallRuleList= new ArrayList<Term>();
112         }
113         return this.firewallRuleList;
114     }
115
116     public void setFirewallRuleList(List<Term> firewallRuleList) {
117         this.firewallRuleList = firewallRuleList;
118     }
119     
120     
121     //primaryParentZoneId
122     public String getPrimaryParentZoneId() {
123                 return primaryParentZoneId;
124         }
125
126         public void setPrimaryParentZoneId(String primaryParentZoneId) {
127                 this.primaryParentZoneId = primaryParentZoneId;
128         }
129
130         
131
132 }