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=========================================================
20 package org.openecomp.policy.pap.xacml.rest.elk.client;
22 import java.util.ArrayList;
23 import java.util.LinkedHashMap;
24 import java.util.List;
27 import org.openecomp.policy.rest.adapter.PolicyRestAdapter;
29 public class PolicyElasticData {
32 private String policyType;
33 private String configPolicyType;
34 private String policyName;
35 private String policyDescription;
36 private String ecompName;
37 private String configName;
38 private String configType;
39 private String jsonBody;
42 private String policyScope;
43 private String providerComboBox;
44 private String riskType;
45 private String riskLevel;
47 private String ttlDate;
48 private Map<String,String> matching;
50 private ArrayList<Object> triggerSignatures;
51 private ArrayList<Object> symptomSignatures;
52 private String logicalConnector;
53 private String policyStatus;
54 public String gocServerScope;
55 private String supressionType;
58 private String serviceType;
60 private String location;
61 private String priority;
62 private String msLocation;
65 private String ruleName;
66 private Map<String,String> brmsParamBody;
67 private String brmsController;
68 private ArrayList<String> brmsDependency;
69 private LinkedHashMap<?, ?> ruleData;
70 private LinkedHashMap<?,?> ruleListData;
71 private Map<String,String> drlRuleAndUIParams;
74 private String clearTimeOut;
75 private String trapMaxAge;
76 private String verificationclearTimeOut;
77 public Map<String , String> dynamicLayoutMap;
80 private String fwPolicyType;
81 private ArrayList<Object> fwattributes;
82 private String parentForChild;
83 private String securityZone;
86 private String ruleCombiningAlgId;
87 private Map<String,String> dynamicFieldConfigAttributes;
88 private Map<String,String> dynamicSettingsMap;
89 private Map<String,String> dropDownMap;
90 private String actionPerformer;
91 private String actionAttribute;
92 private List<String> dynamicRuleAlgorithmLabels;
93 private List<String> dynamicRuleAlgorithmCombo;
94 private List<String> dynamicRuleAlgorithmField1;
95 private List<String> dynamicRuleAlgorithmField2;
96 private List<Object> dynamicVariableList;
97 private List<String> dataTypeList;
98 private String actionAttributeValue;
99 private String ruleProvider;
100 private String actionBody;
101 private String actionDictHeader;
102 private String actionDictType;
103 private String actionDictUrl;
104 private String actionDictMethod;
106 public PolicyElasticData(PolicyRestAdapter policyData) {
107 this.scope = policyData.getDomain();
108 this.policyType = policyData.getPolicyType();
109 this.configPolicyType = policyData.getConfigPolicyType();
110 this.policyName = policyData.getNewFileName();
111 this.policyDescription = policyData.getPolicyDescription();
112 this.ecompName = policyData.getEcompName();
113 this.configName = policyData.getConfigName();
114 this.configType = policyData.getConfigType();
115 this.jsonBody = policyData.getJsonBody();
118 this.policyScope = policyData.getPolicyScope();
119 this.providerComboBox = policyData.getProviderComboBox();
120 this.riskType = policyData.getRiskType();
121 this.riskLevel = policyData.getRiskLevel();
122 this.guard = policyData.getGuard();
123 this.ttlDate = policyData.getTtlDate();
124 this.matching = policyData.getMatching();
126 this.triggerSignatures = policyData.getTriggerSignatures();
127 this.symptomSignatures = policyData.getSymptomSignatures();
128 this.logicalConnector = policyData.getLogicalConnector();
129 this.policyStatus = policyData.getPolicyStatus();
130 this.gocServerScope = policyData.getGocServerScope();
131 this.supressionType = policyData.getSupressionType();
134 this.serviceType = policyData.getServiceType();
135 this.uuid = policyData.getUuid();
136 this.location = policyData.getLocation();
137 this.priority = policyData.getPriority();
138 this.msLocation = policyData.getMsLocation();
141 this.ruleName = policyData.getRuleName();
142 this.brmsParamBody = policyData.getBrmsParamBody();
143 this.brmsController = policyData.getBrmsController();
144 this.brmsDependency = policyData.getBrmsDependency();
145 this.ruleData = policyData.getRuleData();
146 this.ruleListData = policyData.getRuleListData();
147 this.drlRuleAndUIParams = policyData.getDrlRuleAndUIParams();
150 this.clearTimeOut = policyData.getClearTimeOut();
151 this.trapMaxAge = policyData.getTrapMaxAge();
152 this.verificationclearTimeOut = policyData.getVerificationclearTimeOut();
153 this.dynamicLayoutMap = policyData.getDynamicLayoutMap();
156 this.fwPolicyType = policyData.getFwPolicyType();
157 this.fwattributes = policyData.getFwattributes();
158 this.parentForChild = policyData.getParentForChild();
159 this.securityZone = policyData.getSecurityZone();
162 this.ruleCombiningAlgId = policyData.getRuleCombiningAlgId();
163 this.dynamicFieldConfigAttributes = policyData.getDynamicFieldConfigAttributes();
164 this.dynamicSettingsMap = policyData.getDynamicSettingsMap();
165 this.dropDownMap = policyData.getDropDownMap();
166 this.actionPerformer = policyData.getActionPerformer();
167 this.actionAttribute = policyData.getActionAttribute();
168 this.dynamicRuleAlgorithmLabels = policyData.getDynamicRuleAlgorithmLabels();
169 this.dynamicRuleAlgorithmCombo = policyData.getDynamicRuleAlgorithmCombo();
170 this.dynamicRuleAlgorithmField1 = policyData.getDynamicRuleAlgorithmField1();
171 this.dynamicRuleAlgorithmField2 = policyData.getDynamicRuleAlgorithmField2();
172 this.dynamicVariableList = policyData.getDynamicVariableList();
173 this.dataTypeList = policyData.getDataTypeList();
174 this.actionAttributeValue = policyData.getActionAttributeValue();
175 this.ruleProvider = policyData.getRuleProvider();
176 this.actionBody = policyData.getActionBody();
177 this.actionDictHeader = policyData.getActionDictHeader();
178 this.actionDictType = policyData.getActionDictType();
179 this.actionDictUrl = policyData.getActionDictUrl();
180 this.actionDictMethod = policyData.getActionDictMethod();
183 public String getScope() {
186 public void setScope(String scope) {
189 public String getPolicyType() {
192 public void setPolicyType(String policyType) {
193 this.policyType = policyType;
195 public String getConfigPolicyType() {
196 return configPolicyType;
198 public void setConfigPolicyType(String configPolicyType) {
199 this.configPolicyType = configPolicyType;
201 public String getPolicyName() {
204 public void setPolicyName(String policyName) {
205 this.policyName = policyName;
207 public String getPolicyDescription() {
208 return policyDescription;
210 public void setPolicyDescription(String policyDescription) {
211 this.policyDescription = policyDescription;
213 public String getEcompName() {
216 public void setEcompName(String ecompName) {
217 this.ecompName = ecompName;
219 public String getConfigName() {
222 public void setConfigName(String configName) {
223 this.configName = configName;
225 public String getConfigType() {
228 public void setConfigType(String configType) {
229 this.configType = configType;
231 public String getJsonBody() {
234 public void setJsonBody(String jsonBody) {
235 this.jsonBody = jsonBody;
237 public String getPolicyScope() {
240 public void setPolicyScope(String policyScope) {
241 this.policyScope = policyScope;
243 public String getProviderComboBox() {
244 return providerComboBox;
246 public void setProviderComboBox(String providerComboBox) {
247 this.providerComboBox = providerComboBox;
249 public String getRiskType() {
252 public void setRiskType(String riskType) {
253 this.riskType = riskType;
255 public String getRiskLevel() {
258 public void setRiskLevel(String riskLevel) {
259 this.riskLevel = riskLevel;
261 public String getGuard() {
264 public void setGuard(String guard) {
267 public String getTtlDate() {
270 public void setTtlDate(String ttlDate) {
271 this.ttlDate = ttlDate;
273 public Map<String, String> getMatching() {
276 public void setMatching(Map<String, String> matching) {
277 this.matching = matching;
279 public ArrayList<Object> getTriggerSignatures() {
280 return triggerSignatures;
282 public void setTriggerSignatures(ArrayList<Object> triggerSignatures) {
283 this.triggerSignatures = triggerSignatures;
285 public ArrayList<Object> getSymptomSignatures() {
286 return symptomSignatures;
288 public void setSymptomSignatures(ArrayList<Object> symptomSignatures) {
289 this.symptomSignatures = symptomSignatures;
291 public String getLogicalConnector() {
292 return logicalConnector;
294 public void setLogicalConnector(String logicalConnector) {
295 this.logicalConnector = logicalConnector;
297 public String getPolicyStatus() {
300 public void setPolicyStatus(String policyStatus) {
301 this.policyStatus = policyStatus;
303 public String getGocServerScope() {
304 return gocServerScope;
306 public void setGocServerScope(String gocServerScope) {
307 this.gocServerScope = gocServerScope;
309 public String getSupressionType() {
310 return supressionType;
312 public void setSupressionType(String supressionType) {
313 this.supressionType = supressionType;
315 public String getServiceType() {
318 public void setServiceType(String serviceType) {
319 this.serviceType = serviceType;
321 public String getUuid() {
324 public void setUuid(String uuid) {
327 public String getLocation() {
330 public void setLocation(String location) {
331 this.location = location;
333 public String getPriority() {
336 public void setPriority(String priority) {
337 this.priority = priority;
339 public String getMsLocation() {
342 public void setMsLocation(String msLocation) {
343 this.msLocation = msLocation;
345 public String getRuleName() {
348 public void setRuleName(String ruleName) {
349 this.ruleName = ruleName;
351 public Map<String, String> getBrmsParamBody() {
352 return brmsParamBody;
354 public void setBrmsParamBody(Map<String, String> brmsParamBody) {
355 this.brmsParamBody = brmsParamBody;
357 public String getBrmsController() {
358 return brmsController;
360 public void setBrmsController(String brmsController) {
361 this.brmsController = brmsController;
363 public ArrayList<String> getBrmsDependency() {
364 return brmsDependency;
366 public void setBrmsDependency(ArrayList<String> brmsDependency) {
367 this.brmsDependency = brmsDependency;
369 public LinkedHashMap<?, ?> getRuleData() {
372 public void setRuleData(LinkedHashMap<?, ?> ruleData) {
373 this.ruleData = ruleData;
375 public LinkedHashMap<?, ?> getRuleListData() {
378 public void setRuleListData(LinkedHashMap<?, ?> ruleListData) {
379 this.ruleListData = ruleListData;
381 public Map<String, String> getDrlRuleAndUIParams() {
382 return drlRuleAndUIParams;
384 public void setDrlRuleAndUIParams(Map<String, String> drlRuleAndUIParams) {
385 this.drlRuleAndUIParams = drlRuleAndUIParams;
387 public String getClearTimeOut() {
390 public void setClearTimeOut(String clearTimeOut) {
391 this.clearTimeOut = clearTimeOut;
393 public String getTrapMaxAge() {
396 public void setTrapMaxAge(String trapMaxAge) {
397 this.trapMaxAge = trapMaxAge;
399 public String getVerificationclearTimeOut() {
400 return verificationclearTimeOut;
402 public void setVerificationclearTimeOut(String verificationclearTimeOut) {
403 this.verificationclearTimeOut = verificationclearTimeOut;
405 public Map<String, String> getDynamicLayoutMap() {
406 return dynamicLayoutMap;
408 public void setDynamicLayoutMap(Map<String, String> dynamicLayoutMap) {
409 this.dynamicLayoutMap = dynamicLayoutMap;
411 public String getFwPolicyType() {
414 public void setFwPolicyType(String fwPolicyType) {
415 this.fwPolicyType = fwPolicyType;
417 public ArrayList<Object> getFwattributes() {
420 public void setFwattributes(ArrayList<Object> fwattributes) {
421 this.fwattributes = fwattributes;
423 public String getParentForChild() {
424 return parentForChild;
426 public void setParentForChild(String parentForChild) {
427 this.parentForChild = parentForChild;
429 public String getSecurityZone() {
432 public void setSecurityZone(String securityZone) {
433 this.securityZone = securityZone;
435 public String getRuleCombiningAlgId() {
436 return ruleCombiningAlgId;
438 public void setRuleCombiningAlgId(String ruleCombiningAlgId) {
439 this.ruleCombiningAlgId = ruleCombiningAlgId;
441 public Map<String, String> getDynamicFieldConfigAttributes() {
442 return dynamicFieldConfigAttributes;
444 public void setDynamicFieldConfigAttributes(Map<String, String> dynamicFieldConfigAttributes) {
445 this.dynamicFieldConfigAttributes = dynamicFieldConfigAttributes;
447 public Map<String, String> getDynamicSettingsMap() {
448 return dynamicSettingsMap;
450 public void setDynamicSettingsMap(Map<String, String> dynamicSettingsMap) {
451 this.dynamicSettingsMap = dynamicSettingsMap;
453 public Map<String, String> getDropDownMap() {
456 public void setDropDownMap(Map<String, String> dropDownMap) {
457 this.dropDownMap = dropDownMap;
459 public String getActionPerformer() {
460 return actionPerformer;
462 public void setActionPerformer(String actionPerformer) {
463 this.actionPerformer = actionPerformer;
465 public String getActionAttribute() {
466 return actionAttribute;
468 public void setActionAttribute(String actionAttribute) {
469 this.actionAttribute = actionAttribute;
471 public List<String> getDynamicRuleAlgorithmLabels() {
472 return dynamicRuleAlgorithmLabels;
474 public void setDynamicRuleAlgorithmLabels(List<String> dynamicRuleAlgorithmLabels) {
475 this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
477 public List<String> getDynamicRuleAlgorithmCombo() {
478 return dynamicRuleAlgorithmCombo;
480 public void setDynamicRuleAlgorithmCombo(List<String> dynamicRuleAlgorithmCombo) {
481 this.dynamicRuleAlgorithmCombo = dynamicRuleAlgorithmCombo;
483 public List<String> getDynamicRuleAlgorithmField1() {
484 return dynamicRuleAlgorithmField1;
486 public void setDynamicRuleAlgorithmField1(List<String> dynamicRuleAlgorithmField1) {
487 this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
489 public List<String> getDynamicRuleAlgorithmField2() {
490 return dynamicRuleAlgorithmField2;
492 public void setDynamicRuleAlgorithmField2(List<String> dynamicRuleAlgorithmField2) {
493 this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
495 public List<Object> getDynamicVariableList() {
496 return dynamicVariableList;
498 public void setDynamicVariableList(List<Object> dynamicVariableList) {
499 this.dynamicVariableList = dynamicVariableList;
501 public List<String> getDataTypeList() {
504 public void setDataTypeList(List<String> dataTypeList) {
505 this.dataTypeList = dataTypeList;
507 public String getActionAttributeValue() {
508 return actionAttributeValue;
510 public void setActionAttributeValue(String actionAttributeValue) {
511 this.actionAttributeValue = actionAttributeValue;
513 public String getRuleProvider() {
516 public void setRuleProvider(String ruleProvider) {
517 this.ruleProvider = ruleProvider;
519 public String getActionBody() {
522 public void setActionBody(String actionBody) {
523 this.actionBody = actionBody;
525 public String getActionDictHeader() {
526 return actionDictHeader;
528 public void setActionDictHeader(String actionDictHeader) {
529 this.actionDictHeader = actionDictHeader;
531 public String getActionDictType() {
532 return actionDictType;
534 public void setActionDictType(String actionDictType) {
535 this.actionDictType = actionDictType;
537 public String getActionDictUrl() {
538 return actionDictUrl;
540 public void setActionDictUrl(String actionDictUrl) {
541 this.actionDictUrl = actionDictUrl;
543 public String getActionDictMethod() {
544 return actionDictMethod;
546 public void setActionDictMethod(String actionDictMethod) {
547 this.actionDictMethod = actionDictMethod;