2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.openecomp.policy.pap.xacml.rest.service;
22 import javax.servlet.http.HttpServletRequest;
23 import javax.servlet.http.HttpServletResponse;
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;
43 @Service("DictionaryService")
44 public class DictionaryService {
46 private static final Logger LOGGER = FlexLogger.getLogger(DictionaryService.class);
49 * Methods that call the controller method directly to Save and Update dictionary data
51 public String saveEcompDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
53 DictionaryController dictionary = new DictionaryController();
54 String responseString = null;
56 ModelAndView result = dictionary.saveEcompDictionary(request, response);
57 responseString = result.getViewName();
59 } catch (Exception e) {
60 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
63 return responseString;
67 public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
69 DictionaryController dictionary = new DictionaryController();
70 String responseString = null;
72 ModelAndView result = dictionary.saveAttributeDictionary(request, response);
73 responseString = result.getViewName();
75 } catch (Exception e) {
76 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
79 return responseString;
82 public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
84 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
85 String responseString = null;
87 ModelAndView result = action.saveActionPolicyDictionary(request, response);
88 responseString = result.getViewName();
90 } catch (Exception e) {
91 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
94 return responseString;
97 public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
99 BRMSDictionaryController dictionary = new BRMSDictionaryController();
100 String responseString = null;
102 ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
103 responseString = result.getViewName();
105 } catch (Exception e) {
106 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
109 return responseString;
112 public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
114 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
115 String responseString = null;
117 ModelAndView result = dictionary.saveVSCLAction(request, response);
118 responseString = result.getViewName();
120 } catch (Exception e) {
121 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
124 return responseString;
127 public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
129 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
130 String responseString = null;
132 ModelAndView result = dictionary.saveVnfType(request, response);
133 responseString = result.getViewName();
135 } catch (Exception e) {
136 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
139 return responseString;
142 public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
144 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
145 String responseString = null;
147 ModelAndView result = dictionary.savePEPOptions(request, response);
148 responseString = result.getViewName();
150 } catch (Exception e) {
151 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
154 return responseString;
157 public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
159 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
160 String responseString = null;
162 ModelAndView result = dictionary.saveVarbind(request, response);
163 responseString = result.getViewName();
165 } catch (Exception e) {
166 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
169 return responseString;
172 public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
174 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
175 String responseString = null;
177 ModelAndView result = dictionary.saveServiceType(request, response);
178 responseString = result.getViewName();
180 } catch (Exception e) {
181 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
184 return responseString;
187 public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
189 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
190 String responseString = null;
192 ModelAndView result = dictionary.saveSiteType(request, response);
193 responseString = result.getViewName();
195 } catch (Exception e) {
196 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
199 return responseString;
202 public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
204 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
205 String responseString = null;
207 ModelAndView result = dictionary.saveSettingsDictionary(request, response);
208 responseString = result.getViewName();
210 } catch (Exception e) {
211 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
215 return responseString;
218 public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
220 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
221 String responseString = null;
223 ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
224 responseString = result.getViewName();
226 } catch (Exception e) {
227 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
231 return responseString;
234 public String saveEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
236 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
237 String responseString = null;
239 ModelAndView result = dictionary.saveEnforcerDictionary(request, response);
240 responseString = result.getViewName();
242 } catch (Exception e) {
243 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
247 return responseString;
250 public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
252 FirewallDictionaryController dictionary = new FirewallDictionaryController();
253 String responseString = null;
255 ModelAndView result = dictionary.saveActionListDictionary(request, response);
256 responseString = result.getViewName();
258 } catch (Exception e) {
259 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
263 return responseString;
266 public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
268 FirewallDictionaryController dictionary = new FirewallDictionaryController();
269 String responseString = null;
271 ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
272 responseString = result.getViewName();
274 } catch (Exception e) {
275 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
279 return responseString;
282 public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
284 FirewallDictionaryController dictionary = new FirewallDictionaryController();
285 String responseString = null;
287 ModelAndView result = dictionary.saveZoneDictionary(request, response);
288 responseString = result.getViewName();
290 } catch (Exception e) {
291 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
295 return responseString;
298 public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
300 FirewallDictionaryController dictionary = new FirewallDictionaryController();
301 String responseString = null;
303 ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
304 responseString = result.getViewName();
306 } catch (Exception e) {
307 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
311 return responseString;
314 public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
316 FirewallDictionaryController dictionary = new FirewallDictionaryController();
317 String responseString = null;
319 ModelAndView result = dictionary.savePrefixListDictionary(request, response);
320 responseString = result.getViewName();
322 } catch (Exception e) {
323 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
327 return responseString;
330 public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
332 FirewallDictionaryController dictionary = new FirewallDictionaryController();
333 String responseString = null;
335 ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
336 responseString = result.getViewName();
338 } catch (Exception e) {
339 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
343 return responseString;
346 public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
348 FirewallDictionaryController dictionary = new FirewallDictionaryController();
349 String responseString = null;
351 ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
352 responseString = result.getViewName();
354 } catch (Exception e) {
355 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
359 return responseString;
362 public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
364 FirewallDictionaryController dictionary = new FirewallDictionaryController();
365 String responseString = null;
367 ModelAndView result = dictionary.saveServiceListDictionary(request, response);
368 responseString = result.getViewName();
370 } catch (Exception e) {
371 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
375 return responseString;
378 public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
380 FirewallDictionaryController dictionary = new FirewallDictionaryController();
381 String responseString = null;
383 ModelAndView result = dictionary.saveTermListDictionary(request, response);
384 responseString = result.getViewName();
386 } catch (Exception e) {
387 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
391 return responseString;
397 public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
399 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
400 String responseString = null;
402 ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
403 responseString = result.getViewName();
405 } catch (Exception e) {
406 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
410 return responseString;
413 public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
415 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
416 String responseString = null;
418 ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
419 responseString = result.getViewName();
421 } catch (Exception e) {
422 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
426 return responseString;
429 public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
431 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
432 String responseString = null;
434 ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
435 responseString = result.getViewName();
437 } catch (Exception e) {
438 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
442 return responseString;
445 public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
447 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
448 String responseString = null;
450 ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
451 responseString = result.getViewName();
453 } catch (Exception e) {
454 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
458 return responseString;
461 public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
463 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
464 String responseString = null;
466 ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
467 responseString = result.getViewName();
469 } catch (Exception e) {
470 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
474 return responseString;
477 public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
479 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
480 String responseString = null;
482 ModelAndView result = dictionary.savePSServiceDictionary(request, response);
483 responseString = result.getViewName();
485 } catch (Exception e) {
486 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
490 return responseString;
493 public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
495 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
496 String responseString = null;
498 ModelAndView result = dictionary.savePSResourceDictionary(request, response);
499 responseString = result.getViewName();
501 } catch (Exception e) {
502 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
506 return responseString;
509 public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
511 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
512 String responseString = null;
514 ModelAndView result = dictionary.savePSTypeDictionary(request, response);
515 responseString = result.getViewName();
517 } catch (Exception e) {
518 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
522 return responseString;
525 public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
527 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
528 String responseString = null;
530 ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
531 responseString = result.getViewName();
533 } catch (Exception e) {
534 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
538 return responseString;
541 public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
543 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
544 String responseString = null;
546 ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
547 responseString = result.getViewName();
549 } catch (Exception e) {
550 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
554 return responseString;
557 public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
559 SafePolicyController dictionary = new SafePolicyController();
560 String responseString = null;
562 ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
563 responseString = result.getViewName();
565 } catch (Exception e) {
566 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
570 return responseString;
573 public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
575 SafePolicyController dictionary = new SafePolicyController();
576 String responseString = null;
578 ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
579 responseString = result.getViewName();
581 } catch (Exception e) {
582 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
586 return responseString;
591 * Methods that call the controller get methods directly to get dictionary data
593 public void getEcompDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
595 DictionaryController dictionary = new DictionaryController();
597 dictionary.getEcompNameDictionaryEntityData(request, response);
598 } catch (Exception e) {
599 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
604 public void getAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
606 DictionaryController dictionary = new DictionaryController();
608 dictionary.getAttributeDictionaryEntityData(request, response);
609 } catch (Exception e) {
610 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
615 public void getActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
617 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
619 action.getActionPolicyDictionaryEntityData(request, response);
620 } catch (Exception e) {
621 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
626 public void getBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
628 BRMSDictionaryController dictionary = new BRMSDictionaryController();
630 dictionary.getBRMSParamDictionaryEntityData(request, response);
631 } catch (Exception e) {
632 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
638 public void getVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
640 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
642 dictionary.getVSCLActionDictionaryEntityData(request, response);
643 } catch (Exception e) {
644 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
649 public void getVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
651 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
653 dictionary.getVNFTypeDictionaryEntityData(request, response);
655 } catch (Exception e) {
656 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
662 public void getPEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
664 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
666 dictionary.getPEPOptionsDictionaryEntityData(request, response);
667 } catch (Exception e) {
668 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
673 public void getVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
675 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
677 dictionary.getVarbindDictionaryEntityData(request, response);
679 } catch (Exception e) {
680 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
686 public void getServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
688 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
690 dictionary.getClosedLoopServiceDictionaryEntityData(request, response);
691 } catch (Exception e) {
692 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
697 public void getSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
699 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
701 dictionary.getClosedLoopSiteDictionaryEntityData(request, response);
702 } catch (Exception e) {
703 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
708 public void getSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
710 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
712 dictionary.getSettingsDictionaryEntityData(request, response);
714 } catch (Exception e) {
715 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
720 public void getDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
722 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
724 dictionary.getDescriptiveDictionaryEntityData(request, response);
726 } catch (Exception e) {
731 public void getEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
733 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
735 dictionary.getEnforcerDictionaryEntityData(request, response);
737 } catch (Exception e) {
738 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
743 public void getActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
745 FirewallDictionaryController dictionary = new FirewallDictionaryController();
747 dictionary.getActionListDictionaryEntityData(request, response);
749 } catch (Exception e) {
750 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
755 public void getProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
757 FirewallDictionaryController dictionary = new FirewallDictionaryController();
759 dictionary.getProtocolListDictionaryEntityData(request, response);
761 } catch (Exception e) {
762 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
767 public void getZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
769 FirewallDictionaryController dictionary = new FirewallDictionaryController();
771 dictionary.getZoneDictionaryEntityData(request, response);
773 } catch (Exception e) {
774 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
779 public void getSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
781 FirewallDictionaryController dictionary = new FirewallDictionaryController();
783 dictionary.getSecurityZoneDictionaryEntityData(request, response);
785 } catch (Exception e) {
786 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
791 public void getPrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
793 FirewallDictionaryController dictionary = new FirewallDictionaryController();
795 dictionary.getPrefixListDictionaryEntityData(request, response);
797 } catch (Exception e) {
798 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
803 public void getAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
805 FirewallDictionaryController dictionary = new FirewallDictionaryController();
807 dictionary.getAddressGroupDictionaryEntityData(request, response);
809 } catch (Exception e) {
810 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
815 public void getServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
817 FirewallDictionaryController dictionary = new FirewallDictionaryController();
819 dictionary.getServiceGroupDictionaryEntityData(request, response);
821 } catch (Exception e) {
822 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
827 public void getServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
829 FirewallDictionaryController dictionary = new FirewallDictionaryController();
831 dictionary.getServiceListDictionaryEntityData(request, response);
833 } catch (Exception e) {
834 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
839 public void getTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
841 FirewallDictionaryController dictionary = new FirewallDictionaryController();
843 dictionary.getTermListDictionaryEntityData(request, response);
845 } catch (Exception e) {
846 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
852 public void getMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
854 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
856 dictionary.getMicroServiceLocationDictionaryEntityData(request, response);
858 } catch (Exception e) {
859 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
864 public void getMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
866 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
868 dictionary.getMicroServiceConfigNameDictionaryEntityData(request, response);
870 } catch (Exception e) {
871 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
876 public void getDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
878 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
880 dictionary.getDCAEUUIDDictionaryEntityData(request, response);
882 } catch (Exception e) {
883 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
888 public void getMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
890 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
892 dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
894 } catch (Exception e) {
895 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
900 public void getMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
902 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
904 dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
906 } catch (Exception e) {
907 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
912 public void getPSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
914 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
916 dictionary.getPSServiceEntityData(request, response);
918 } catch (Exception e) {
919 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
924 public void getPSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
926 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
928 dictionary.getPSResourceEntityData(request, response);
930 } catch (Exception e) {
931 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
936 public void getPSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
938 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
940 dictionary.getPSTypeEntityData(request, response);
942 } catch (Exception e) {
943 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
948 public void getPSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
950 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
952 dictionary.getPSClosedLoopEntityData(request, response);
954 } catch (Exception e) {
955 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
960 public void getPSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
962 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
964 dictionary.getGroupPolicyScopeEntityData(request, response);
966 } catch (Exception e) {
967 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
972 public void getRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
974 SafePolicyController dictionary = new SafePolicyController();
976 dictionary.getEcompNameDictionaryEntityData(request, response);
978 } catch (Exception e) {
979 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
984 public void getSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
986 SafePolicyController dictionary = new SafePolicyController();
988 dictionary.getSafePolicyWarningeEntityData(request, response);
990 } catch (Exception e) {
991 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);