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