Policy TestSuite Enabled
[policy/engine.git] / ECOMP-PAP-REST / src / main / java / org / openecomp / policy / pap / xacml / rest / service / DictionaryService.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP-PAP-REST
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.openecomp.policy.pap.xacml.rest.service;
21
22 import javax.servlet.http.HttpServletRequest;
23 import javax.servlet.http.HttpServletResponse;
24
25 import org.openecomp.policy.common.logging.flexlogger.FlexLogger;
26 import org.openecomp.policy.common.logging.flexlogger.Logger;
27 import org.openecomp.policy.pap.xacml.rest.controller.ActionPolicyDictionaryController;
28 import org.openecomp.policy.pap.xacml.rest.controller.BRMSDictionaryController;
29 import org.openecomp.policy.pap.xacml.rest.controller.ClosedLoopDictionaryController;
30 import org.openecomp.policy.pap.xacml.rest.controller.DecisionPolicyDictionaryController;
31 import org.openecomp.policy.pap.xacml.rest.controller.DescriptiveDictionaryController;
32 import org.openecomp.policy.pap.xacml.rest.controller.DictionaryController;
33 import org.openecomp.policy.pap.xacml.rest.controller.EnforcerDictionaryController;
34 import org.openecomp.policy.pap.xacml.rest.controller.FirewallDictionaryController;
35 import org.openecomp.policy.pap.xacml.rest.controller.MicroServiceDictionaryController;
36 import org.openecomp.policy.pap.xacml.rest.controller.PolicyScopeDictionaryController;
37 import org.openecomp.policy.pap.xacml.rest.controller.SafePolicyController;
38 import org.openecomp.policy.xacml.api.XACMLErrorConstants;
39 import org.springframework.stereotype.Service;
40 import org.springframework.web.servlet.ModelAndView;
41
42
43 @Service("DictionaryService")
44 public class DictionaryService {
45         
46         private static final Logger LOGGER      = FlexLogger.getLogger(DictionaryService.class);
47
48         /*
49          * Methods that call the controller method directly to Save and Update dictionary data
50          */
51         public String saveEcompDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
52                 
53                 DictionaryController dictionary = new DictionaryController();
54                 String responseString = null;
55                 try {
56                         ModelAndView result = dictionary.saveEcompDictionary(request, response);
57                         responseString = result.getViewName();
58                         
59                 } catch (Exception e) {
60                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
61                 }
62                 
63                 return responseString;
64                 
65         }
66         
67         public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
68                 
69                 DictionaryController dictionary = new DictionaryController();
70                 String responseString = null;
71                 try {
72                         ModelAndView result = dictionary.saveAttributeDictionary(request, response);
73                         responseString = result.getViewName();
74                 
75                 } catch (Exception e) {
76                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
77                 }
78                 
79                 return responseString;
80         }
81         
82         public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
83                 
84                 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
85                 String responseString = null;
86                 try {
87                         ModelAndView result = action.saveActionPolicyDictionary(request, response);
88                         responseString = result.getViewName();
89                 
90                 } catch (Exception e) {
91                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
92                 }
93                 
94                 return responseString;
95         }
96         
97         public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
98                 
99                 BRMSDictionaryController dictionary = new BRMSDictionaryController();
100                 String responseString = null;
101                 try {
102                         ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
103                         responseString = result.getViewName();
104                 
105                 } catch (Exception e) {
106                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
107                 }
108                 
109                 return responseString;
110         }
111         
112         public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
113                 
114                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
115                 String responseString = null;
116                 try {
117                         ModelAndView result = dictionary.saveVSCLAction(request, response);
118                         responseString = result.getViewName();
119                 
120                 } catch (Exception e) {
121                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
122                 }
123                 
124                 return responseString;
125         }
126         
127         public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
128                 
129                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
130                 String responseString = null;
131                 try {
132                         ModelAndView result = dictionary.saveVnfType(request, response);
133                         responseString = result.getViewName();
134                 
135                 } catch (Exception e) {
136                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
137                 }
138                 
139                 return responseString;
140         }
141         
142         public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
143                 
144                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
145                 String responseString = null;
146                 try {
147                         ModelAndView result = dictionary.savePEPOptions(request, response);
148                         responseString = result.getViewName();
149                 
150                 } catch (Exception e) {
151                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
152                 }
153                 
154                 return responseString;
155         }
156         
157         public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
158                 
159                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
160                 String responseString = null;
161                 try {
162                         ModelAndView result = dictionary.saveVarbind(request, response);
163                         responseString = result.getViewName();
164                 
165                 } catch (Exception e) {
166                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
167                 }
168                 
169                 return responseString;
170         }
171         
172         public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
173                 
174                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
175                 String responseString = null;
176                 try {
177                         ModelAndView result = dictionary.saveServiceType(request, response);
178                         responseString = result.getViewName();
179                 
180                 } catch (Exception e) {
181                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
182                 }
183                 
184                 return responseString;
185         }
186         
187         public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
188                 
189                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
190                 String responseString = null;
191                 try {
192                         ModelAndView result = dictionary.saveSiteType(request, response);
193                         responseString = result.getViewName();
194                 
195                 } catch (Exception e) {
196                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
197                 }
198                 
199                 return responseString;
200         }
201         
202         public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
203                 
204                 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
205                 String responseString = null;
206                 try {
207                         ModelAndView result = dictionary.saveSettingsDictionary(request, response);
208                         responseString = result.getViewName();
209                 
210                 } catch (Exception e) {
211                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
212                         
213                 }
214                 
215                 return responseString;
216         }
217         
218         public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
219                 
220                 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
221                 String responseString = null;
222                 try {
223                         ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
224                         responseString = result.getViewName();
225                 
226                 } catch (Exception e) {
227                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
228                         
229                 }
230                 
231                 return responseString;
232         }
233         
234         public String saveEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
235                 
236                 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
237                 String responseString = null;
238                 try {
239                         ModelAndView result = dictionary.saveEnforcerDictionary(request, response);
240                         responseString = result.getViewName();
241                 
242                 } catch (Exception e) {
243                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
244                         
245                 }
246                 
247                 return responseString;
248         }
249         
250         public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
251                 
252                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
253                 String responseString = null;
254                 try {
255                         ModelAndView result = dictionary.saveActionListDictionary(request, response);
256                         responseString = result.getViewName();
257                 
258                 } catch (Exception e) {
259                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
260                         
261                 }
262                 
263                 return responseString;
264         }
265         
266         public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
267                 
268                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
269                 String responseString = null;
270                 try {
271                         ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
272                         responseString = result.getViewName();
273                 
274                 } catch (Exception e) {
275                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
276                         
277                 }
278                 
279                 return responseString;
280         }
281         
282         public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
283                 
284                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
285                 String responseString = null;
286                 try {
287                         ModelAndView result = dictionary.saveZoneDictionary(request, response);
288                         responseString = result.getViewName();
289                 
290                 } catch (Exception e) {
291                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
292                         
293                 }
294                 
295                 return responseString;
296         }
297         
298         public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
299                 
300                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
301                 String responseString = null;
302                 try {
303                         ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
304                         responseString = result.getViewName();
305                 
306                 } catch (Exception e) {
307                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
308                         
309                 }
310                 
311                 return responseString;
312         }
313         
314         public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
315                 
316                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
317                 String responseString = null;
318                 try {
319                         ModelAndView result = dictionary.savePrefixListDictionary(request, response);
320                         responseString = result.getViewName();
321                 
322                 } catch (Exception e) {
323                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
324                         
325                 }
326                 
327                 return responseString;
328         }
329         
330         public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
331                 
332                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
333                 String responseString = null;
334                 try {
335                         ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
336                         responseString = result.getViewName();
337                 
338                 } catch (Exception e) {
339                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
340                         
341                 }
342                 
343                 return responseString;
344         }
345         
346         public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
347                 
348                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
349                 String responseString = null;
350                 try {
351                         ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
352                         responseString = result.getViewName();
353                 
354                 } catch (Exception e) {
355                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
356                         
357                 }
358                 
359                 return responseString;
360         }
361         
362         public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
363                 
364                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
365                 String responseString = null;
366                 try {
367                         ModelAndView result = dictionary.saveServiceListDictionary(request, response);
368                         responseString = result.getViewName();
369                 
370                 } catch (Exception e) {
371                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
372                         
373                 }
374                 
375                 return responseString;
376         }
377         
378         public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
379                 
380                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
381                 String responseString = null;
382                 try {
383                         ModelAndView result = dictionary.saveTermListDictionary(request, response);
384                         responseString = result.getViewName();
385                 
386                 } catch (Exception e) {
387                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
388                         
389                 }
390                 
391                 return responseString;
392         }
393         
394         
395         
396         
397         public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
398                 
399                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
400                 String responseString = null;
401                 try {
402                         ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
403                         responseString = result.getViewName();
404                 
405                 } catch (Exception e) {
406                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
407                         
408                 }
409                 
410                 return responseString;
411         }
412         
413         public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
414                 
415                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
416                 String responseString = null;
417                 try {
418                         ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
419                         responseString = result.getViewName();
420                 
421                 } catch (Exception e) {
422                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
423                         
424                 }
425                 
426                 return responseString;
427         }
428         
429         public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
430                 
431                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
432                 String responseString = null;
433                 try {
434                         ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
435                         responseString = result.getViewName();
436                 
437                 } catch (Exception e) {
438                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
439                         
440                 }
441                 
442                 return responseString;
443         }
444         
445         public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
446                 
447                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
448                 String responseString = null;
449                 try {
450                         ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
451                         responseString = result.getViewName();
452                 
453                 } catch (Exception e) {
454                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
455                         
456                 }
457                 
458                 return responseString;
459         }
460         
461         public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
462                 
463                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
464                 String responseString = null;
465                 try {
466                         ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
467                         responseString = result.getViewName();
468                 
469                 } catch (Exception e) {
470                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
471                         
472                 }
473                 
474                 return responseString;
475         }
476         
477         public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
478                 
479                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
480                 String responseString = null;
481                 try {
482                         ModelAndView result = dictionary.savePSServiceDictionary(request, response);
483                         responseString = result.getViewName();
484                 
485                 } catch (Exception e) {
486                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
487                         
488                 }
489                 
490                 return responseString;
491         }
492         
493         public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
494                 
495                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
496                 String responseString = null;
497                 try {
498                         ModelAndView result = dictionary.savePSResourceDictionary(request, response);
499                         responseString = result.getViewName();
500                 
501                 } catch (Exception e) {
502                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
503                         
504                 }
505                 
506                 return responseString;
507         }
508         
509         public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
510                 
511                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
512                 String responseString = null;
513                 try {
514                         ModelAndView result = dictionary.savePSTypeDictionary(request, response);
515                         responseString = result.getViewName();
516                 
517                 } catch (Exception e) {
518                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
519                         
520                 }
521                 
522                 return responseString;
523         }
524         
525         public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
526                 
527                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
528                 String responseString = null;
529                 try {
530                         ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
531                         responseString = result.getViewName();
532                 
533                 } catch (Exception e) {
534                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
535                         
536                 }
537                 
538                 return responseString;
539         }
540         
541         public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
542                 
543                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
544                 String responseString = null;
545                 try {
546                         ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
547                         responseString = result.getViewName();
548                 
549                 } catch (Exception e) {
550                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
551                         
552                 }
553                 
554                 return responseString;
555         }
556         
557         public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
558                 
559                 SafePolicyController dictionary = new SafePolicyController();
560                 String responseString = null;
561                 try {
562                         ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
563                         responseString = result.getViewName();
564                 
565                 } catch (Exception e) {
566                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
567                         
568                 }
569                 
570                 return responseString;
571         }
572         
573         public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
574                 
575                 SafePolicyController dictionary = new SafePolicyController();
576                 String responseString = null;
577                 try {
578                         ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
579                         responseString = result.getViewName();
580                 
581                 } catch (Exception e) {
582                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
583                         
584                 }
585                 
586                 return responseString;
587         }
588         
589         
590         /*
591          * Methods that call the controller get methods directly to get dictionary data
592          */
593         public void getEcompDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
594                 
595                 DictionaryController dictionary = new DictionaryController();
596                 try {
597                         dictionary.getEcompNameDictionaryEntityData(request, response);                                 
598                 } catch (Exception e) {
599                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
600                         
601                 }               
602         }
603         
604         public void getAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
605                 
606                 DictionaryController dictionary = new DictionaryController();
607                 try {
608                         dictionary.getAttributeDictionaryEntityData(request, response);
609                 } catch (Exception e) {
610                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
611                         
612                 }
613         }
614         
615         public void getActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
616                 
617                 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
618                 try {
619                         action.getActionPolicyDictionaryEntityData(request, response);  
620                 } catch (Exception e) {
621                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
622                         
623                 }
624         }
625         
626         public void getBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
627                 
628                 BRMSDictionaryController dictionary = new BRMSDictionaryController();
629                 try {
630                         dictionary.getBRMSParamDictionaryEntityData(request, response);
631                 } catch (Exception e) {
632                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
633                         
634                 }
635                 
636         }
637         
638         public void getVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
639                 
640                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
641                 try {
642                         dictionary.getVSCLActionDictionaryEntityData(request, response);
643                 } catch (Exception e) {
644                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
645                         
646                 }
647         }
648         
649         public void getVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
650                 
651                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
652                 try {
653                         dictionary.getVNFTypeDictionaryEntityData(request, response);
654                 
655                 } catch (Exception e) {
656                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
657                         
658                 }
659                 
660         }
661         
662         public void getPEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
663                 
664                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
665                 try {
666                         dictionary.getPEPOptionsDictionaryEntityData(request, response);
667                 } catch (Exception e) {
668                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
669                         
670                 }
671         }
672         
673         public void getVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
674                 
675                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
676                 try {
677                         dictionary.getVarbindDictionaryEntityData(request, response);
678                 
679                 } catch (Exception e) {
680                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
681                         
682                 }
683                 
684         }
685         
686         public void getServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
687                 
688                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
689                 try {
690                         dictionary.getClosedLoopServiceDictionaryEntityData(request, response);
691                 } catch (Exception e) {
692                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
693                         
694                 }
695         }
696         
697         public void getSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
698                 
699                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
700                 try {
701                         dictionary.getClosedLoopSiteDictionaryEntityData(request, response);    
702                 } catch (Exception e) {
703                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
704                         
705                 }
706         }
707         
708         public void getSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
709                 
710                 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
711                 try {
712                         dictionary.getSettingsDictionaryEntityData(request, response);
713                 
714                 } catch (Exception e) {
715                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
716                         
717                 }               
718         }
719         
720         public void getDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
721                 
722                 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
723                 try {
724                         dictionary.getDescriptiveDictionaryEntityData(request, response);
725                 
726                 } catch (Exception e) {
727                         
728                 }
729         }
730         
731         public void getEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
732                 
733                 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
734                 try {
735                         dictionary.getEnforcerDictionaryEntityData(request, response);
736                 
737                 } catch (Exception e) {
738                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
739                         
740                 }
741         }
742         
743         public void getActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
744                 
745                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
746                 try {
747                         dictionary.getActionListDictionaryEntityData(request, response);
748                 
749                 } catch (Exception e) {
750                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
751                         
752                 }
753         }
754         
755         public void getProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
756                 
757                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
758                 try {
759                         dictionary.getProtocolListDictionaryEntityData(request, response);
760                 
761                 } catch (Exception e) {
762                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
763                         
764                 }
765         }
766         
767         public void getZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
768                 
769                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
770                 try {
771                         dictionary.getZoneDictionaryEntityData(request, response);
772                 
773                 } catch (Exception e) {
774                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
775                         
776                 }
777         }
778         
779         public void getSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
780                 
781                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
782                 try {
783                         dictionary.getSecurityZoneDictionaryEntityData(request, response);
784                 
785                 } catch (Exception e) {
786                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
787                         
788                 }
789         }
790         
791         public void getPrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
792                 
793                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
794                 try {
795                         dictionary.getPrefixListDictionaryEntityData(request, response);
796                 
797                 } catch (Exception e) {
798                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
799                         
800                 }
801         }
802         
803         public void getAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
804                 
805                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
806                 try {
807                         dictionary.getAddressGroupDictionaryEntityData(request, response);
808                 
809                 } catch (Exception e) {
810                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
811                         
812                 }
813         }
814         
815         public void getServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
816                 
817                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
818                 try {
819                         dictionary.getServiceGroupDictionaryEntityData(request, response);
820                 
821                 } catch (Exception e) {
822                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
823                         
824                 }
825         }
826         
827         public void getServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
828                 
829                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
830                 try {
831                         dictionary.getServiceListDictionaryEntityData(request, response);
832                 
833                 } catch (Exception e) {
834                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
835                         
836                 }
837         }
838         
839         public void getTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
840                 
841                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
842                 try {
843                         dictionary.getTermListDictionaryEntityData(request, response);
844                 
845                 } catch (Exception e) {
846                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
847                         
848                 }
849         }
850         
851         
852         public void getMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
853                 
854                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
855                 try {
856                         dictionary.getMicroServiceLocationDictionaryEntityData(request, response);
857                 
858                 } catch (Exception e) {
859                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
860                         
861                 }
862         }
863         
864         public void getMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
865                 
866                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
867                 try {
868                         dictionary.getMicroServiceConfigNameDictionaryEntityData(request, response);
869                 
870                 } catch (Exception e) {
871                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
872                         
873                 }
874         }
875         
876         public void getDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
877                 
878                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
879                 try {
880                         dictionary.getDCAEUUIDDictionaryEntityData(request, response);
881                 
882                 } catch (Exception e) {
883                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
884                         
885                 }
886         }
887         
888         public void getMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
889                 
890                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
891                 try {
892                         dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
893                 
894                 } catch (Exception e) {
895                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
896                         
897                 }
898         }
899         
900         public void getMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
901                 
902                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
903                 try {
904                         dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
905                 
906                 } catch (Exception e) {
907                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
908                         
909                 }
910         }
911         
912         public void getPSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
913                 
914                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
915                 try {
916                         dictionary.getPSServiceEntityData(request, response);
917                 
918                 } catch (Exception e) {
919                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
920                         
921                 }
922         }
923         
924         public void getPSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
925                 
926                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
927                 try {
928                         dictionary.getPSResourceEntityData(request, response);
929                 
930                 } catch (Exception e) {
931                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
932                         
933                 }
934         }
935         
936         public void getPSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
937                 
938                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
939                 try {
940                         dictionary.getPSTypeEntityData(request, response);
941                 
942                 } catch (Exception e) {
943                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
944                         
945                 }
946         }
947         
948         public void getPSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
949                 
950                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
951                 try {
952                         dictionary.getPSClosedLoopEntityData(request, response);
953                 
954                 } catch (Exception e) {
955                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
956                         
957                 }
958         }
959         
960         public void getPSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
961                 
962                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
963                 try {
964                         dictionary.getGroupPolicyScopeEntityData(request, response);
965                 
966                 } catch (Exception e) {
967                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
968                         
969                 }
970         }
971         
972         public void getRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
973                 
974                 SafePolicyController dictionary = new SafePolicyController();
975                 try {
976                         dictionary.getEcompNameDictionaryEntityData(request, response);
977                 
978                 } catch (Exception e) {
979                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
980                         
981                 }
982         }
983         
984         public void getSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
985                 
986                 SafePolicyController dictionary = new SafePolicyController();
987                 try {
988                         dictionary.getSafePolicyWarningeEntityData(request, response);
989                 
990                 } catch (Exception e) {
991                         LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
992                         
993                 }
994         }
995 }