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);
64 return responseString;
68 public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
70 DictionaryController dictionary = new DictionaryController();
71 String responseString = null;
73 ModelAndView result = dictionary.saveAttributeDictionary(request, response);
74 responseString = result.getViewName();
76 } catch (Exception e) {
77 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
81 return responseString;
84 public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
86 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
87 String responseString = null;
89 ModelAndView result = action.saveActionPolicyDictionary(request, response);
90 responseString = result.getViewName();
92 } catch (Exception e) {
93 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
97 return responseString;
100 public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
102 BRMSDictionaryController dictionary = new BRMSDictionaryController();
103 String responseString = null;
105 ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
106 responseString = result.getViewName();
108 } catch (Exception e) {
109 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
113 return responseString;
116 public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
118 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
119 String responseString = null;
121 ModelAndView result = dictionary.saveVSCLAction(request, response);
122 responseString = result.getViewName();
124 } catch (Exception e) {
125 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
129 return responseString;
132 public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
134 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
135 String responseString = null;
137 ModelAndView result = dictionary.saveVnfType(request, response);
138 responseString = result.getViewName();
140 } catch (Exception e) {
141 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
145 return responseString;
148 public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
150 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
151 String responseString = null;
153 ModelAndView result = dictionary.savePEPOptions(request, response);
154 responseString = result.getViewName();
156 } catch (Exception e) {
157 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
161 return responseString;
164 public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
166 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
167 String responseString = null;
169 ModelAndView result = dictionary.saveVarbind(request, response);
170 responseString = result.getViewName();
172 } catch (Exception e) {
173 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
177 return responseString;
180 public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
182 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
183 String responseString = null;
185 ModelAndView result = dictionary.saveServiceType(request, response);
186 responseString = result.getViewName();
188 } catch (Exception e) {
189 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
193 return responseString;
196 public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
198 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
199 String responseString = null;
201 ModelAndView result = dictionary.saveSiteType(request, response);
202 responseString = result.getViewName();
204 } catch (Exception e) {
205 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
209 return responseString;
212 public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
214 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
215 String responseString = null;
217 ModelAndView result = dictionary.saveSettingsDictionary(request, response);
218 responseString = result.getViewName();
220 } catch (Exception e) {
221 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
225 return responseString;
228 public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
230 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
231 String responseString = null;
233 ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
234 responseString = result.getViewName();
236 } catch (Exception e) {
237 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
241 return responseString;
244 public String saveEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
246 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
247 String responseString = null;
249 ModelAndView result = dictionary.saveEnforcerDictionary(request, response);
250 responseString = result.getViewName();
252 } catch (Exception e) {
253 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
257 return responseString;
260 public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
262 FirewallDictionaryController dictionary = new FirewallDictionaryController();
263 String responseString = null;
265 ModelAndView result = dictionary.saveActionListDictionary(request, response);
266 responseString = result.getViewName();
268 } catch (Exception e) {
269 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
273 return responseString;
276 public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
278 FirewallDictionaryController dictionary = new FirewallDictionaryController();
279 String responseString = null;
281 ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
282 responseString = result.getViewName();
284 } catch (Exception e) {
285 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
289 return responseString;
292 public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
294 FirewallDictionaryController dictionary = new FirewallDictionaryController();
295 String responseString = null;
297 ModelAndView result = dictionary.saveZoneDictionary(request, response);
298 responseString = result.getViewName();
300 } catch (Exception e) {
301 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
305 return responseString;
308 public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
310 FirewallDictionaryController dictionary = new FirewallDictionaryController();
311 String responseString = null;
313 ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
314 responseString = result.getViewName();
316 } catch (Exception e) {
317 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
321 return responseString;
324 public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
326 FirewallDictionaryController dictionary = new FirewallDictionaryController();
327 String responseString = null;
329 ModelAndView result = dictionary.savePrefixListDictionary(request, response);
330 responseString = result.getViewName();
332 } catch (Exception e) {
333 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
337 return responseString;
340 public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
342 FirewallDictionaryController dictionary = new FirewallDictionaryController();
343 String responseString = null;
345 ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
346 responseString = result.getViewName();
348 } catch (Exception e) {
349 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
353 return responseString;
356 public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
358 FirewallDictionaryController dictionary = new FirewallDictionaryController();
359 String responseString = null;
361 ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
362 responseString = result.getViewName();
364 } catch (Exception e) {
365 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
369 return responseString;
372 public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
374 FirewallDictionaryController dictionary = new FirewallDictionaryController();
375 String responseString = null;
377 ModelAndView result = dictionary.saveServiceListDictionary(request, response);
378 responseString = result.getViewName();
380 } catch (Exception e) {
381 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
385 return responseString;
388 public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
390 FirewallDictionaryController dictionary = new FirewallDictionaryController();
391 String responseString = null;
393 ModelAndView result = dictionary.saveTermListDictionary(request, response);
394 responseString = result.getViewName();
396 } catch (Exception e) {
397 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
401 return responseString;
407 public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
409 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
410 String responseString = null;
412 ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
413 responseString = result.getViewName();
415 } catch (Exception e) {
416 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
420 return responseString;
423 public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
425 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
426 String responseString = null;
428 ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
429 responseString = result.getViewName();
431 } catch (Exception e) {
432 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
436 return responseString;
439 public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
441 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
442 String responseString = null;
444 ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
445 responseString = result.getViewName();
447 } catch (Exception e) {
448 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
452 return responseString;
455 public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
457 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
458 String responseString = null;
460 ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
461 responseString = result.getViewName();
463 } catch (Exception e) {
464 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
468 return responseString;
471 public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
473 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
474 String responseString = null;
476 ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
477 responseString = result.getViewName();
479 } catch (Exception e) {
480 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
484 return responseString;
487 public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
489 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
490 String responseString = null;
492 ModelAndView result = dictionary.savePSServiceDictionary(request, response);
493 responseString = result.getViewName();
495 } catch (Exception e) {
496 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
500 return responseString;
503 public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
505 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
506 String responseString = null;
508 ModelAndView result = dictionary.savePSResourceDictionary(request, response);
509 responseString = result.getViewName();
511 } catch (Exception e) {
512 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
516 return responseString;
519 public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
521 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
522 String responseString = null;
524 ModelAndView result = dictionary.savePSTypeDictionary(request, response);
525 responseString = result.getViewName();
527 } catch (Exception e) {
528 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
532 return responseString;
535 public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
537 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
538 String responseString = null;
540 ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
541 responseString = result.getViewName();
543 } catch (Exception e) {
544 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
548 return responseString;
551 public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
553 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
554 String responseString = null;
556 ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
557 responseString = result.getViewName();
559 } catch (Exception e) {
560 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
564 return responseString;
567 public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
569 SafePolicyController dictionary = new SafePolicyController();
570 String responseString = null;
572 ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
573 responseString = result.getViewName();
575 } catch (Exception e) {
576 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
580 return responseString;
583 public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
585 SafePolicyController dictionary = new SafePolicyController();
586 String responseString = null;
588 ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
589 responseString = result.getViewName();
591 } catch (Exception e) {
592 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
596 return responseString;
601 * Methods that call the controller get methods directly to get dictionary data
603 public void getEcompDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
605 DictionaryController dictionary = new DictionaryController();
607 dictionary.getEcompNameDictionaryEntityData(request, response);
608 } catch (Exception e) {
609 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
614 public void getAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
616 DictionaryController dictionary = new DictionaryController();
618 dictionary.getAttributeDictionaryEntityData(request, response);
619 } catch (Exception e) {
620 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
625 public void getActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
627 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
629 action.getActionPolicyDictionaryEntityData(request, response);
630 } catch (Exception e) {
631 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
636 public void getBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
638 BRMSDictionaryController dictionary = new BRMSDictionaryController();
640 dictionary.getBRMSParamDictionaryEntityData(request, response);
641 } catch (Exception e) {
642 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
648 public void getVSCLAction(HttpServletRequest request, HttpServletResponse response) throws Exception{
650 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
652 dictionary.getVSCLActionDictionaryEntityData(request, response);
653 } catch (Exception e) {
654 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
659 public void getVnfType(HttpServletRequest request, HttpServletResponse response) throws Exception{
661 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
663 dictionary.getVNFTypeDictionaryEntityData(request, response);
665 } catch (Exception e) {
666 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
672 public void getPEPOptions(HttpServletRequest request, HttpServletResponse response) throws Exception{
674 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
676 dictionary.getPEPOptionsDictionaryEntityData(request, response);
677 } catch (Exception e) {
678 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
683 public void getVarbind(HttpServletRequest request, HttpServletResponse response) throws Exception{
685 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
687 dictionary.getVarbindDictionaryEntityData(request, response);
689 } catch (Exception e) {
690 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
696 public void getServiceType(HttpServletRequest request, HttpServletResponse response) throws Exception{
698 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
700 dictionary.getClosedLoopServiceDictionaryEntityData(request, response);
701 } catch (Exception e) {
702 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
707 public void getSiteType(HttpServletRequest request, HttpServletResponse response) throws Exception{
709 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
711 dictionary.getClosedLoopSiteDictionaryEntityData(request, response);
712 } catch (Exception e) {
713 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
718 public void getSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
720 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
722 dictionary.getSettingsDictionaryEntityData(request, response);
724 } catch (Exception e) {
725 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
730 public void getDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
732 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
734 dictionary.getDescriptiveDictionaryEntityData(request, response);
736 } catch (Exception e) {
741 public void getEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
743 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
745 dictionary.getEnforcerDictionaryEntityData(request, response);
747 } catch (Exception e) {
748 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
753 public void getActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
755 FirewallDictionaryController dictionary = new FirewallDictionaryController();
757 dictionary.getActionListDictionaryEntityData(request, response);
759 } catch (Exception e) {
760 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
765 public void getProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
767 FirewallDictionaryController dictionary = new FirewallDictionaryController();
769 dictionary.getProtocolListDictionaryEntityData(request, response);
771 } catch (Exception e) {
772 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
777 public void getZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
779 FirewallDictionaryController dictionary = new FirewallDictionaryController();
781 dictionary.getZoneDictionaryEntityData(request, response);
783 } catch (Exception e) {
784 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
789 public void getSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
791 FirewallDictionaryController dictionary = new FirewallDictionaryController();
793 dictionary.getSecurityZoneDictionaryEntityData(request, response);
795 } catch (Exception e) {
796 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
801 public void getPrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
803 FirewallDictionaryController dictionary = new FirewallDictionaryController();
805 dictionary.getPrefixListDictionaryEntityData(request, response);
807 } catch (Exception e) {
808 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
813 public void getAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
815 FirewallDictionaryController dictionary = new FirewallDictionaryController();
817 dictionary.getAddressGroupDictionaryEntityData(request, response);
819 } catch (Exception e) {
820 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
825 public void getServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
827 FirewallDictionaryController dictionary = new FirewallDictionaryController();
829 dictionary.getServiceGroupDictionaryEntityData(request, response);
831 } catch (Exception e) {
832 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
837 public void getServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
839 FirewallDictionaryController dictionary = new FirewallDictionaryController();
841 dictionary.getServiceListDictionaryEntityData(request, response);
843 } catch (Exception e) {
844 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
849 public void getTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
851 FirewallDictionaryController dictionary = new FirewallDictionaryController();
853 dictionary.getTermListDictionaryEntityData(request, response);
855 } catch (Exception e) {
856 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
862 public void getMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
864 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
866 dictionary.getMicroServiceLocationDictionaryEntityData(request, response);
868 } catch (Exception e) {
869 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
874 public void getMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
876 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
878 dictionary.getMicroServiceConfigNameDictionaryEntityData(request, response);
880 } catch (Exception e) {
881 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
886 public void getDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
888 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
890 dictionary.getDCAEUUIDDictionaryEntityData(request, response);
892 } catch (Exception e) {
893 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
898 public void getMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
900 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
902 dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
904 } catch (Exception e) {
905 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
910 public void getMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
912 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
914 dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
916 } catch (Exception e) {
917 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
922 public void getPSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
924 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
926 dictionary.getPSServiceEntityData(request, response);
928 } catch (Exception e) {
929 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
934 public void getPSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
936 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
938 dictionary.getPSResourceEntityData(request, response);
940 } catch (Exception e) {
941 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
946 public void getPSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
948 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
950 dictionary.getPSTypeEntityData(request, response);
952 } catch (Exception e) {
953 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
958 public void getPSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
960 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
962 dictionary.getPSClosedLoopEntityData(request, response);
964 } catch (Exception e) {
965 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
970 public void getPSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
972 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
974 dictionary.getGroupPolicyScopeEntityData(request, response);
976 } catch (Exception e) {
977 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
982 public void getRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
984 SafePolicyController dictionary = new SafePolicyController();
986 dictionary.getEcompNameDictionaryEntityData(request, response);
988 } catch (Exception e) {
989 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
994 public void getSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws Exception{
996 SafePolicyController dictionary = new SafePolicyController();
998 dictionary.getSafePolicyWarningeEntityData(request, response);
1000 } catch (Exception e) {
1001 LOGGER.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + e);
1002 e.printStackTrace();