Merge "Modify std pap policy to use builder in constr"
[policy/engine.git] / ONAP-XACML / src / main / java / org / onap / policy / xacml / std / pap / StdPAPPolicy.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-XACML
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Modified Copyright (C) 2018 Samsung Electronics Co., Ltd.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.policy.xacml.std.pap;
22
23 import java.io.Serializable;
24 import java.net.URI;
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 import org.onap.policy.xacml.api.pap.OnapPAPPolicy;
30
31 public class StdPAPPolicy implements OnapPAPPolicy, Serializable {
32     private static final long serialVersionUID = 5260230629397322000L;
33
34     private String policyName = null;
35     private String oldPolicyFileName = null;
36     private String policyDescription = null;
37     private String onapName = null;
38     private String configName = null;
39     private Map<String, String> dyanamicFieldConfigAttributes = new HashMap<>();
40     private Map<String, String> treatments = new HashMap<>();
41     private Map<String, String> dropDownMap = new HashMap<>();
42     private Map<String, String> dynamicSettingsMap = new HashMap<>();
43     private List<String> dynamicRuleAlgorithmLabels;
44     private List<String> dynamicRuleAlgorithmCombo;
45     private List<String> dynamicRuleAlgorithmField1;
46     private List<String> dynamicRuleAlgorithmField2;
47     private transient List<Object> dynamicVariableList;
48     private List<String> dataTypeList;
49     private String configBodyData = null;
50     private String policyID = null;
51     private String ruleID = null;
52     private String brmsController;
53     private List<String> brmsDependency;
54     private String configType = null;
55     private Boolean editPolicy = false;
56     private Boolean draft = false;
57     private String version = null;
58     private String domain = null;
59     private String configPolicyType = null;
60     private String jsonBody = null;
61     private String serviceType = null;
62     private Integer highestVersion = null;
63     private URI location = null;
64     private String actionPerformer = null;
65     private String actionAttribute = null;
66     private String actionBody = null;
67     private String actionDictHeader = null;
68     private String actionDictType = null;
69     private String actionDictUrl = null;
70     private String actionDictMethod = null;
71     private String uuid = null;
72     private String msLocation = null;
73     private String priority = null;
74     private transient Map<String, String> drlRuleAndUIParams = null;
75     private String deleteCondition = null;
76     private String dictionaryType = null;
77     private String dictionary = null;
78     private String dictionaryFields = null;
79     private String providerComboBox = null;
80     private String riskType = null;
81     private String guard = null;
82     private String riskLevel;
83     private String ttlDate = null;
84
85
86     public StdPAPPolicy() {
87         //
88         // Default empty constructor
89         //
90     }
91
92     //Constructor for sending location when pushing policies
93     public StdPAPPolicy(URI location) {
94         this.location = location;
95     }
96
97     //Constructor for Validating Config Policies
98     public StdPAPPolicy(String policyName, String body, String configType, String configPolicyType) {
99         this.policyName = policyName;
100         this.configBodyData = body;
101         this.configType = configType;
102         this.configPolicyType = configPolicyType;
103     }
104
105     /**
106      * Constructor for
107      *  Create Config Policies from API and Admin Console
108      *  Updating Config Policies from the API
109      *  Create/Update Action Policies from API
110      *  Create/Update Decision Policies
111      * @param stdPAPPolicyParams Input params object
112      */
113     public StdPAPPolicy(StdPAPPolicyParams stdPAPPolicyParams) {
114         this.configPolicyType=stdPAPPolicyParams.getConfigPolicyType();
115         this.policyName = stdPAPPolicyParams.getPolicyName();
116         this.policyDescription = stdPAPPolicyParams.getDescription();
117         this.onapName = stdPAPPolicyParams.getOnapName();
118         this.providerComboBox = stdPAPPolicyParams.getProviderComboBox();
119         this.configName = stdPAPPolicyParams.getConfigName();
120         this.dyanamicFieldConfigAttributes = stdPAPPolicyParams.getDyanamicFieldConfigAttributes();
121         this.dynamicSettingsMap = stdPAPPolicyParams.getDynamicSettingsMap();
122         this.configType = stdPAPPolicyParams.getConfigType();
123         this.configBodyData = stdPAPPolicyParams.getConfigBodyData();
124         this.editPolicy = stdPAPPolicyParams.getEditPolicy();
125         this.domain = stdPAPPolicyParams.getDomain();
126         this.highestVersion = stdPAPPolicyParams.getHighestVersion();
127         this.riskLevel = stdPAPPolicyParams.getRiskLevel();
128         this.riskType = stdPAPPolicyParams.getRiskType();
129         this.guard = stdPAPPolicyParams.getGuard();
130         this.ttlDate = stdPAPPolicyParams.getTtlDate();
131         this.dynamicRuleAlgorithmLabels = stdPAPPolicyParams.getDynamicRuleAlgorithmLabels();
132         this.dynamicRuleAlgorithmCombo = stdPAPPolicyParams.getDynamicRuleAlgorithmCombo();
133         this.dynamicRuleAlgorithmField1 = stdPAPPolicyParams.getDynamicRuleAlgorithmField1();
134         this.dynamicRuleAlgorithmField2 = stdPAPPolicyParams.getDynamicRuleAlgorithmField2();
135         this.dynamicVariableList = stdPAPPolicyParams.getDynamicVariableList();
136         this.dataTypeList = stdPAPPolicyParams.getDataTypeList();
137         this.dropDownMap = stdPAPPolicyParams.getDropDownMap();
138         this.actionPerformer = stdPAPPolicyParams.getActionPerformer();
139         this.actionAttribute = stdPAPPolicyParams.getActionAttribute();
140         this.treatments = stdPAPPolicyParams.getTreatments();
141     }
142
143     //convenience constructor
144     public StdPAPPolicy(String configPolicyType, String policyName, String description, String onapName,
145                         String configName, Map<String, String> attributes, String body, String policyID,
146                         String ruleID, String configType, Boolean editPolicy, String version, String domain,
147                         String riskLevel, String riskType, String guard, String ttlDate) {
148         this(configPolicyType, policyName, description, onapName, configName, attributes, body, policyID,
149                 ruleID, configType, editPolicy, version, domain, 1, riskLevel, riskType, guard, ttlDate);
150     }
151
152     //Constructor for Updating Config Policies from Admin Console
153     public StdPAPPolicy(String configPolicyType, String policyName, String description, String onapName,
154                         String configName, Map<String, String> attributes, String body, String policyID,
155                         String ruleID, String configType, Boolean editPolicy, String version, String domain,
156                         int highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
157
158         this.configPolicyType = configPolicyType;
159         this.policyName = policyName;
160         this.policyDescription = description;
161         this.onapName = onapName;
162         this.configName = configName;
163         this.dyanamicFieldConfigAttributes = attributes;
164         this.configBodyData = body;
165         this.policyID = policyID;
166         this.ruleID = ruleID;
167         this.configType = configType;
168         this.editPolicy = editPolicy;
169         this.version = version;
170         this.domain = domain;
171         this.highestVersion = highestVersion;
172         this.riskLevel = riskLevel;
173         this.riskType = riskType;
174         this.guard = guard;
175         this.ttlDate = ttlDate;
176     }
177
178
179     //Constructor for Creating Config Firewall Policies
180     public StdPAPPolicy(String configPolicyType, String policyName, String description, String configName,
181                         Boolean editPolicy, String domain, String jsonBody, Integer highestVersion, String riskLevel,
182                         String riskType, String guard, String ttlDate) {
183
184         this.configPolicyType = configPolicyType;
185         this.policyName = policyName;
186         this.policyDescription = description;
187         this.configName = configName;
188         this.editPolicy = editPolicy;
189         this.domain = domain;
190         this.jsonBody = jsonBody;
191         this.highestVersion = highestVersion;
192         this.riskLevel = riskLevel;
193         this.riskType = riskType;
194         this.guard = guard;
195         this.ttlDate = ttlDate;
196
197     }
198
199     //Constructor for Creating Goc Policies
200     public StdPAPPolicy(String configPolicyType, String policyName, String description, String configName,
201                         Boolean editPolicy, String domain, String jsonBody, Integer highestVersion, String eCompName,
202                         String riskLevel, String riskType, String guard, String ttlDate) {
203
204         this.configPolicyType = configPolicyType;
205         this.policyName = policyName;
206         this.policyDescription = description;
207         this.configName = configName;
208         this.editPolicy = editPolicy;
209         this.domain = domain;
210         this.jsonBody = jsonBody;
211         this.highestVersion = highestVersion;
212         this.onapName = eCompName;
213         this.riskLevel = riskLevel;
214         this.riskType = riskType;
215         this.guard = guard;
216         this.ttlDate = ttlDate;
217     }
218
219     //Constructor for Creating BRMS Policies from the Admin Console
220     public StdPAPPolicy(String configPolicyType, String policyName, String description,
221                         String configName, Boolean editPolicy, String domain,
222                         Map<String, String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName,
223                         String configBodyData, String riskLevel, String riskType, String guard, String ttlDate,
224                         String brmsController, List<String> brmsDependency) {
225
226         this.configPolicyType = configPolicyType;
227         this.policyName = policyName;
228         this.policyDescription = description;
229         this.configName = configName;
230         this.editPolicy = editPolicy;
231         this.domain = domain;
232         this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
233         this.highestVersion = highestVersion;
234         this.onapName = eCompName;
235         this.configBodyData = configBodyData;
236         this.riskLevel = riskLevel;
237         this.riskType = riskType;
238         this.guard = guard;
239         this.ttlDate = ttlDate;
240         this.brmsController = brmsController;
241         this.brmsDependency = brmsDependency;
242     }
243
244     //Constructor for Creating BRMS Param Policies from the Admin Console
245     public StdPAPPolicy(String configPolicyType, String policyName, String description,
246                         String configName, Boolean editPolicy, String domain,
247                         Map<String, String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName,
248                         String configBodyData, Map<String, String> drlRuleAndUIParams, String riskLevel,
249                         String riskType, String guard, String ttlDate, String brmsController,
250                         List<String> brmsDependency) {
251
252         this.configPolicyType = configPolicyType;
253         this.policyName = policyName;
254         this.policyDescription = description;
255         this.configName = configName;
256         this.editPolicy = editPolicy;
257         this.domain = domain;
258         this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
259         this.highestVersion = highestVersion;
260         this.onapName = eCompName;
261         this.configBodyData = configBodyData;
262         this.drlRuleAndUIParams = drlRuleAndUIParams;
263         this.riskLevel = riskLevel;
264         this.riskType = riskType;
265         this.guard = guard;
266         this.ttlDate = ttlDate;
267         this.brmsController = brmsController;
268         this.brmsDependency = brmsDependency;
269     }
270
271     //Constructor for Creating CloseLoop_Fault and Performance Metric Policies
272     public StdPAPPolicy(String configPolicyType, String policyName, String description, String onapName,
273                         String jsonBody, Boolean draft, String oldPolicyFileName, String serviceType,
274                         Boolean editPolicy,
275                         String domain, Integer highestVersion, String riskLevel, String riskType, String guard,
276                         String ttlDate) {
277
278         this.configPolicyType = configPolicyType;
279         this.policyName = policyName;
280         this.policyDescription = description;
281         this.onapName = onapName;
282         this.jsonBody = jsonBody;
283         this.draft = draft;
284         this.oldPolicyFileName = oldPolicyFileName;
285         this.serviceType = serviceType;
286         this.editPolicy = editPolicy;
287         this.domain = domain;
288         this.highestVersion = highestVersion;
289         this.riskLevel = riskLevel;
290         this.riskType = riskType;
291         this.guard = guard;
292         this.ttlDate = ttlDate;
293     }
294
295     //Constructor for Updating Config Firewall Policies from the Admin Console
296     public StdPAPPolicy(String configPolicyType, String policyName, String description, String configName,
297                         Boolean editPolicy, String domain, String policyID,
298                         String ruleID, String version, String jsonBody, Integer highestVersion, String riskLevel,
299                         String riskType, String guard, String ttlDate) {
300
301         this.configPolicyType = configPolicyType;
302         this.policyName = policyName;
303         this.policyDescription = description;
304         this.configName = configName;
305         this.editPolicy = editPolicy;
306         this.domain = domain;
307         this.policyID = policyID;
308         this.ruleID = ruleID;
309         this.version = version;
310         this.jsonBody = jsonBody;
311         this.highestVersion = highestVersion;
312         this.riskLevel = riskLevel;
313         this.riskType = riskType;
314         this.guard = guard;
315         this.ttlDate = ttlDate;
316     }
317
318     //Constructor for Micro Service Creating/Updating Policies from the Admin Console
319     public StdPAPPolicy(String configPolicyType, String policyName, String description, String onapName,
320                         String configName, String serviceType, String uuid,
321                         String msLocation, String jsonBody, String priority, String version, Boolean editPolicy,
322                         String domain, int highestVersion, String riskLevel,
323                         String riskType, String guard, String ttlDate) {
324
325         this.configPolicyType = configPolicyType;
326         this.policyName = policyName;
327         this.policyDescription = description;
328         this.onapName = onapName;
329         this.configName = configName;
330         this.serviceType = serviceType;
331         this.uuid = uuid;
332         this.msLocation = msLocation;
333         this.priority = priority;
334         this.version = version;
335         this.jsonBody = jsonBody;
336         this.editPolicy = editPolicy;
337         this.domain = domain;
338         this.highestVersion = highestVersion;
339         this.riskLevel = riskLevel;
340         this.riskType = riskType;
341         this.guard = guard;
342         this.ttlDate = ttlDate;
343     }
344
345     //Constructor for Updating Goc Policies from the Admin Console
346     public StdPAPPolicy(String configPolicyType, String policyName, String description,
347                         String configName, Boolean editPolicy, String domain,
348                         String policyID, String ruleID, String version,
349                         String jsonBody, Integer highestVersion, String eCompName, String riskLevel, String riskType,
350                         String guard, String ttlDate) {
351
352         this.configPolicyType = configPolicyType;
353         this.policyName = policyName;
354         this.policyDescription = description;
355         this.configName = configName;
356         this.editPolicy = editPolicy;
357         this.domain = domain;
358         this.policyID = policyID;
359         this.ruleID = ruleID;
360         this.version = version;
361         this.jsonBody = jsonBody;
362         this.highestVersion = highestVersion;
363         this.onapName = eCompName;
364         this.riskLevel = riskLevel;
365         this.riskType = riskType;
366         this.guard = guard;
367         this.ttlDate = ttlDate;
368     }
369
370     //Constructor for Updating Brms Policies from the Admin Console
371     public StdPAPPolicy(String configPolicyType, String policyName, String description,
372                         String configName, Boolean editPolicy, String domain,
373                         String policyID, String ruleID, String version,
374                         Map<String, String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName,
375                         String configBodyData, String riskLevel, String riskType, String guard, String ttlDate
376     ) {
377         this.configPolicyType = configPolicyType;
378         this.policyName = policyName;
379         this.policyDescription = description;
380         this.configName = configName;
381         this.editPolicy = editPolicy;
382         this.domain = domain;
383         this.policyID = policyID;
384         this.ruleID = ruleID;
385         this.version = version;
386         this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
387         this.highestVersion = highestVersion;
388         this.onapName = eCompName;
389         this.configBodyData = configBodyData;
390         this.riskLevel = riskLevel;
391         this.riskType = riskType;
392         this.guard = guard;
393         this.ttlDate = ttlDate;
394     }
395
396     //Constructor for Updating Brms Param Policies from the Admin Console
397     public StdPAPPolicy(String configPolicyType, String policyName, String description,
398                         String configName, Boolean editPolicy, String domain,
399                         String policyID, String ruleID, String version,
400                         Map<String, String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName,
401                         Map<String, String> drlRuleAndUIParams, String riskLevel, String riskType, String guard,
402                         String ttlDate
403     ) {
404         this.configPolicyType = configPolicyType;
405         this.policyName = policyName;
406         this.policyDescription = description;
407         this.configName = configName;
408         this.editPolicy = editPolicy;
409         this.domain = domain;
410         this.policyID = policyID;
411         this.ruleID = ruleID;
412         this.version = version;
413         this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
414         this.highestVersion = highestVersion;
415         this.onapName = eCompName;
416         this.drlRuleAndUIParams = drlRuleAndUIParams;
417         this.riskLevel = riskLevel;
418         this.riskType = riskType;
419         this.guard = guard;
420         this.ttlDate = ttlDate;
421     }
422
423     // Constructor for deleting policies from the API
424     public StdPAPPolicy(String policyName, String deleteCondition) {
425         this.policyName = policyName;
426         this.deleteCondition = deleteCondition;
427     }
428
429     // Constructor for creating dictionary items from the API>
430     public StdPAPPolicy(String dictionaryType, String dictionary, String dictionaryFields) {
431         this.dictionaryType = dictionaryType;
432         this.dictionary = dictionary;
433         this.dictionaryFields = dictionaryFields;
434     }
435
436     @Override
437     public String getPolicyName() {
438         return policyName;
439     }
440
441     @Override
442     public String getPolicyDescription() {
443         return policyDescription;
444     }
445
446     @Override
447     public String getOnapName() {
448         return onapName;
449     }
450
451     @Override
452     public String getConfigName() {
453         return configName;
454     }
455
456     @Override
457     public Map<String, String> getDynamicFieldConfigAttributes() {
458         return dyanamicFieldConfigAttributes;
459     }
460
461     @Override
462     public String getConfigBodyData() {
463         return configBodyData;
464     }
465
466     @Override
467     public String getPolicyID() {
468         return policyID;
469     }
470
471     @Override
472     public String getRuleID() {
473         return ruleID;
474     }
475
476     @Override
477     public String getConfigType() {
478         return configType;
479     }
480
481     @Override
482     public Boolean isEditPolicy() {
483         return editPolicy;
484     }
485
486     @Override
487     public Boolean isDraft() {
488         return draft;
489     }
490
491     @Override
492     public String getVersion() {
493         return version;
494     }
495
496     @Override
497     public String getDomainDir() {
498         return domain;
499     }
500
501     @Override
502     public String getConfigPolicyType() {
503         return configPolicyType;
504     }
505
506     @Override
507     public String getJsonBody() {
508         return jsonBody;
509     }
510
511     @Override
512     public Integer getHighestVersion() {
513         return highestVersion;
514     }
515
516     @Override
517     public URI getLocation() {
518         return location;
519     }
520
521     @Override
522     public List<String> getDynamicRuleAlgorithmLabels() {
523         return dynamicRuleAlgorithmLabels;
524     }
525
526     @Override
527     public List<String> getDynamicRuleAlgorithmCombo() {
528         return dynamicRuleAlgorithmCombo;
529     }
530
531     @Override
532     public List<String> getDynamicRuleAlgorithmField1() {
533         return dynamicRuleAlgorithmField1;
534     }
535
536     @Override
537     public List<String> getDynamicRuleAlgorithmField2() {
538         return dynamicRuleAlgorithmField2;
539     }
540
541     @Override
542     public String getActionPerformer() {
543         return actionPerformer;
544     }
545
546     @Override
547     public String getActionAttribute() {
548         return actionAttribute;
549     }
550
551     @Override
552     public String getActionBody() {
553         return actionBody;
554     }
555
556     @Override
557     public Map<String, String> getDropDownMap() {
558         return dropDownMap;
559     }
560
561     @Override
562     public String getActionDictHeader() {
563         return actionDictHeader;
564     }
565
566     @Override
567     public String getActionDictType() {
568         return actionDictType;
569     }
570
571     @Override
572     public String getActionDictUrl() {
573         return actionDictUrl;
574     }
575
576     @Override
577     public String getActionDictMethod() {
578         return actionDictMethod;
579     }
580
581     @Override
582     public Map<String, String> getDynamicSettingsMap() {
583         return dynamicSettingsMap;
584     }
585
586     @Override
587     public List<Object> getDynamicVariableList() {
588         return dynamicVariableList;
589     }
590
591     @Override
592     public List<String> getDataTypeList() {
593         return dataTypeList;
594     }
595
596     @Override
597     public String getOldPolicyFileName() {
598         return oldPolicyFileName;
599     }
600
601     @Override
602     public String getServiceType() {
603         return serviceType;
604     }
605
606     @Override
607     public String getUuid() {
608         return uuid;
609     }
610
611     @Override
612     public String getMsLocation() {
613         return msLocation;
614     }
615
616     @Override
617     public String getPriority() {
618         return priority;
619     }
620
621     @Override
622     public String getDeleteCondition() {
623         return deleteCondition;
624     }
625
626     @Override
627     public String getDictionaryType() {
628         return dictionaryType;
629     }
630
631     @Override
632     public String getDictionary() {
633         return dictionary;
634     }
635
636     @Override
637     public String getTTLDate() {
638         return ttlDate;
639     }
640
641     @Override
642     public String getDictionaryFields() {
643         return dictionaryFields;
644     }
645
646     @Override
647     public String getRiskType() {
648         return riskType;
649     }
650
651     @Override
652     public String getRiskLevel() {
653         return riskLevel;
654     }
655
656     @Override
657     public String getGuard() {
658         return guard;
659     }
660
661     @Override
662     public Map<String, String> getTreatments() {
663         return treatments;
664     }
665
666     @Override
667     public String toString() {
668         return "StdPAPPolicy [policyName=" + policyName + ", policyDescription=" + policyDescription + ", onapName="
669                 + onapName + ", configName=" + configName + ", dyanamicFieldConfigAttributes=" +
670                 dyanamicFieldConfigAttributes + ", configBodyData=" + configBodyData
671                 + ", policyID=" + policyID + ", ruleID=" + ruleID + ", configType=" + configType + ", editPolicy=" +
672                 ", version=" + ", domain=" + domain
673                 + ", configPolicyType=" + configPolicyType + ", jsonBody=" + jsonBody + ", highestVersion=" +
674                 highestVersion + ", location=" + location
675                 + ",dynamicRuleAlgorithmLabels=" + dynamicRuleAlgorithmLabels + ",dynamicRuleAlgorithmCombo=" +
676                 dynamicRuleAlgorithmCombo
677                 + ",dynamicRuleAlgorithmField1=" + dynamicRuleAlgorithmField1 + ",dynamicRuleAlgorithmField2=" +
678                 dynamicRuleAlgorithmField2
679                 + ",actionPerformer=" + actionPerformer + ",actionAttribute=" + actionAttribute + ",actionBody=" +
680                 actionBody + ",dropDownMap=" + dropDownMap
681                 + ",actionDictHeader=" + actionDictHeader + ",actionDictType=" + actionDictType + ",actionDictUrl=" +
682                 actionDictUrl
683                 + ",actionDictMethod=" + actionDictMethod + ",dynamicSettingsMap=" + dynamicSettingsMap + "," +
684                 "dynamicVariableList=" + dynamicVariableList + ",providerComboBox=" + providerComboBox
685                 + ",dataTypeList=" + dataTypeList + ",draft=" + ",oldPolicyFileName=" + oldPolicyFileName + "," +
686                 "serviceType=" + serviceType
687                 + ",uuid=" + uuid + ",msLocation=" + msLocation + ",priority=" + priority + ",deleteCondition=" +
688                 deleteCondition + ",dictionaryType=" + dictionaryType
689                 + ",dictionary=" + dictionary + ",dictionaryFields=" + dictionaryFields + ",uuid=" + uuid + "," +
690                 "msLocation=" + msLocation + ",priority="
691                 + priority + ",deleteCondition=" + deleteCondition + ",riskType=" + riskType + ",riskLevel=" +
692                 riskLevel + ",guard=" + guard + ",ttlDate=" + ttlDate
693                 + ",treatments=" + treatments + "]";
694     }
695
696     // Methods needed for JSON Deserialization
697     public void setPolicyName(String policyName) {
698         this.policyName = policyName;
699     }
700
701     public void setPolicyDescription(String policyDescription) {
702         this.policyDescription = policyDescription;
703     }
704
705     public void setOnapName(String onapName) {
706         this.onapName = onapName;
707     }
708
709     public void setConfigName(String configName) {
710         this.configName = configName;
711     }
712
713     public void setDyanamicFieldConfigAttributes(
714             Map<String, String> dyanamicFieldConfigAttributes) {
715         this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
716     }
717
718     public void setConfigBodyData(String configBodyData) {
719         this.configBodyData = configBodyData;
720     }
721
722     public void setPolicyID(String policyID) {
723         this.policyID = policyID;
724     }
725
726     public void setRuleID(String ruleID) {
727         this.ruleID = ruleID;
728     }
729
730     public void setConfigType(String configType) {
731         this.configType = configType;
732     }
733
734     public void setEditPolicy(Boolean editPolicy) {
735         this.editPolicy = editPolicy;
736     }
737
738     public void setVersion(String version) {
739         this.version = version;
740     }
741
742     public void setDomainDir(String domain) {
743         this.domain = domain;
744     }
745
746     public void setConfigPolicyType(String configPolicyType) {
747         this.configPolicyType = configPolicyType;
748     }
749
750     public void setJsonBody(String jsonBody) {
751         this.jsonBody = jsonBody;
752     }
753
754     public void setHighestVersion(Integer highestVersion) {
755         this.highestVersion = highestVersion;
756     }
757
758     public void setLocation(URI location) {
759         this.location = location;
760     }
761
762     public void setDynamicRuleAlgorithmLabels(
763             List<String> dynamicRuleAlgorithmLabels) {
764         this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
765     }
766
767     public void setDynamicRuleAlgorithmCombo(List<String> dynamicRuleAlgorithmCombo) {
768         this.dynamicRuleAlgorithmCombo = dynamicRuleAlgorithmCombo;
769     }
770
771     public void setDynamicRuleAlgorithmField1(
772             List<String> dynamicRuleAlgorithmField1) {
773         this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
774     }
775
776     public void setDynamicRuleAlgorithmField2(
777             List<String> dynamicRuleAlgorithmField2) {
778         this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
779     }
780
781     public void setActionPerformer(String actionPerformer) {
782         this.actionPerformer = actionPerformer;
783     }
784
785     public void setActionAttribute(String actionAttribute) {
786         this.actionAttribute = actionAttribute;
787     }
788
789     public void setActionBody(String actionBody) {
790         this.actionBody = actionBody;
791     }
792
793     public void setDropDownMap(Map<String, String> dropDownMap) {
794         this.dropDownMap = dropDownMap;
795     }
796
797     public void setActionDictHeader(String actionDictHeader) {
798         this.actionDictHeader = actionDictHeader;
799     }
800
801     public void setActionDictType(String actionDictType) {
802         this.actionDictType = actionDictType;
803     }
804
805     public void setActionDictUrl(String actionDictUrl) {
806         this.actionDictUrl = actionDictUrl;
807     }
808
809     public void setActionDictMethod(String actionDictMethod) {
810         this.actionDictMethod = actionDictMethod;
811     }
812
813     public void setDynamicSettingsMap(Map<String, String> dynamicSettingsMap) {
814         this.dynamicSettingsMap = dynamicSettingsMap;
815     }
816
817     public void setDynamicVariableList(List<Object> dynamicVariableList) {
818         this.dynamicVariableList = dynamicVariableList;
819     }
820
821     public void setDataTypeList(List<String> dataTypeList) {
822         this.dataTypeList = dataTypeList;
823     }
824
825     public void setDraft(Boolean draft) {
826         this.draft = draft;
827     }
828
829     public void setOldPolicyFileName(String oldPolicyFileName) {
830         this.oldPolicyFileName = oldPolicyFileName;
831     }
832
833     public void setServiceType(String serviceType) {
834         this.serviceType = serviceType;
835     }
836
837     public Map<String, String> getDrlRuleAndUIParams() {
838         return drlRuleAndUIParams;
839     }
840
841     public void setDrlRuleAndUIParams(Map<String, String> drlRuleAndUIParams) {
842         this.drlRuleAndUIParams = drlRuleAndUIParams;
843     }
844
845     public void setUuid(String uuid) {
846         this.uuid = uuid;
847     }
848
849     public void setMsLocation(String msLocation) {
850         this.msLocation = msLocation;
851     }
852
853     public void setPriority(String priority) {
854         this.priority = priority;
855     }
856
857     public void setDeleteCondition(String deleteCondition) {
858         this.deleteCondition = deleteCondition;
859     }
860
861     public void setDictionaryType(String dictionaryType) {
862         this.dictionaryType = dictionaryType;
863     }
864
865     public void setDictionary(String dictionary) {
866         this.dictionary = dictionary;
867     }
868
869     public void setDictionaryFields(String dictionaryFields) {
870         this.dictionaryFields = dictionaryFields;
871     }
872
873     public String getProviderComboBox() {
874         return providerComboBox;
875     }
876
877     public void setProviderComboBox(String providerComboBox) {
878         this.providerComboBox = providerComboBox;
879     }
880
881     public void setRiskType(String riskType) {
882         this.riskType = riskType;
883     }
884
885     public void setRiskLevel(String riskLevel) {
886         this.riskLevel = riskLevel;
887     }
888
889     public void setGuard(String guard) {
890         this.guard = guard;
891     }
892
893     public void setTTLDate(String ttlDate) {
894         this.ttlDate = ttlDate;
895     }
896
897     public String getBrmsController() {
898         return brmsController;
899     }
900
901     public void setBrmsController(String brmsController) {
902         this.brmsController = brmsController;
903     }
904
905     public List<String> getBrmsDependency() {
906         return brmsDependency;
907     }
908
909     public void setBrmsDependency(List<String> brmsDependency) {
910         this.brmsDependency = brmsDependency;
911     }
912
913     public void setTreatments(Map<String, String> treatments) {
914         this.treatments = treatments;
915     }
916 }