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