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