Merge "Add ONAP-XACML StdEngine tests"
[policy/engine.git] / ONAP-REST / src / test / resources / policies / DecisionPolicy.json
1 {
2     "policyData": {
3         "data": {
4             "description": "SampelGuardBLOne@CreatedBy:demo@CreatedBy:@ModifiedBy:demo@ModifiedBy:",
5             "policyIssuer": null,
6             "policyDefaults": null,
7             "target": {
8                 "anyOf": [
9                     {
10                         "allOf": [
11                             {
12                                 "match": [
13                                     {
14                                         "attributeValue": {
15                                             "content": [
16                                                 "com.Decision_SampelGuardBLOne.4.xml"
17                                             ],
18                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
19                                             "otherAttributes": {
20                                             }
21                                         },
22                                         "attributeDesignator": {
23                                             "category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
24                                             "attributeId": "PolicyName",
25                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
26                                             "issuer": null,
27                                             "mustBePresent": false
28                                         },
29                                         "attributeSelector": null,
30                                         "matchId": "org.onap.function.regex-match"
31                                     }
32                                 ]
33                             },
34                             {
35                                 "match": [
36                                     {
37                                         "attributeValue": {
38                                             "content": [
39                                                 "Test"
40                                             ],
41                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
42                                             "otherAttributes": {
43                                             }
44                                         },
45                                         "attributeDesignator": {
46                                             "category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
47                                             "attributeId": "ONAPName",
48                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
49                                             "issuer": null,
50                                             "mustBePresent": false
51                                         },
52                                         "attributeSelector": null,
53                                         "matchId": "org.onap.function.regex-match"
54                                     },
55                                     {
56                                         "attributeValue": {
57                                             "content": [
58                                                 "(?i)testActor"
59                                             ],
60                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
61                                             "otherAttributes": {
62                                             }
63                                         },
64                                         "attributeDesignator": {
65                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
66                                             "attributeId": "actor",
67                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
68                                             "issuer": null,
69                                             "mustBePresent": false
70                                         },
71                                         "attributeSelector": null,
72                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
73                                     },
74                                     {
75                                         "attributeValue": {
76                                             "content": [
77                                                 "(?i)testRecipe"
78                                             ],
79                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
80                                             "otherAttributes": {
81                                             }
82                                         },
83                                         "attributeDesignator": {
84                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
85                                             "attributeId": "recipe",
86                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
87                                             "issuer": null,
88                                             "mustBePresent": false
89                                         },
90                                         "attributeSelector": null,
91                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
92                                     },
93                                     {
94                                         "attributeValue": {
95                                             "content": [
96                                                 "testCLName"
97                                             ],
98                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
99                                             "otherAttributes": {
100                                             }
101                                         },
102                                         "attributeDesignator": {
103                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
104                                             "attributeId": "clname",
105                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
106                                             "issuer": null,
107                                             "mustBePresent": false
108                                         },
109                                         "attributeSelector": null,
110                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
111                                     },
112                                     {
113                                         "attributeValue": {
114                                             "content": [
115                                                 "Use Manual Entry"
116                                             ],
117                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
118                                             "otherAttributes": {
119                                             }
120                                         },
121                                         "attributeDesignator": {
122                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
123                                             "attributeId": "blackListEntryType",
124                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
125                                             "issuer": null,
126                                             "mustBePresent": false
127                                         },
128                                         "attributeSelector": null,
129                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
130                                     }
131                                 ]
132                             }
133                         ]
134                     }
135                 ]
136             },
137             "combinerParametersOrRuleCombinerParametersOrVariableDefinition": [
138                 {
139                     "description": null,
140                     "target": {
141                         "anyOf": [
142                             {
143                                 "allOf": [
144                                     {
145                                         "match": [
146                                             {
147                                                 "attributeValue": {
148                                                     "content": [
149                                                         "DECIDE"
150                                                     ],
151                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
152                                                     "otherAttributes": {
153                                                     }
154                                                 },
155                                                 "attributeDesignator": {
156                                                     "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:action",
157                                                     "attributeId": "urn:oasis:names:tc:xacml:1.0:action:action-id",
158                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
159                                                     "issuer": null,
160                                                     "mustBePresent": false
161                                                 },
162                                                 "attributeSelector": null,
163                                                 "matchId": "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"
164                                             }
165                                         ]
166                                     }
167                                 ]
168                             }
169                         ]
170                     },
171                     "condition": {
172                         "expression": {
173                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
174                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
175                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
176                             "value": {
177                                 "description": null,
178                                 "expression": [
179                                     {
180                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
181                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
182                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
183                                         "value": {
184                                             "description": null,
185                                             "expression": [
186                                                 {
187                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
188                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
189                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
190                                                     "value": {
191                                                         "description": null,
192                                                         "expression": [
193                                                             {
194                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
195                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
196                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
197                                                                 "value": {
198                                                                     "description": null,
199                                                                     "expression": [
200                                                                         {
201                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
202                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
203                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
204                                                                             "value": {
205                                                                                 "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:environment",
206                                                                                 "attributeId": "urn:oasis:names:tc:xacml:1.0:environment:current-time",
207                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
208                                                                                 "issuer": null,
209                                                                                 "mustBePresent": false
210                                                                             },
211                                                                             "nil": false,
212                                                                             "globalScope": true,
213                                                                             "typeSubstituted": false
214                                                                         }
215                                                                     ],
216                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"
217                                                                 },
218                                                                 "nil": false,
219                                                                 "globalScope": true,
220                                                                 "typeSubstituted": false
221                                                             },
222                                                             {
223                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
224                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
225                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
226                                                                 "value": {
227                                                                     "content": [
228                                                                         "5:00"
229                                                                     ],
230                                                                     "dataType": "http://www.w3.org/2001/XMLSchema#time",
231                                                                     "otherAttributes": {
232                                                                     }
233                                                                 },
234                                                                 "nil": false,
235                                                                 "globalScope": true,
236                                                                 "typeSubstituted": false
237                                                             },
238                                                             {
239                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
240                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
241                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
242                                                                 "value": {
243                                                                     "content": [
244                                                                         "10:00"
245                                                                     ],
246                                                                     "dataType": "http://www.w3.org/2001/XMLSchema#time",
247                                                                     "otherAttributes": {
248                                                                     }
249                                                                 },
250                                                                 "nil": false,
251                                                                 "globalScope": true,
252                                                                 "typeSubstituted": false
253                                                             }
254                                                         ],
255                                                         "functionId": "urn:oasis:names:tc:xacml:2.0:function:time-in-range"
256                                                     },
257                                                     "nil": false,
258                                                     "globalScope": true,
259                                                     "typeSubstituted": false
260                                                 },
261                                                 {
262                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
263                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
264                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
265                                                     "value": {
266                                                         "description": null,
267                                                         "expression": [
268                                                             {
269                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Function",
270                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.FunctionType",
271                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
272                                                                 "value": {
273                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-equal"
274                                                                 },
275                                                                 "nil": false,
276                                                                 "globalScope": true,
277                                                                 "typeSubstituted": false
278                                                             },
279                                                             {
280                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
281                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
282                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
283                                                                 "value": {
284                                                                     "description": null,
285                                                                     "expression": [
286                                                                         {
287                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
288                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
289                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
290                                                                             "value": {
291                                                                                 "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
292                                                                                 "attributeId": "target",
293                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
294                                                                                 "issuer": null,
295                                                                                 "mustBePresent": false
296                                                                             },
297                                                                             "nil": false,
298                                                                             "globalScope": true,
299                                                                             "typeSubstituted": false
300                                                                         }
301                                                                     ],
302                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"
303                                                                 },
304                                                                 "nil": false,
305                                                                 "globalScope": true,
306                                                                 "typeSubstituted": false
307                                                             },
308                                                             {
309                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
310                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
311                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
312                                                                 "value": {
313                                                                     "description": null,
314                                                                     "expression": [
315                                                                         {
316                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
317                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
318                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
319                                                                             "value": {
320                                                                                 "content": [
321                                                                                     "testBL2"
322                                                                                 ],
323                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
324                                                                                 "otherAttributes": {
325                                                                                 }
326                                                                             },
327                                                                             "nil": false,
328                                                                             "globalScope": true,
329                                                                             "typeSubstituted": false
330                                                                         },
331                                                                         {
332                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
333                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
334                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
335                                                                             "value": {
336                                                                                 "content": [
337                                                                                     "testBL3"
338                                                                                 ],
339                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
340                                                                                 "otherAttributes": {
341                                                                                 }
342                                                                             },
343                                                                             "nil": false,
344                                                                             "globalScope": true,
345                                                                             "typeSubstituted": false
346                                                                         },
347                                                                         {
348                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
349                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
350                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
351                                                                             "value": {
352                                                                                 "content": [
353                                                                                     "testBL4"
354                                                                                 ],
355                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
356                                                                                 "otherAttributes": {
357                                                                                 }
358                                                                             },
359                                                                             "nil": false,
360                                                                             "globalScope": true,
361                                                                             "typeSubstituted": false
362                                                                         }
363                                                                     ],
364                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-bag"
365                                                                 },
366                                                                 "nil": false,
367                                                                 "globalScope": true,
368                                                                 "typeSubstituted": false
369                                                             }
370                                                         ],
371                                                         "functionId": "urn:oasis:names:tc:xacml:3.0:function:any-of"
372                                                     },
373                                                     "nil": false,
374                                                     "globalScope": true,
375                                                     "typeSubstituted": false
376                                                 }
377                                             ],
378                                             "functionId": "urn:oasis:names:tc:xacml:1.0:function:and"
379                                         },
380                                         "nil": false,
381                                         "globalScope": true,
382                                         "typeSubstituted": false
383                                     }
384                                 ],
385                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
386                             },
387                             "nil": false,
388                             "globalScope": true,
389                             "typeSubstituted": false
390                         }
391                     },
392                     "obligationExpressions": null,
393                     "adviceExpressions": null,
394                     "ruleId": "urn:com:xacml:rule:id:284d9393-f861-4250-b62d-fc36640a363a",
395                     "effect": "PERMIT"
396                 },
397                 {
398                     "description": null,
399                     "target": {
400                         "anyOf": [
401                             {
402                                 "allOf": [
403                                     {
404                                         "match": [
405                                             {
406                                                 "attributeValue": {
407                                                     "content": [
408                                                         "DECIDE"
409                                                     ],
410                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
411                                                     "otherAttributes": {
412                                                     }
413                                                 },
414                                                 "attributeDesignator": {
415                                                     "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:action",
416                                                     "attributeId": "urn:oasis:names:tc:xacml:1.0:action:action-id",
417                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
418                                                     "issuer": null,
419                                                     "mustBePresent": false
420                                                 },
421                                                 "attributeSelector": null,
422                                                 "matchId": "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"
423                                             }
424                                         ]
425                                     }
426                                 ]
427                             }
428                         ]
429                     },
430                     "condition": {
431                         "expression": {
432                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
433                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
434                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
435                             "value": {
436                                 "description": null,
437                                 "expression": [
438                                     {
439                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
440                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
441                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
442                                         "value": {
443                                             "description": null,
444                                             "expression": [
445                                                 {
446                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
447                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
448                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
449                                                     "value": {
450                                                         "description": null,
451                                                         "expression": [
452                                                             {
453                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
454                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
455                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
456                                                                 "value": {
457                                                                     "description": null,
458                                                                     "expression": [
459                                                                         {
460                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
461                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
462                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
463                                                                             "value": {
464                                                                                 "description": null,
465                                                                                 "expression": [
466                                                                                     {
467                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
468                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
469                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
470                                                                                         "value": {
471                                                                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:environment",
472                                                                                             "attributeId": "urn:oasis:names:tc:xacml:1.0:environment:current-time",
473                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#time",
474                                                                                             "issuer": null,
475                                                                                             "mustBePresent": false
476                                                                                         },
477                                                                                         "nil": false,
478                                                                                         "globalScope": true,
479                                                                                         "typeSubstituted": false
480                                                                                     }
481                                                                                 ],
482                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"
483                                                                             },
484                                                                             "nil": false,
485                                                                             "globalScope": true,
486                                                                             "typeSubstituted": false
487                                                                         },
488                                                                         {
489                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
490                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
491                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
492                                                                             "value": {
493                                                                                 "content": [
494                                                                                     "5:00"
495                                                                                 ],
496                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
497                                                                                 "otherAttributes": {
498                                                                                 }
499                                                                             },
500                                                                             "nil": false,
501                                                                             "globalScope": true,
502                                                                             "typeSubstituted": false
503                                                                         },
504                                                                         {
505                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
506                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
507                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
508                                                                             "value": {
509                                                                                 "content": [
510                                                                                     "10:00"
511                                                                                 ],
512                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
513                                                                                 "otherAttributes": {
514                                                                                 }
515                                                                             },
516                                                                             "nil": false,
517                                                                             "globalScope": true,
518                                                                             "typeSubstituted": false
519                                                                         }
520                                                                     ],
521                                                                     "functionId": "urn:oasis:names:tc:xacml:2.0:function:time-in-range"
522                                                                 },
523                                                                 "nil": false,
524                                                                 "globalScope": true,
525                                                                 "typeSubstituted": false
526                                                             },
527                                                             {
528                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
529                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
530                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
531                                                                 "value": {
532                                                                     "description": null,
533                                                                     "expression": [
534                                                                         {
535                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Function",
536                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.FunctionType",
537                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
538                                                                             "value": {
539                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-equal"
540                                                                             },
541                                                                             "nil": false,
542                                                                             "globalScope": true,
543                                                                             "typeSubstituted": false
544                                                                         },
545                                                                         {
546                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
547                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
548                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
549                                                                             "value": {
550                                                                                 "description": null,
551                                                                                 "expression": [
552                                                                                     {
553                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
554                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
555                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
556                                                                                         "value": {
557                                                                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
558                                                                                             "attributeId": "target",
559                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
560                                                                                             "issuer": null,
561                                                                                             "mustBePresent": false
562                                                                                         },
563                                                                                         "nil": false,
564                                                                                         "globalScope": true,
565                                                                                         "typeSubstituted": false
566                                                                                     }
567                                                                                 ],
568                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"
569                                                                             },
570                                                                             "nil": false,
571                                                                             "globalScope": true,
572                                                                             "typeSubstituted": false
573                                                                         },
574                                                                         {
575                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
576                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
577                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
578                                                                             "value": {
579                                                                                 "description": null,
580                                                                                 "expression": [
581                                                                                     {
582                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
583                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
584                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
585                                                                                         "value": {
586                                                                                             "content": [
587                                                                                                 "testBL2"
588                                                                                             ],
589                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
590                                                                                             "otherAttributes": {
591                                                                                             }
592                                                                                         },
593                                                                                         "nil": false,
594                                                                                         "globalScope": true,
595                                                                                         "typeSubstituted": false
596                                                                                     },
597                                                                                     {
598                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
599                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
600                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
601                                                                                         "value": {
602                                                                                             "content": [
603                                                                                                 "testBL3"
604                                                                                             ],
605                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
606                                                                                             "otherAttributes": {
607                                                                                             }
608                                                                                         },
609                                                                                         "nil": false,
610                                                                                         "globalScope": true,
611                                                                                         "typeSubstituted": false
612                                                                                     },
613                                                                                     {
614                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
615                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
616                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
617                                                                                         "value": {
618                                                                                             "content": [
619                                                                                                 "testBL4"
620                                                                                             ],
621                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
622                                                                                             "otherAttributes": {
623                                                                                             }
624                                                                                         },
625                                                                                         "nil": false,
626                                                                                         "globalScope": true,
627                                                                                         "typeSubstituted": false
628                                                                                     }
629                                                                                 ],
630                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-bag"
631                                                                             },
632                                                                             "nil": false,
633                                                                             "globalScope": true,
634                                                                             "typeSubstituted": false
635                                                                         }
636                                                                     ],
637                                                                     "functionId": "urn:oasis:names:tc:xacml:3.0:function:any-of"
638                                                                 },
639                                                                 "nil": false,
640                                                                 "globalScope": true,
641                                                                 "typeSubstituted": false
642                                                             }
643                                                         ],
644                                                         "functionId": "urn:oasis:names:tc:xacml:1.0:function:and"
645                                                     },
646                                                     "nil": false,
647                                                     "globalScope": true,
648                                                     "typeSubstituted": false
649                                                 }
650                                             ],
651                                             "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
652                                         },
653                                         "nil": false,
654                                         "globalScope": true,
655                                         "typeSubstituted": false
656                                     }
657                                 ],
658                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
659                             },
660                             "nil": false,
661                             "globalScope": true,
662                             "typeSubstituted": false
663                         }
664                     },
665                     "obligationExpressions": null,
666                     "adviceExpressions": {
667                         "adviceExpression": [
668                             {
669                                 "attributeAssignmentExpression": [
670                                     {
671                                         "expression": {
672                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
673                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
674                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
675                                             "value": {
676                                                 "content": [
677                                                     "Denied!"
678                                                 ],
679                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
680                                                 "otherAttributes": {
681                                                 }
682                                             },
683                                             "nil": false,
684                                             "globalScope": true,
685                                             "typeSubstituted": false
686                                         },
687                                         "attributeId": "guard.response",
688                                         "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
689                                         "issuer": null
690                                     }
691                                 ],
692                                 "adviceId": "GUARD_BL_YAML",
693                                 "appliesTo": "DENY"
694                             }
695                         ]
696                     },
697                     "ruleId": "urn:com:xacml:rule:id:284d9393-f861-4250-b62d-fc36640a363a",
698                     "effect": "DENY"
699                 }
700             ],
701             "obligationExpressions": null,
702             "adviceExpressions": null,
703             "policyId": "urn:com:xacml:policy:id:d56af069-6cf1-430c-ba07-e26602e06a52",
704             "version": "4",
705             "ruleCombiningAlgId": "urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides",
706             "maxDelegationDepth": null
707         },
708         "policyName": "SampelGuardBLOne",
709         "configBodyData": null,
710         "configType": null,
711         "policyID": null,
712         "policyType": "Decision",
713         "comboPolicyType": null,
714         "configPolicyType": null,
715         "policyDescription": "SampelGuardBLOne",
716         "onapName": "Test",
717         "configName": null,
718         "ruleID": null,
719         "parentPath": null,
720         "adminNotification": null,
721         "policyData": {
722             "description": "SampelGuardBLOne@CreatedBy:demo@CreatedBy:@ModifiedBy:demo@ModifiedBy:",
723             "policyIssuer": null,
724             "policyDefaults": null,
725             "target": {
726                 "anyOf": [
727                     {
728                         "allOf": [
729                             {
730                                 "match": [
731                                     {
732                                         "attributeValue": {
733                                             "content": [
734                                                 "com.Decision_SampelGuardBLOne.4.xml"
735                                             ],
736                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
737                                             "otherAttributes": {
738                                             }
739                                         },
740                                         "attributeDesignator": {
741                                             "category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
742                                             "attributeId": "PolicyName",
743                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
744                                             "issuer": null,
745                                             "mustBePresent": false
746                                         },
747                                         "attributeSelector": null,
748                                         "matchId": "org.onap.function.regex-match"
749                                     }
750                                 ]
751                             },
752                             {
753                                 "match": [
754                                     {
755                                         "attributeValue": {
756                                             "content": [
757                                                 "Test"
758                                             ],
759                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
760                                             "otherAttributes": {
761                                             }
762                                         },
763                                         "attributeDesignator": {
764                                             "category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
765                                             "attributeId": "ONAPName",
766                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
767                                             "issuer": null,
768                                             "mustBePresent": false
769                                         },
770                                         "attributeSelector": null,
771                                         "matchId": "org.onap.function.regex-match"
772                                     },
773                                     {
774                                         "attributeValue": {
775                                             "content": [
776                                                 "(?i)testActor"
777                                             ],
778                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
779                                             "otherAttributes": {
780                                             }
781                                         },
782                                         "attributeDesignator": {
783                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
784                                             "attributeId": "actor",
785                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
786                                             "issuer": null,
787                                             "mustBePresent": false
788                                         },
789                                         "attributeSelector": null,
790                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
791                                     },
792                                     {
793                                         "attributeValue": {
794                                             "content": [
795                                                 "(?i)testRecipe"
796                                             ],
797                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
798                                             "otherAttributes": {
799                                             }
800                                         },
801                                         "attributeDesignator": {
802                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
803                                             "attributeId": "recipe",
804                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
805                                             "issuer": null,
806                                             "mustBePresent": false
807                                         },
808                                         "attributeSelector": null,
809                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
810                                     },
811                                     {
812                                         "attributeValue": {
813                                             "content": [
814                                                 "testCLName"
815                                             ],
816                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
817                                             "otherAttributes": {
818                                             }
819                                         },
820                                         "attributeDesignator": {
821                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
822                                             "attributeId": "clname",
823                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
824                                             "issuer": null,
825                                             "mustBePresent": false
826                                         },
827                                         "attributeSelector": null,
828                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
829                                     },
830                                     {
831                                         "attributeValue": {
832                                             "content": [
833                                                 "Use Manual Entry"
834                                             ],
835                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
836                                             "otherAttributes": {
837                                             }
838                                         },
839                                         "attributeDesignator": {
840                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
841                                             "attributeId": "blackListEntryType",
842                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
843                                             "issuer": null,
844                                             "mustBePresent": false
845                                         },
846                                         "attributeSelector": null,
847                                         "matchId": "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"
848                                     }
849                                 ]
850                             }
851                         ]
852                     }
853                 ]
854             },
855             "combinerParametersOrRuleCombinerParametersOrVariableDefinition": [
856                 {
857                     "description": null,
858                     "target": {
859                         "anyOf": [
860                             {
861                                 "allOf": [
862                                     {
863                                         "match": [
864                                             {
865                                                 "attributeValue": {
866                                                     "content": [
867                                                         "DECIDE"
868                                                     ],
869                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
870                                                     "otherAttributes": {
871                                                     }
872                                                 },
873                                                 "attributeDesignator": {
874                                                     "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:action",
875                                                     "attributeId": "urn:oasis:names:tc:xacml:1.0:action:action-id",
876                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
877                                                     "issuer": null,
878                                                     "mustBePresent": false
879                                                 },
880                                                 "attributeSelector": null,
881                                                 "matchId": "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"
882                                             }
883                                         ]
884                                     }
885                                 ]
886                             }
887                         ]
888                     },
889                     "condition": {
890                         "expression": {
891                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
892                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
893                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
894                             "value": {
895                                 "description": null,
896                                 "expression": [
897                                     {
898                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
899                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
900                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
901                                         "value": {
902                                             "description": null,
903                                             "expression": [
904                                                 {
905                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
906                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
907                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
908                                                     "value": {
909                                                         "description": null,
910                                                         "expression": [
911                                                             {
912                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
913                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
914                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
915                                                                 "value": {
916                                                                     "description": null,
917                                                                     "expression": [
918                                                                         {
919                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
920                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
921                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
922                                                                             "value": {
923                                                                                 "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:environment",
924                                                                                 "attributeId": "urn:oasis:names:tc:xacml:1.0:environment:current-time",
925                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
926                                                                                 "issuer": null,
927                                                                                 "mustBePresent": false
928                                                                             },
929                                                                             "nil": false,
930                                                                             "globalScope": true,
931                                                                             "typeSubstituted": false
932                                                                         }
933                                                                     ],
934                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"
935                                                                 },
936                                                                 "nil": false,
937                                                                 "globalScope": true,
938                                                                 "typeSubstituted": false
939                                                             },
940                                                             {
941                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
942                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
943                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
944                                                                 "value": {
945                                                                     "content": [
946                                                                         "5:00"
947                                                                     ],
948                                                                     "dataType": "http://www.w3.org/2001/XMLSchema#time",
949                                                                     "otherAttributes": {
950                                                                     }
951                                                                 },
952                                                                 "nil": false,
953                                                                 "globalScope": true,
954                                                                 "typeSubstituted": false
955                                                             },
956                                                             {
957                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
958                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
959                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
960                                                                 "value": {
961                                                                     "content": [
962                                                                         "10:00"
963                                                                     ],
964                                                                     "dataType": "http://www.w3.org/2001/XMLSchema#time",
965                                                                     "otherAttributes": {
966                                                                     }
967                                                                 },
968                                                                 "nil": false,
969                                                                 "globalScope": true,
970                                                                 "typeSubstituted": false
971                                                             }
972                                                         ],
973                                                         "functionId": "urn:oasis:names:tc:xacml:2.0:function:time-in-range"
974                                                     },
975                                                     "nil": false,
976                                                     "globalScope": true,
977                                                     "typeSubstituted": false
978                                                 },
979                                                 {
980                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
981                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
982                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
983                                                     "value": {
984                                                         "description": null,
985                                                         "expression": [
986                                                             {
987                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Function",
988                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.FunctionType",
989                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
990                                                                 "value": {
991                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-equal"
992                                                                 },
993                                                                 "nil": false,
994                                                                 "globalScope": true,
995                                                                 "typeSubstituted": false
996                                                             },
997                                                             {
998                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
999                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1000                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1001                                                                 "value": {
1002                                                                     "description": null,
1003                                                                     "expression": [
1004                                                                         {
1005                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
1006                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
1007                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1008                                                                             "value": {
1009                                                                                 "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
1010                                                                                 "attributeId": "target",
1011                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
1012                                                                                 "issuer": null,
1013                                                                                 "mustBePresent": false
1014                                                                             },
1015                                                                             "nil": false,
1016                                                                             "globalScope": true,
1017                                                                             "typeSubstituted": false
1018                                                                         }
1019                                                                     ],
1020                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"
1021                                                                 },
1022                                                                 "nil": false,
1023                                                                 "globalScope": true,
1024                                                                 "typeSubstituted": false
1025                                                             },
1026                                                             {
1027                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1028                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1029                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1030                                                                 "value": {
1031                                                                     "description": null,
1032                                                                     "expression": [
1033                                                                         {
1034                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1035                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1036                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1037                                                                             "value": {
1038                                                                                 "content": [
1039                                                                                     "testBL2"
1040                                                                                 ],
1041                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
1042                                                                                 "otherAttributes": {
1043                                                                                 }
1044                                                                             },
1045                                                                             "nil": false,
1046                                                                             "globalScope": true,
1047                                                                             "typeSubstituted": false
1048                                                                         },
1049                                                                         {
1050                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1051                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1052                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1053                                                                             "value": {
1054                                                                                 "content": [
1055                                                                                     "testBL3"
1056                                                                                 ],
1057                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
1058                                                                                 "otherAttributes": {
1059                                                                                 }
1060                                                                             },
1061                                                                             "nil": false,
1062                                                                             "globalScope": true,
1063                                                                             "typeSubstituted": false
1064                                                                         },
1065                                                                         {
1066                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1067                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1068                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1069                                                                             "value": {
1070                                                                                 "content": [
1071                                                                                     "testBL4"
1072                                                                                 ],
1073                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
1074                                                                                 "otherAttributes": {
1075                                                                                 }
1076                                                                             },
1077                                                                             "nil": false,
1078                                                                             "globalScope": true,
1079                                                                             "typeSubstituted": false
1080                                                                         }
1081                                                                     ],
1082                                                                     "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-bag"
1083                                                                 },
1084                                                                 "nil": false,
1085                                                                 "globalScope": true,
1086                                                                 "typeSubstituted": false
1087                                                             }
1088                                                         ],
1089                                                         "functionId": "urn:oasis:names:tc:xacml:3.0:function:any-of"
1090                                                     },
1091                                                     "nil": false,
1092                                                     "globalScope": true,
1093                                                     "typeSubstituted": false
1094                                                 }
1095                                             ],
1096                                             "functionId": "urn:oasis:names:tc:xacml:1.0:function:and"
1097                                         },
1098                                         "nil": false,
1099                                         "globalScope": true,
1100                                         "typeSubstituted": false
1101                                     }
1102                                 ],
1103                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
1104                             },
1105                             "nil": false,
1106                             "globalScope": true,
1107                             "typeSubstituted": false
1108                         }
1109                     },
1110                     "obligationExpressions": null,
1111                     "adviceExpressions": null,
1112                     "ruleId": "urn:com:xacml:rule:id:284d9393-f861-4250-b62d-fc36640a363a",
1113                     "effect": "PERMIT"
1114                 },
1115                 {
1116                     "description": null,
1117                     "target": {
1118                         "anyOf": [
1119                             {
1120                                 "allOf": [
1121                                     {
1122                                         "match": [
1123                                             {
1124                                                 "attributeValue": {
1125                                                     "content": [
1126                                                         "DECIDE"
1127                                                     ],
1128                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
1129                                                     "otherAttributes": {
1130                                                     }
1131                                                 },
1132                                                 "attributeDesignator": {
1133                                                     "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:action",
1134                                                     "attributeId": "urn:oasis:names:tc:xacml:1.0:action:action-id",
1135                                                     "dataType": "http://www.w3.org/2001/XMLSchema#string",
1136                                                     "issuer": null,
1137                                                     "mustBePresent": false
1138                                                 },
1139                                                 "attributeSelector": null,
1140                                                 "matchId": "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"
1141                                             }
1142                                         ]
1143                                     }
1144                                 ]
1145                             }
1146                         ]
1147                     },
1148                     "condition": {
1149                         "expression": {
1150                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1151                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1152                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1153                             "value": {
1154                                 "description": null,
1155                                 "expression": [
1156                                     {
1157                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1158                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1159                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1160                                         "value": {
1161                                             "description": null,
1162                                             "expression": [
1163                                                 {
1164                                                     "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1165                                                     "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1166                                                     "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1167                                                     "value": {
1168                                                         "description": null,
1169                                                         "expression": [
1170                                                             {
1171                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1172                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1173                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1174                                                                 "value": {
1175                                                                     "description": null,
1176                                                                     "expression": [
1177                                                                         {
1178                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1179                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1180                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1181                                                                             "value": {
1182                                                                                 "description": null,
1183                                                                                 "expression": [
1184                                                                                     {
1185                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
1186                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
1187                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1188                                                                                         "value": {
1189                                                                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:environment",
1190                                                                                             "attributeId": "urn:oasis:names:tc:xacml:1.0:environment:current-time",
1191                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#time",
1192                                                                                             "issuer": null,
1193                                                                                             "mustBePresent": false
1194                                                                                         },
1195                                                                                         "nil": false,
1196                                                                                         "globalScope": true,
1197                                                                                         "typeSubstituted": false
1198                                                                                     }
1199                                                                                 ],
1200                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"
1201                                                                             },
1202                                                                             "nil": false,
1203                                                                             "globalScope": true,
1204                                                                             "typeSubstituted": false
1205                                                                         },
1206                                                                         {
1207                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1208                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1209                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1210                                                                             "value": {
1211                                                                                 "content": [
1212                                                                                     "5:00"
1213                                                                                 ],
1214                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
1215                                                                                 "otherAttributes": {
1216                                                                                 }
1217                                                                             },
1218                                                                             "nil": false,
1219                                                                             "globalScope": true,
1220                                                                             "typeSubstituted": false
1221                                                                         },
1222                                                                         {
1223                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1224                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1225                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1226                                                                             "value": {
1227                                                                                 "content": [
1228                                                                                     "10:00"
1229                                                                                 ],
1230                                                                                 "dataType": "http://www.w3.org/2001/XMLSchema#time",
1231                                                                                 "otherAttributes": {
1232                                                                                 }
1233                                                                             },
1234                                                                             "nil": false,
1235                                                                             "globalScope": true,
1236                                                                             "typeSubstituted": false
1237                                                                         }
1238                                                                     ],
1239                                                                     "functionId": "urn:oasis:names:tc:xacml:2.0:function:time-in-range"
1240                                                                 },
1241                                                                 "nil": false,
1242                                                                 "globalScope": true,
1243                                                                 "typeSubstituted": false
1244                                                             },
1245                                                             {
1246                                                                 "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1247                                                                 "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1248                                                                 "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1249                                                                 "value": {
1250                                                                     "description": null,
1251                                                                     "expression": [
1252                                                                         {
1253                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Function",
1254                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.FunctionType",
1255                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1256                                                                             "value": {
1257                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-equal"
1258                                                                             },
1259                                                                             "nil": false,
1260                                                                             "globalScope": true,
1261                                                                             "typeSubstituted": false
1262                                                                         },
1263                                                                         {
1264                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1265                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1266                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1267                                                                             "value": {
1268                                                                                 "description": null,
1269                                                                                 "expression": [
1270                                                                                     {
1271                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeDesignator",
1272                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType",
1273                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1274                                                                                         "value": {
1275                                                                                             "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
1276                                                                                             "attributeId": "target",
1277                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
1278                                                                                             "issuer": null,
1279                                                                                             "mustBePresent": false
1280                                                                                         },
1281                                                                                         "nil": false,
1282                                                                                         "globalScope": true,
1283                                                                                         "typeSubstituted": false
1284                                                                                     }
1285                                                                                 ],
1286                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"
1287                                                                             },
1288                                                                             "nil": false,
1289                                                                             "globalScope": true,
1290                                                                             "typeSubstituted": false
1291                                                                         },
1292                                                                         {
1293                                                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Apply",
1294                                                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.ApplyType",
1295                                                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1296                                                                             "value": {
1297                                                                                 "description": null,
1298                                                                                 "expression": [
1299                                                                                     {
1300                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1301                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1302                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1303                                                                                         "value": {
1304                                                                                             "content": [
1305                                                                                                 "testBL2"
1306                                                                                             ],
1307                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
1308                                                                                             "otherAttributes": {
1309                                                                                             }
1310                                                                                         },
1311                                                                                         "nil": false,
1312                                                                                         "globalScope": true,
1313                                                                                         "typeSubstituted": false
1314                                                                                     },
1315                                                                                     {
1316                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1317                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1318                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1319                                                                                         "value": {
1320                                                                                             "content": [
1321                                                                                                 "testBL3"
1322                                                                                             ],
1323                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
1324                                                                                             "otherAttributes": {
1325                                                                                             }
1326                                                                                         },
1327                                                                                         "nil": false,
1328                                                                                         "globalScope": true,
1329                                                                                         "typeSubstituted": false
1330                                                                                     },
1331                                                                                     {
1332                                                                                         "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1333                                                                                         "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1334                                                                                         "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1335                                                                                         "value": {
1336                                                                                             "content": [
1337                                                                                                 "testBL4"
1338                                                                                             ],
1339                                                                                             "dataType": "http://www.w3.org/2001/XMLSchema#string",
1340                                                                                             "otherAttributes": {
1341                                                                                             }
1342                                                                                         },
1343                                                                                         "nil": false,
1344                                                                                         "globalScope": true,
1345                                                                                         "typeSubstituted": false
1346                                                                                     }
1347                                                                                 ],
1348                                                                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:string-bag"
1349                                                                             },
1350                                                                             "nil": false,
1351                                                                             "globalScope": true,
1352                                                                             "typeSubstituted": false
1353                                                                         }
1354                                                                     ],
1355                                                                     "functionId": "urn:oasis:names:tc:xacml:3.0:function:any-of"
1356                                                                 },
1357                                                                 "nil": false,
1358                                                                 "globalScope": true,
1359                                                                 "typeSubstituted": false
1360                                                             }
1361                                                         ],
1362                                                         "functionId": "urn:oasis:names:tc:xacml:1.0:function:and"
1363                                                     },
1364                                                     "nil": false,
1365                                                     "globalScope": true,
1366                                                     "typeSubstituted": false
1367                                                 }
1368                                             ],
1369                                             "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
1370                                         },
1371                                         "nil": false,
1372                                         "globalScope": true,
1373                                         "typeSubstituted": false
1374                                     }
1375                                 ],
1376                                 "functionId": "urn:oasis:names:tc:xacml:1.0:function:not"
1377                             },
1378                             "nil": false,
1379                             "globalScope": true,
1380                             "typeSubstituted": false
1381                         }
1382                     },
1383                     "obligationExpressions": null,
1384                     "adviceExpressions": {
1385                         "adviceExpression": [
1386                             {
1387                                 "attributeAssignmentExpression": [
1388                                     {
1389                                         "expression": {
1390                                             "name": "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AttributeValue",
1391                                             "declaredType": "oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeValueType",
1392                                             "scope": "javax.xml.bind.JAXBElement$GlobalScope",
1393                                             "value": {
1394                                                 "content": [
1395                                                     "Denied!"
1396                                                 ],
1397                                                 "dataType": "http://www.w3.org/2001/XMLSchema#string",
1398                                                 "otherAttributes": {
1399                                                 }
1400                                             },
1401                                             "nil": false,
1402                                             "globalScope": true,
1403                                             "typeSubstituted": false
1404                                         },
1405                                         "attributeId": "guard.response",
1406                                         "category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
1407                                         "issuer": null
1408                                     }
1409                                 ],
1410                                 "adviceId": "GUARD_BL_YAML",
1411                                 "appliesTo": "DENY"
1412                             }
1413                         ]
1414                     },
1415                     "ruleId": "urn:com:xacml:rule:id:284d9393-f861-4250-b62d-fc36640a363a",
1416                     "effect": "DENY"
1417                 }
1418             ],
1419             "obligationExpressions": null,
1420             "adviceExpressions": null,
1421             "policyId": "urn:com:xacml:policy:id:d56af069-6cf1-430c-ba07-e26602e06a52",
1422             "version": "4",
1423             "ruleCombiningAlgId": "urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides",
1424             "maxDelegationDepth": null
1425         },
1426         "gitPath": null,
1427         "readOnly": false,
1428         "configHome": null,
1429         "configUrl": null,
1430         "finalPolicyPath": null,
1431         "version": null,
1432         "jsonBody": null,
1433         "apiflag": null,
1434         "prevJsonBody": null,
1435         "highestVersion": null,
1436         "entityManagerFactory": null,
1437         "policyExists": false,
1438         "oldPolicyFileName": "Decision_SampelGuardBLOne",
1439         "userId": null,
1440         "newFileName": null,
1441         "clWarning": null,
1442         "newCLName": null,
1443         "existingCLName": null,
1444         "onapNameField": null,
1445         "jsonBodyData": null,
1446         "dirPath": null,
1447         "configBodyPath": null,
1448         "attributes": [
1449         ],
1450         "settings": [
1451         ],
1452         "ruleAlgorithmschoices": [
1453         ],
1454         "serviceTypePolicyName": null,
1455         "verticaMetrics": null,
1456         "description": null,
1457         "attributeFields": null,
1458         "clearTimeOut": null,
1459         "trapMaxAge": null,
1460         "verificationclearTimeOut": null,
1461         "dynamicLayoutMap": null,
1462         "trapDatas": null,
1463         "faultDatas": null,
1464         "fwPolicyType": null,
1465         "fwattributes": null,
1466         "parentForChild": null,
1467         "securityZone": null,
1468         "ruleCombiningAlgId": null,
1469         "dynamicFieldConfigAttributes": null,
1470         "dynamicSettingsMap": null,
1471         "dropDownMap": null,
1472         "actionPerformer": null,
1473         "actionAttribute": null,
1474         "dynamicRuleAlgorithmLabels": null,
1475         "dynamicRuleAlgorithmCombo": null,
1476         "dynamicRuleAlgorithmField1": null,
1477         "dynamicRuleAlgorithmField2": null,
1478         "dynamicVariableList": null,
1479         "dataTypeList": null,
1480         "actionAttributeValue": null,
1481         "ruleProvider": "GUARD_BL_YAML",
1482         "actionBody": null,
1483         "actionDictHeader": null,
1484         "actionDictType": null,
1485         "actionDictUrl": null,
1486         "actionDictMethod": null,
1487         "yamlparams": {
1488             "actor": "testActor",
1489             "recipe": "testRecipe",
1490             "clname": "testCLName",
1491             "limit": null,
1492             "timeWindow": null,
1493             "timeUnits": null,
1494             "guardActiveStart": "5:00",
1495             "guardActiveEnd": "10:00",
1496             "blackList": [
1497                 "testBL2",
1498                 "testBL3",
1499                 "testBL4"
1500             ],
1501             "targets": null,
1502             "blackListEntryType": "Use Manual Entry"
1503         },
1504         "blackListEntries": [
1505         ],
1506         "appendBlackListEntries": [
1507         ],
1508         "rainyday": {
1509             "serviceType": null,
1510             "vnfType": null,
1511             "bbid": null,
1512             "workstep": null,
1513             "treatmentTableChoices": [
1514             ],
1515             "errorcode": null,
1516             "treatment": null
1517         },
1518         "rainydayMap": null,
1519         "errorCodeList": null,
1520         "treatmentList": null,
1521         "serviceType": null,
1522         "uuid": null,
1523         "location": null,
1524         "priority": null,
1525         "msLocation": null,
1526         "policyJSON": null,
1527         "ruleName": null,
1528         "brmsParamBody": null,
1529         "brmsController": null,
1530         "brmsDependency": null,
1531         "ruleData": null,
1532         "ruleListData": null,
1533         "drlRuleAndUIParams": null,
1534         "policyScope": null,
1535         "providerComboBox": null,
1536         "riskType": null,
1537         "riskLevel": null,
1538         "guard": null,
1539         "ttlDate": null,
1540         "matching": null,
1541         "triggerSignatures": null,
1542         "symptomSignatures": null,
1543         "logicalConnector": null,
1544         "policyStatus": null,
1545         "gocServerScope": null,
1546         "supressionType": null,
1547         "editPolicy": true,
1548         "domainDir": "com",
1549         "validData": false,
1550         "draft": false,
1551         "viewPolicy": false,
1552         "blackListEntryType": "Use Manual Entry"
1553     },
1554     "date": "2018-03-27 13:36:12.0",
1555     "version": 4
1556 }