2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017-2019 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=========================================================
21 package org.onap.policy.pap.xacml.rest.service;
23 import java.io.IOException;
24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse;
26 import org.onap.policy.pap.xacml.rest.controller.ActionPolicyDictionaryController;
27 import org.onap.policy.pap.xacml.rest.controller.BRMSDictionaryController;
28 import org.onap.policy.pap.xacml.rest.controller.ClosedLoopDictionaryController;
29 import org.onap.policy.pap.xacml.rest.controller.DecisionPolicyDictionaryController;
30 import org.onap.policy.pap.xacml.rest.controller.DescriptiveDictionaryController;
31 import org.onap.policy.pap.xacml.rest.controller.DictionaryController;
32 import org.onap.policy.pap.xacml.rest.controller.FirewallDictionaryController;
33 import org.onap.policy.pap.xacml.rest.controller.MicroServiceDictionaryController;
34 import org.onap.policy.pap.xacml.rest.controller.OptimizationDictionaryController;
35 import org.onap.policy.pap.xacml.rest.controller.PolicyScopeDictionaryController;
36 import org.onap.policy.pap.xacml.rest.controller.SafePolicyController;
37 import org.springframework.stereotype.Service;
38 import org.springframework.web.servlet.ModelAndView;
41 // TODO: Auto-generated Javadoc
43 * The Class DictionaryService.
45 @Service("DictionaryService")
46 public class DictionaryService {
49 * Save onap dictionary.
51 * @param request the request
52 * @param response the response
54 * @throws IOException Signals that an I/O exception has occurred.
57 * Methods that call the controller method directly to Save and Update dictionary data
59 public String saveOnapDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
61 DictionaryController dictionary = new DictionaryController();
62 ModelAndView result = dictionary.saveOnapDictionary(request, response);
63 return result.getViewName();
67 * Save attribute dictionary.
69 * @param request the request
70 * @param response the response
72 * @throws IOException Signals that an I/O exception has occurred.
74 public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
76 DictionaryController dictionary = new DictionaryController();
77 ModelAndView result = dictionary.saveAttributeDictionary(request, response);
78 return result.getViewName();
82 * Save action policy dictionary.
84 * @param request the request
85 * @param response the response
87 * @throws IOException Signals that an I/O exception has occurred.
89 public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response)
92 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
93 ModelAndView result = action.saveActionPolicyDictionary(request, response);
94 return result.getViewName();
98 * Save BRMS param dictionary.
100 * @param request the request
101 * @param response the response
103 * @throws IOException Signals that an I/O exception has occurred.
105 public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
107 BRMSDictionaryController dictionary = new BRMSDictionaryController();
108 ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
109 return result.getViewName();
115 * @param request the request
116 * @param response the response
118 * @throws IOException Signals that an I/O exception has occurred.
120 public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws IOException {
122 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
123 ModelAndView result = dictionary.saveVSCLAction(request, response);
124 return result.getViewName();
130 * @param request the request
131 * @param response the response
133 * @throws IOException Signals that an I/O exception has occurred.
135 public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws IOException {
137 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
138 ModelAndView result = dictionary.saveVnfType(request, response);
139 return result.getViewName();
145 * @param request the request
146 * @param response the response
148 * @throws IOException Signals that an I/O exception has occurred.
150 public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws IOException {
152 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
153 ModelAndView result = dictionary.savePEPOptions(request, response);
154 return result.getViewName();
160 * @param request the request
161 * @param response the response
163 * @throws IOException Signals that an I/O exception has occurred.
165 public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws IOException {
167 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
168 ModelAndView result = dictionary.saveVarbind(request, response);
169 return result.getViewName();
175 * @param request the request
176 * @param response the response
178 * @throws IOException Signals that an I/O exception has occurred.
180 public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws IOException {
182 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
183 ModelAndView result = dictionary.saveServiceType(request, response);
184 return result.getViewName();
190 * @param request the request
191 * @param response the response
193 * @throws IOException Signals that an I/O exception has occurred.
195 public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws IOException {
197 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
198 ModelAndView result = dictionary.saveSiteType(request, response);
199 return result.getViewName();
203 * Save settings dictionary.
205 * @param request the request
206 * @param response the response
208 * @throws IOException Signals that an I/O exception has occurred.
210 public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
212 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
213 ModelAndView result = dictionary.saveSettingsDictionary(request, response);
214 return result.getViewName();
218 * Save rainy day dictionary.
220 * @param request the request
221 * @param response the response
223 * @throws IOException Signals that an I/O exception has occurred.
225 public String saveRainyDayDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
227 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
228 ModelAndView result = dictionary.saveRainyDayDictionary(request, response);
229 return result.getViewName();
233 * Save descriptive dictionary.
235 * @param request the request
236 * @param response the response
238 * @throws IOException Signals that an I/O exception has occurred.
240 public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response)
243 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
244 ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
245 return result.getViewName();
249 * Save action list dictionary.
251 * @param request the request
252 * @param response the response
254 * @throws IOException Signals that an I/O exception has occurred.
256 public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response)
259 FirewallDictionaryController dictionary = new FirewallDictionaryController();
260 ModelAndView result = dictionary.saveActionListDictionary(request, response);
261 return result.getViewName();
265 * Save protocol list dictionary.
267 * @param request the request
268 * @param response the response
270 * @throws IOException Signals that an I/O exception has occurred.
272 public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response)
275 FirewallDictionaryController dictionary = new FirewallDictionaryController();
276 ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
277 return result.getViewName();
281 * Save zone dictionary.
283 * @param request the request
284 * @param response the response
286 * @throws IOException Signals that an I/O exception has occurred.
288 public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
290 FirewallDictionaryController dictionary = new FirewallDictionaryController();
291 ModelAndView result = dictionary.saveZoneDictionary(request, response);
292 return result.getViewName();
296 * Save security zone dictionary.
298 * @param request the request
299 * @param response the response
301 * @throws IOException Signals that an I/O exception has occurred.
303 public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response)
306 FirewallDictionaryController dictionary = new FirewallDictionaryController();
307 ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
308 return result.getViewName();
312 * Save prefix list dictionary.
314 * @param request the request
315 * @param response the response
317 * @throws IOException Signals that an I/O exception has occurred.
319 public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response)
322 FirewallDictionaryController dictionary = new FirewallDictionaryController();
323 ModelAndView result = dictionary.savePrefixListDictionary(request, response);
324 return result.getViewName();
328 * Save address group dictionary.
330 * @param request the request
331 * @param response the response
333 * @throws IOException Signals that an I/O exception has occurred.
335 public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response)
338 FirewallDictionaryController dictionary = new FirewallDictionaryController();
339 ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
340 return result.getViewName();
344 * Save service group dictionary.
346 * @param request the request
347 * @param response the response
349 * @throws IOException Signals that an I/O exception has occurred.
351 public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response)
354 FirewallDictionaryController dictionary = new FirewallDictionaryController();
355 ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
356 return result.getViewName();
360 * Save service list dictionary.
362 * @param request the request
363 * @param response the response
365 * @throws IOException Signals that an I/O exception has occurred.
367 public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response)
370 FirewallDictionaryController dictionary = new FirewallDictionaryController();
371 ModelAndView result = dictionary.saveServiceListDictionary(request, response);
372 return result.getViewName();
376 * Save term list dictionary.
378 * @param request the request
379 * @param response the response
381 * @throws IOException Signals that an I/O exception has occurred.
383 public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
385 FirewallDictionaryController dictionary = new FirewallDictionaryController();
386 ModelAndView result = dictionary.saveTermListDictionary(request, response);
387 return result.getViewName();
393 * Save micro service location dictionary.
395 * @param request the request
396 * @param response the response
398 * @throws IOException Signals that an I/O exception has occurred.
400 public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response)
403 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
404 ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
405 return result.getViewName();
409 * Save micro service config name dictionary.
411 * @param request the request
412 * @param response the response
414 * @throws IOException Signals that an I/O exception has occurred.
416 public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response)
419 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
420 ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
421 return result.getViewName();
425 * Save micro service dictionary data.
427 * @param request the request
428 * @param response the response
430 * @throws IOException Signals that an I/O exception has occurred.
432 public String saveMicroServiceDictionaryData(HttpServletRequest request, HttpServletResponse response)
435 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
436 ModelAndView result = dictionary.saveDictionaryData(request, response);
437 return result.getViewName();
441 * Save DCAEUUID dictionary.
443 * @param request the request
444 * @param response the response
446 * @throws IOException Signals that an I/O exception has occurred.
448 public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
450 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
451 ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
452 return result.getViewName();
456 * Save micro service models dictionary.
458 * @param request the request
459 * @param response the response
461 * @throws IOException Signals that an I/O exception has occurred.
463 public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response)
466 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
467 ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
468 return result.getViewName();
472 * Save micro service dictionary.
474 * @param request the request
475 * @param response the response
477 * @throws IOException Signals that an I/O exception has occurred.
479 public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response)
482 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
483 ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
484 return result.getViewName();
488 * Save optimization models dictionary.
490 * @param request the request
491 * @param response the response
493 * @throws IOException Signals that an I/O exception has occurred.
495 public String saveOptimizationModelsDictionary(HttpServletRequest request, HttpServletResponse response)
498 OptimizationDictionaryController dictionary = new OptimizationDictionaryController();
499 ModelAndView result = dictionary.saveOptimizationModelsDictionary(request, response);
500 return result.getViewName();
504 * Save PS service dictionary.
506 * @param request the request
507 * @param response the response
509 * @throws IOException Signals that an I/O exception has occurred.
511 public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
513 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
514 ModelAndView result = dictionary.savePSServiceDictionary(request, response);
515 return result.getViewName();
519 * Save PS resource dictionary.
521 * @param request the request
522 * @param response the response
524 * @throws IOException Signals that an I/O exception has occurred.
526 public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response)
529 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
530 ModelAndView result = dictionary.savePSResourceDictionary(request, response);
531 return result.getViewName();
535 * Save PS type dictionary.
537 * @param request the request
538 * @param response the response
540 * @throws IOException Signals that an I/O exception has occurred.
542 public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
544 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
545 ModelAndView result = dictionary.savePSTypeDictionary(request, response);
546 return result.getViewName();
550 * Save PS closed loop dictionary.
552 * @param request the request
553 * @param response the response
555 * @throws IOException Signals that an I/O exception has occurred.
557 public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response)
560 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
561 ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
562 return result.getViewName();
566 * Save PS group scope dictionary.
568 * @param request the request
569 * @param response the response
571 * @throws IOException Signals that an I/O exception has occurred.
573 public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response)
576 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
577 ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
578 return result.getViewName();
582 * Save risk type dictionary.
584 * @param request the request
585 * @param response the response
587 * @throws IOException Signals that an I/O exception has occurred.
589 public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
591 SafePolicyController dictionary = new SafePolicyController();
592 ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
593 return result.getViewName();
597 * Save safe policy warning dictionary.
599 * @param request the request
600 * @param response the response
602 * @throws IOException Signals that an I/O exception has occurred.
604 public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response)
606 SafePolicyController dictionary = new SafePolicyController();
607 ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
608 return result.getViewName();
613 * Gets the onap dictionary.
615 * @param response the response
616 * @return the onap dictionary
619 * Methods that call the controller get methods directly to get dictionary data
621 public void getOnapDictionary(HttpServletResponse response) {
622 DictionaryController dictionary = new DictionaryController();
623 dictionary.getOnapNameDictionaryEntityData(response);
627 * Gets the attribute dictionary.
629 * @param response the response
630 * @return the attribute dictionary
632 public void getAttributeDictionary(HttpServletResponse response) {
633 DictionaryController dictionary = new DictionaryController();
634 dictionary.getAttributeDictionaryEntityData(response);
638 * Gets the action policy dictionary.
640 * @param response the response
641 * @return the action policy dictionary
643 public void getActionPolicyDictionary(HttpServletResponse response) {
644 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
645 action.getActionPolicyDictionaryEntityData(response);
649 * Gets the BRMS param dictionary.
651 * @param response the response
652 * @return the BRMS param dictionary
654 public void getBRMSParamDictionary(HttpServletResponse response) {
655 BRMSDictionaryController dictionary = new BRMSDictionaryController();
656 dictionary.getBRMSParamDictionaryEntityData(response);
660 * Gets the VSCL action.
662 * @param response the response
663 * @return the VSCL action
665 public void getVSCLAction(HttpServletResponse response) {
666 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
667 dictionary.getVSCLActionDictionaryEntityData(response);
673 * @param response the response
674 * @return the vnf type
676 public void getVnfType(HttpServletResponse response) {
677 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
678 dictionary.getVNFTypeDictionaryEntityData(response);
682 * Gets the PEP options.
684 * @param response the response
685 * @return the PEP options
687 public void getPEPOptions(HttpServletResponse response) {
688 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
689 dictionary.getPEPOptionsDictionaryEntityData(response);
695 * @param response the response
696 * @return the varbind
698 public void getVarbind(HttpServletResponse response) {
699 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
700 dictionary.getVarbindDictionaryEntityData(response);
704 * Gets the service type.
706 * @param response the response
707 * @return the service type
709 public void getServiceType(HttpServletResponse response) {
710 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
711 dictionary.getClosedLoopServiceDictionaryEntityData(response);
715 * Gets the site type.
717 * @param response the response
718 * @return the site type
720 public void getSiteType(HttpServletResponse response) {
721 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
722 dictionary.getClosedLoopSiteDictionaryEntityData(response);
726 * Gets the settings dictionary.
728 * @param response the response
729 * @return the settings dictionary
731 public void getSettingsDictionary(HttpServletResponse response) {
732 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
733 dictionary.getSettingsDictionaryEntityData(response);
737 * Gets the rainy day dictionary.
739 * @param response the response
740 * @return the rainy day dictionary
742 public void getRainyDayDictionary(HttpServletResponse response) {
743 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
744 dictionary.getRainyDayDictionaryEntityData(response);
748 * Gets the descriptive dictionary.
750 * @param response the response
751 * @return the descriptive dictionary
753 public void getDescriptiveDictionary(HttpServletResponse response) {
754 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
755 dictionary.getDescriptiveDictionaryEntityData(response);
759 * Gets the action list dictionary.
761 * @param response the response
762 * @return the action list dictionary
764 public void getActionListDictionary(HttpServletResponse response) {
765 FirewallDictionaryController dictionary = new FirewallDictionaryController();
766 dictionary.getActionListDictionaryEntityData(response);
770 * Gets the protocol list dictionary.
772 * @param response the response
773 * @return the protocol list dictionary
775 public void getProtocolListDictionary(HttpServletResponse response) {
776 FirewallDictionaryController dictionary = new FirewallDictionaryController();
777 dictionary.getProtocolListDictionaryEntityData(response);
781 * Gets the zone dictionary.
783 * @param response the response
784 * @return the zone dictionary
786 public void getZoneDictionary(HttpServletResponse response) {
787 FirewallDictionaryController dictionary = new FirewallDictionaryController();
788 dictionary.getZoneDictionaryEntityData(response);
792 * Gets the security zone dictionary.
794 * @param response the response
795 * @return the security zone dictionary
797 public void getSecurityZoneDictionary(HttpServletResponse response) {
798 FirewallDictionaryController dictionary = new FirewallDictionaryController();
799 dictionary.getSecurityZoneDictionaryEntityData(response);
803 * Gets the prefix list dictionary.
805 * @param response the response
806 * @return the prefix list dictionary
808 public void getPrefixListDictionary(HttpServletResponse response) {
809 FirewallDictionaryController dictionary = new FirewallDictionaryController();
810 dictionary.getPrefixListDictionaryEntityData(response);
814 * Gets the address group dictionary.
816 * @param response the response
817 * @return the address group dictionary
819 public void getAddressGroupDictionary(HttpServletResponse response) {
820 FirewallDictionaryController dictionary = new FirewallDictionaryController();
821 dictionary.getAddressGroupDictionaryEntityData(response);
825 * Gets the service group dictionary.
827 * @param response the response
828 * @return the service group dictionary
830 public void getServiceGroupDictionary(HttpServletResponse response) {
831 FirewallDictionaryController dictionary = new FirewallDictionaryController();
832 dictionary.getServiceGroupDictionaryEntityData(response);
836 * Gets the service list dictionary.
838 * @param response the response
839 * @return the service list dictionary
841 public void getServiceListDictionary(HttpServletResponse response) {
842 FirewallDictionaryController dictionary = new FirewallDictionaryController();
843 dictionary.getServiceListDictionaryEntityData(response);
847 * Gets the term list dictionary.
849 * @param response the response
850 * @return the term list dictionary
852 public void getTermListDictionary(HttpServletResponse response) {
853 FirewallDictionaryController dictionary = new FirewallDictionaryController();
854 dictionary.getTermListDictionaryEntityData(response);
859 * Gets the micro service location dictionary.
861 * @param response the response
862 * @return the micro service location dictionary
864 public void getMicroServiceLocationDictionary(HttpServletResponse response) {
865 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
866 dictionary.getMicroServiceLocationDictionaryEntityData(response);
870 * Gets the micro service config name dictionary.
872 * @param response the response
873 * @return the micro service config name dictionary
875 public void getMicroServiceConfigNameDictionary(HttpServletResponse response) {
876 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
877 dictionary.getMicroServiceConfigNameDictionaryEntityData(response);
881 * Gets the micro service dictionary data.
883 * @param response the response
884 * @return the micro service dictionary data
886 public void getMicroServiceDictionaryData(HttpServletResponse response) {
887 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
888 dictionary.getMicroServiceDictNameDictionaryEntityData(response);
892 * Gets the DCAEUUID dictionary.
894 * @param response the response
895 * @return the DCAEUUID dictionary
897 public void getDCAEUUIDDictionary(HttpServletResponse response) {
898 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
899 dictionary.getDCAEUUIDDictionaryEntityData(response);
903 * Gets the micro service models dictionary.
905 * @param response the response
906 * @return the micro service models dictionary
908 public void getMicroServiceModelsDictionary(HttpServletResponse response) {
909 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
910 dictionary.getMicroServiceModelsDictionaryEntityData(response);
914 * Gets the micro service dictionary.
916 * @param response the response
917 * @return the micro service dictionary
919 public void getMicroServiceDictionary(HttpServletResponse response) {
920 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
921 dictionary.getMicroServiceModelsDictionaryEntityData(response);
925 * Gets the optimization models dictionary.
927 * @param response the response
928 * @return the optimization models dictionary
930 public void getOptimizationModelsDictionary(HttpServletResponse response) {
931 OptimizationDictionaryController dictionary = new OptimizationDictionaryController();
932 dictionary.getOptimizationModelsDictionaryEntityData(response);
936 * Gets the PS service dictionary.
938 * @param response the response
939 * @return the PS service dictionary
941 public void getPSServiceDictionary(HttpServletResponse response) {
942 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
943 dictionary.getPSServiceEntityData(response);
947 * Gets the PS resource dictionary.
949 * @param response the response
950 * @return the PS resource dictionary
952 public void getPSResourceDictionary(HttpServletResponse response) {
953 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
954 dictionary.getPSResourceEntityData(response);
958 * Gets the PS type dictionary.
960 * @param response the response
961 * @return the PS type dictionary
963 public void getPSTypeDictionary(HttpServletResponse response) {
964 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
965 dictionary.getPSTypeEntityData(response);
969 * Gets the PS closed loop dictionary.
971 * @param response the response
972 * @return the PS closed loop dictionary
974 public void getPSClosedLoopDictionary(HttpServletResponse response) {
975 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
976 dictionary.getPSClosedLoopEntityData(response);
980 * Gets the PS group scope dictionary.
982 * @param response the response
983 * @return the PS group scope dictionary
985 public void getPSGroupScopeDictionary(HttpServletResponse response) {
986 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
987 dictionary.getGroupPolicyScopeEntityData(response);
991 * Gets the risk type dictionary.
993 * @param response the response
994 * @return the risk type dictionary
996 public void getRiskTypeDictionary(HttpServletResponse response) {
997 SafePolicyController dictionary = new SafePolicyController();
998 dictionary.getRiskTypeDictionaryEntityData(response);
1002 * Gets the safe policy warning dictionary.
1004 * @param response the response
1005 * @return the safe policy warning dictionary
1007 public void getSafePolicyWarningDictionary(HttpServletResponse response) {
1008 SafePolicyController dictionary = new SafePolicyController();
1009 dictionary.getSafePolicyWarningeEntityData(response);