aboutsummaryrefslogtreecommitdiffstats
path: root/ECOMP-XACML/src/main/java/org/openecomp/policy/xacml/std/pap/StdPAPPolicy.java
blob: f4817ac8a2ff73372989f5ee846c51c6f10c1daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
/*-
 * ============LICENSE_START=======================================================
 * ECOMP-XACML
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */
package org.openecomp.policy.xacml.std.pap;

import java.io.Serializable;
import java.net.URI;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openecomp.policy.xacml.api.pap.EcompPAPPolicy;

public class StdPAPPolicy implements EcompPAPPolicy, Serializable{
	private static final long serialVersionUID = 5260230629397322000L;
	
	private String policyName = null;
	private String oldPolicyFileName = null;
	private String policyDescription = null;
	private String ecompName = null;
	private String configName = null;
	private Map<String, String> dyanamicFieldConfigAttributes = new HashMap<String, String>();
	private Map<String, String> dropDownMap = new HashMap<String, String>();
	private Map<String, String> dynamicSettingsMap = new HashMap<String, String>();
	private List<String> dynamicRuleAlgorithmLabels;
	private List<String> dynamicRuleAlgorithmCombo;
	private List<String> dynamicRuleAlgorithmField1;
	private List<String> dynamicRuleAlgorithmField2;
	private List<Object> dynamicVariableList;
	private List<String> dataTypeList;
	private String configBodyData = null;
	private String policyID = null;
	private String ruleID = null;
	private String configType = null;
	private Boolean editPolicy = false;
	private Boolean draft = false;
	private String version = null;
	private String domain = null;
	private String configPolicyType = null; 
	private String jsonBody = null;
	private String serviceType = null;
	private Integer highestVersion = null;
	private URI location = null;
	private String actionPerformer = null;
	private String actionAttribute = null;
	private String actionBody = null;
	private String actionDictHeader = null;
	private String actionDictType = null;
	private String actionDictUrl = null;
	private String actionDictMethod = null;
	private String uuid = null;
	private String msLocation = null;
    private String priority = null;
	private Map<String,String> drlRuleAndUIParams=null;
	private String deleteCondition = null;
	private String dictionaryType = null;
	private String dictionary = null;
	private Map<String,String> dictionaryFields = new HashMap<String, String>();
	private String providerComboBox = null;
	private String riskType = null;
	private String guard = null;
	private String riskLevel;
	private String ttlDate = null;
	

	public StdPAPPolicy() {
		
	}
	
	//Constructor for sending location when pushing policies
	public StdPAPPolicy(URI location) {
		this.location = location;
	}
	
	//Constructor for Validating Config Policies
	public StdPAPPolicy(String policyName, String body, String configType, String configPolicyType) {
		this.policyName = policyName;
		this.configBodyData = body;
		this.configType = configType;
		this.configPolicyType = configPolicyType;
	}
	
	//convenience constructor
	public StdPAPPolicy(String configPolicyType, String policyName, String description, String ecompName, String configName, Map<String, String> attributes, String configType, 
			String body, Boolean editPolicy, String domain, String riskLevel, String riskType, String guard, String ttlDate){
		this(configPolicyType, policyName, description, ecompName, configName, attributes, configType, 
				body, editPolicy, domain, 1, riskLevel, riskType, guard, ttlDate);
	}

	//Constructor for Create/Update Action Policies from API
	public StdPAPPolicy(String policyName, String description, Map<String, String> attributes, List<String> dynamicRuleAlgorithmLabels, List<String> dynamicRuleAlgorithmCombo, 
						List<String> dynamicRuleAlgorithmField1, List<String> dynamicRuleAlgorithmField2, String actionPerformer,String actionAttribute, Boolean editPolicy, 
						String domain, int highestVersion) {
		
		this.policyName = policyName;
		this.policyDescription = description;
		this.dyanamicFieldConfigAttributes = attributes;
		this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
		this.dynamicRuleAlgorithmCombo = dynamicRuleAlgorithmCombo;
		this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
		this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
		this.actionPerformer = actionPerformer;
		this.actionAttribute = actionAttribute;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.highestVersion = highestVersion;	
		
	}
	
	//Constructor for Create/Update Decision Policies from Admin Console
	public StdPAPPolicy(String policyName, String description, String ecompName, String providerComboBox, Map<String, String> attributes, Map<String, String> settings, 
			List<String> dynamicRuleAlgorithmLabels, List<String> dynamicRuleAlgorithmCombo, List<String> dynamicRuleAlgorithmField1, 
			List<String> dynamicRuleAlgorithmField2, Map<String, String> dropDownMap, List<Object> dynamicVariableList, 
			List<String> dataTypeList, Boolean editPolicy, String domain, int highestVersion) {
		
		this.policyName = policyName;
		this.policyDescription = description;
		this.ecompName = ecompName;
		this.setProviderComboBox(providerComboBox);
		this.dyanamicFieldConfigAttributes = attributes;
		this.dynamicSettingsMap = settings;
		this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
		this.dynamicRuleAlgorithmCombo = dynamicRuleAlgorithmCombo;
		this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
		this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
		this.dynamicVariableList = dynamicVariableList;
		this.dataTypeList = dataTypeList;
		this.dropDownMap = dropDownMap;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.highestVersion = highestVersion;	
		
	}
	
	
	//Constructor for Create Config Policies from API and Admin Console
	//Constructor for Updating Config Policies from the API
	public StdPAPPolicy(String configPolicyType, String policyName, String description, String ecompName, String configName, Map<String, String> attributes, String configType, 
								String body, Boolean editPolicy, String domain, int highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
	
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.ecompName = ecompName;
		this.configName = configName;
		this.dyanamicFieldConfigAttributes = attributes;
		this.configType = configType;
		this.configBodyData = body;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//convenience constructor
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String ecompName, String configName, Map<String, String> attributes, String body, String policyID, 
			String ruleID, String configType, Boolean editPolicy, String version, String domain, String riskLevel, String riskType, String guard, String ttlDate) {
		this (configPolicyType, policyName, description, ecompName, configName, attributes, body, policyID, 
				ruleID, configType, editPolicy, version, domain,  1, riskLevel, riskType, guard, ttlDate); 
		}

	//Constructor for Updating Config Policies from Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String ecompName, String configName, Map<String, String> attributes, String body, String policyID, 
								String ruleID, String configType, Boolean editPolicy, String version, String domain,  int highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.ecompName = ecompName;
		this.configName = configName;
		this.dyanamicFieldConfigAttributes = attributes;
		this.configBodyData = body;
		this.policyID = policyID;
		this.ruleID = ruleID;
		this.configType = configType;
		this.editPolicy = editPolicy;
		this.version = version;
		this.domain = domain;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	

	//Constructor for Creating Config Firewall Policies
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String configName, 
			Boolean editPolicy, String domain, String jsonBody,  Integer highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.jsonBody = jsonBody;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;

	}
	
	//Constructor for Creating Goc Policies
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String configName, 
				Boolean editPolicy, String domain, String jsonBody,  Integer highestVersion, String eCompName, String riskLevel, String riskType, String guard, String ttlDate) {
			
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.jsonBody = jsonBody;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//Constructor for Creating BRMS Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, 
			String configName, Boolean editPolicy, String domain, 
			Map<String,String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName, 
			String configBodyData, String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.configBodyData=configBodyData;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}

	//Constructor for Creating BRMS Param Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, 
			String configName, Boolean editPolicy, String domain, 
			Map<String,String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName, 
			String configBodyData,Map<String,String> drlRuleAndUIParams, String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.configBodyData=configBodyData;
		this.drlRuleAndUIParams=drlRuleAndUIParams;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//Constructor for Creating CloseLoop_Fault and Performance Metric Policies
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String ecompName, 
			String jsonBody, Boolean draft, String oldPolicyFileName, String serviceType, Boolean editPolicy, 
			String domain, Integer highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
			
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.ecompName = ecompName;
		this.jsonBody = jsonBody;
		this.draft = draft;
		this.oldPolicyFileName = oldPolicyFileName;
		this.serviceType = serviceType;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//Constructor for Updating Config Firewall Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, String configName, Boolean editPolicy, String domain, String policyID, 
			String ruleID, String version, String jsonBody,  Integer highestVersion, String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.policyID = policyID;
		this.ruleID = ruleID;
		this.version = version;
		this.jsonBody = jsonBody;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
    //Constructor for Micro Service Creating/Updating Policies from the Admin Console
	public StdPAPPolicy(String configPolicyType, String policyName, String description, String ecompName, String configName, String serviceType, String uuid, 
            String msLocation, String jsonBody, String priority, String version, Boolean editPolicy, String domain, int highestVersion, String riskLevel, 
            String riskType, String guard, String ttlDate) {

		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.ecompName = ecompName;
		this.configName = configName;
		this.serviceType = serviceType;
		this.uuid = uuid;
		this.msLocation = msLocation;
        this.priority = priority;
        this.version = version;
		this.jsonBody = jsonBody;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.highestVersion = highestVersion;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//Constructor for Updating Goc Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, 
						String configName, Boolean editPolicy, String domain, 
						String policyID, String ruleID, String version, 
						String jsonBody,  Integer highestVersion, String eCompName,String riskLevel, String riskType, String guard, String ttlDate) {
		
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.policyID = policyID;
		this.ruleID = ruleID;
		this.version = version;
		this.jsonBody = jsonBody;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
		
	//Constructor for Updating Brms Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, 
						String configName, Boolean editPolicy, String domain, 
						String policyID, String ruleID, String version, 
						Map<String,String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName, 
						String configBodyData , String riskLevel, String riskType, String guard, String ttlDate
						) {
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.policyID = policyID;
		this.ruleID = ruleID;
		this.version = version;
		this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.configBodyData=configBodyData;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}
	
	//Constructor for Updating Brms Param Policies from the Admin Console
	public StdPAPPolicy (String configPolicyType, String policyName, String description, 
						String configName, Boolean editPolicy, String domain, 
						String policyID, String ruleID, String version, 
						Map<String,String> dyanamicFieldConfigAttributes, Integer highestVersion, String eCompName, 
						Map<String,String> drlRuleAndUIParams, String riskLevel, String riskType, String guard, String ttlDate
						) {
		this.configPolicyType = configPolicyType;
		this.policyName = policyName;
		this.policyDescription = description;
		this.configName = configName;
		this.editPolicy = editPolicy;
		this.domain = domain;
		this.policyID = policyID;
		this.ruleID = ruleID;
		this.version = version;
		this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
		this.highestVersion = highestVersion;
		this.ecompName=eCompName;
		this.drlRuleAndUIParams=drlRuleAndUIParams;
		this.riskLevel = riskLevel;
		this.riskType = riskType;
		this.guard = guard;	
		this.ttlDate = ttlDate;
	}

	// Constructor for deleting policies from the API
	public StdPAPPolicy(String policyName, String deleteCondition) {
		this.policyName = policyName;
		this.deleteCondition = deleteCondition;
	}
	
	// Constructor for creating dictionary items from the API
	public StdPAPPolicy(String dictionaryType, String dictionary, Map<String,String> dictionaryFields) {
		this.dictionaryType = dictionaryType;
		this.dictionary = dictionary;
		this.dictionaryFields = dictionaryFields;
	}

	@Override
	public String getPolicyName() {
		return policyName;
	}
	
	@Override
	public String getPolicyDescription() {
		return policyDescription;
	}
	
	@Override
	public String getEcompName() {
		return ecompName;
	}
	
	@Override
	public String getConfigName() {
		return configName;
	}
	
	@Override
	public Map<String, String> getDynamicFieldConfigAttributes() {
		return dyanamicFieldConfigAttributes;
	}
	
	@Override
	public String getConfigBodyData() {
		return configBodyData;
	}
	
	@Override
	public String getPolicyID() {
		return policyID;
	}
	
	@Override
	public String getRuleID() {
		return ruleID;
	}
	
	@Override
	public String getConfigType() {
		return configType;
	}
	
	@Override
	public Boolean isEditPolicy() {
		return editPolicy;
	}
	
	@Override
	public Boolean isDraft() {
		return draft;
	}
	
	@Override
	public String getVersion() {
		return version;
	}
	
	@Override
	public String getDomainDir() {
		return domain;
	}
	
	@Override
	public String getConfigPolicyType() {
		return configPolicyType;
	}
	
	@Override
	public String getJsonBody() {
		return jsonBody;
	}
	
	@Override
	public Integer getHighestVersion() {
		return highestVersion;
	}
	
	@Override
	public URI getLocation() {
		return location;
	}
	
	@Override
	public List<String> getDynamicRuleAlgorithmLabels() {
		return dynamicRuleAlgorithmLabels;
	}

	@Override
	public List<String> getDynamicRuleAlgorithmCombo() {
		return dynamicRuleAlgorithmCombo;
	}

	@Override
	public List<String> getDynamicRuleAlgorithmField1() {
		return dynamicRuleAlgorithmField1;
	}

	@Override
	public List<String> getDynamicRuleAlgorithmField2() {
		return dynamicRuleAlgorithmField2;
	}

	@Override
	public String getActionPerformer() {
		return actionPerformer;
	}

	@Override
	public String getActionAttribute() {
		return actionAttribute;
	}
	
	@Override
	public String getActionBody() {
		return actionBody;
	}
	
	@Override
	public Map<String, String> getDropDownMap() {
		return dropDownMap;
	}
	
	@Override
	public String getActionDictHeader() {
		return actionDictHeader;
	}
	
	@Override
	public String getActionDictType() {
		return actionDictType;
	}
	
	@Override
	public String getActionDictUrl() {
		return actionDictUrl;
	}
	
	@Override
	public String getActionDictMethod() {
		return actionDictMethod;
	}
	
	@Override
	public Map<String, String> getDynamicSettingsMap() {
		return dynamicSettingsMap;
	}
	
	@Override
	public List<Object> getDynamicVariableList() {
		return dynamicVariableList;
	}
	
	@Override
	public List<String> getDataTypeList() {
		return dataTypeList;
	}
	
	@Override
	public String getOldPolicyFileName() {
		return oldPolicyFileName;
	}
	
	@Override
	public String getServiceType() {
		return serviceType;
	}
	
	@Override
	public String getUuid() {
		return uuid;
	}
	
	@Override
	public String getMsLocation() {
		return msLocation;
	}
	
    @Override
    public String getPriority() {
        return priority;
    }
    
    @Override
	public String getDeleteCondition() {
		return deleteCondition;
	}
    
    @Override
	public String getDictionaryType() {
		return dictionaryType;
	}
    
    @Override
	public String getDictionary() {
		return dictionary;
	}
    
	@Override
	public String getTTLDate(){
		return ttlDate;
	}

    @Override
	public Map<String, String> getDictionaryFields() {
		return dictionaryFields;
	}

	@Override
	public String getRiskType() {
		return riskType;
	}
	
	@Override
	public String getRiskLevel() {
		return riskLevel;
	}
	
	@Override
	public String getGuard() {
		return guard;
	}
	
	@Override
	public String toString() {
		return "StdPAPPolicy [policyName=" + policyName + ", policyDescription=" + policyDescription + ", ecompName="
				+ ecompName + ", configName=" + configName + ", dyanamicFieldConfigAttributes=" + dyanamicFieldConfigAttributes + ", configBodyData=" + configBodyData
				+ ", policyID=" + policyID + ", ruleID=" + ruleID + ", configType=" + configType + ", editPolicy=" + ", version=" + ", domain=" + domain  
				+ ", configPolicyType=" + configPolicyType + ", jsonBody=" + jsonBody + ", highestVersion=" + highestVersion + ", location=" + location 
				+ ",dynamicRuleAlgorithmLabels=" + dynamicRuleAlgorithmLabels + ",dynamicRuleAlgorithmCombo=" + dynamicRuleAlgorithmCombo 
				+ ",dynamicRuleAlgorithmField1=" + dynamicRuleAlgorithmField1 + ",dynamicRuleAlgorithmField2=" + dynamicRuleAlgorithmField2 
				+ ",actionPerformer=" + actionPerformer + ",actionAttribute=" + actionAttribute + ",actionBody=" + actionBody + ",dropDownMap=" + dropDownMap
				+ ",actionDictHeader=" + actionDictHeader + ",actionDictType=" + actionDictType + ",actionDictUrl=" + actionDictUrl 
				+ ",actionDictMethod=" + actionDictMethod + ",dynamicSettingsMap=" + dynamicSettingsMap + ",dynamicVariableList=" + dynamicVariableList + ",providerComboBox=" + providerComboBox
				+ ",dataTypeList=" + dataTypeList + ",draft=" + ",oldPolicyFileName=" + oldPolicyFileName + ",serviceType=" + serviceType
                + ",uuid=" + uuid + ",msLocation=" + msLocation + ",priority=" + priority + ",deleteCondition=" + deleteCondition + ",dictionaryType=" + dictionaryType 
                + ",dictionary=" + dictionary + ",dictionaryFields=" + dictionaryFields + ",uuid=" + uuid + ",msLocation=" + msLocation + ",priority=" 
                + priority + ",deleteCondition=" + deleteCondition + ",riskType="+riskType + ",riskLevel="+riskLevel + ",guard="+ guard + ",ttlDate="+ ttlDate + "]";
	}
	
	// Methods needed for JSON Deserialization
	public void setPolicyName(String policyName) {
		this.policyName = policyName;
	}
	
	public void setPolicyDescription(String policyDescription) {
		this.policyDescription = policyDescription;
	}
	
	public void setEcompName(String ecompName) {
		this.ecompName = ecompName;
	}
	
	public void setConfigName(String configName) {
		this.configName = configName;
	}
	
	public void setDyanamicFieldConfigAttributes(
			Map<String, String> dyanamicFieldConfigAttributes) {
		this.dyanamicFieldConfigAttributes = dyanamicFieldConfigAttributes;
	}
	
	public void setConfigBodyData(String configBodyData) {
		this.configBodyData = configBodyData;
	}
	
	public void setPolicyID(String policyID) {
		this.policyID = policyID;
	}
	
	public void setRuleID(String ruleID) {
		this.ruleID = ruleID;
	}
	
	public void setConfigType(String configType) {
		this.configType = configType;
	}

	public void setEditPolicy(Boolean editPolicy) {
		this.editPolicy = editPolicy;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public void setDomainDir(String domain) {
		this.domain = domain;
	}

	public void setConfigPolicyType(String configPolicyType) {
		this.configPolicyType = configPolicyType;
	}

	public void setJsonBody(String jsonBody) {
		this.jsonBody = jsonBody;
	}
	
	public void setHighestVersion(Integer highestVersion) {
		this.highestVersion = highestVersion;
	}
	
	public void setLocation (URI location) {
		this.location = location;
	}
	
	public void setDynamicRuleAlgorithmLabels(
			List<String> dynamicRuleAlgorithmLabels) {
		this.dynamicRuleAlgorithmLabels = dynamicRuleAlgorithmLabels;
	}

	public void setDynamicRuleAlgorithmCombo(List<String> dynamicRuleAlgorithmCombo) {
		this.dynamicRuleAlgorithmCombo = dynamicRuleAlgorithmCombo;
	}

	public void setDynamicRuleAlgorithmField1(
			List<String> dynamicRuleAlgorithmField1) {
		this.dynamicRuleAlgorithmField1 = dynamicRuleAlgorithmField1;
	}

	public void setDynamicRuleAlgorithmField2(
			List<String> dynamicRuleAlgorithmField2) {
		this.dynamicRuleAlgorithmField2 = dynamicRuleAlgorithmField2;
	}

	public void setActionPerformer(String actionPerformer) {
		this.actionPerformer = actionPerformer;
	}

	public void setActionAttribute(String actionAttribute) {
		this.actionAttribute = actionAttribute;
	}

	public void setActionBody(String actionBody) {
		this.actionBody = actionBody;
	}

	public void setDropDownMap(Map<String, String> dropDownMap) {
		this.dropDownMap = dropDownMap;
	}

	public void setActionDictHeader(String actionDictHeader) {
		this.actionDictHeader = actionDictHeader;
	}

	public void setActionDictType(String actionDictType) {
		this.actionDictType = actionDictType;
	}

	public void setActionDictUrl(String actionDictUrl) {
		this.actionDictUrl = actionDictUrl;
	}

	public void setActionDictMethod(String actionDictMethod) {
		this.actionDictMethod = actionDictMethod;
	}

	public void setDynamicSettingsMap(Map<String, String> dynamicSettingsMap) {
		this.dynamicSettingsMap = dynamicSettingsMap;
	}

	public void setDynamicVariableList(List<Object> dynamicVariableList) {
		this.dynamicVariableList = dynamicVariableList;
	}

	public void setDataTypeList(List<String> dataTypeList) {
		this.dataTypeList = dataTypeList;
	}

	public void setDraft(Boolean draft) {
		this.draft = draft;
	}

	public void setOldPolicyFileName(String oldPolicyFileName) {
		this.oldPolicyFileName = oldPolicyFileName;
	}

	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}
	

	public Map<String, String> getDrlRuleAndUIParams() {
		return drlRuleAndUIParams;
	}

	public void setDrlRuleAndUIParams(Map<String, String> drlRuleAndUIParams) {
		this.drlRuleAndUIParams = drlRuleAndUIParams;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public void setMsLocation(String msLocation) {
		this.msLocation = msLocation;
	}
	
    public void setPriority(String priority) {
        this.priority = priority;
    }

	public void setDeleteCondition(String deleteCondition) {
		this.deleteCondition = deleteCondition;
	}

	public void setDictionaryType(String dictionaryType) {
		this.dictionaryType = dictionaryType;
	}

	public void setDictionary(String dictionary) {
		this.dictionary = dictionary;
	}

	public void setDictionaryFields(Map<String, String> dictionaryFields) {
		this.dictionaryFields = dictionaryFields;
	}

	public String getProviderComboBox() {
		return providerComboBox;
	}

	public void setProviderComboBox(String providerComboBox) {
		this.providerComboBox = providerComboBox;
	}
	
	public void setRiskType(String riskType){
		this.riskType = riskType;
	}
	
	public void setRiskLevel(String riskLevel){
		this.riskLevel = riskLevel;
	}
	
	public void setGuard(String guard){
		this.guard = guard;
	}
	
	public void setTTLDate(String ttlDate){
		this.ttlDate = ttlDate;
	}
}