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