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