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