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