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;
25 import javax.servlet.http.HttpServletRequest;
26 import javax.servlet.http.HttpServletResponse;
28 import org.onap.policy.pap.xacml.rest.controller.ActionPolicyDictionaryController;
29 import org.onap.policy.pap.xacml.rest.controller.BRMSDictionaryController;
30 import org.onap.policy.pap.xacml.rest.controller.ClosedLoopDictionaryController;
31 import org.onap.policy.pap.xacml.rest.controller.DecisionPolicyDictionaryController;
32 import org.onap.policy.pap.xacml.rest.controller.DescriptiveDictionaryController;
33 import org.onap.policy.pap.xacml.rest.controller.DictionaryController;
34 import org.onap.policy.pap.xacml.rest.controller.FirewallDictionaryController;
35 import org.onap.policy.pap.xacml.rest.controller.MicroServiceDictionaryController;
36 import org.onap.policy.pap.xacml.rest.controller.OptimizationDictionaryController;
37 import org.onap.policy.pap.xacml.rest.controller.PolicyScopeDictionaryController;
38 import org.onap.policy.pap.xacml.rest.controller.SafePolicyController;
39 import org.springframework.stereotype.Service;
40 import org.springframework.web.servlet.ModelAndView;
42 // TODO: Auto-generated Javadoc
44 * The Class DictionaryService.
46 @Service("DictionaryService")
47 public class DictionaryService {
50 * Save onap dictionary.
52 * @param request the request
53 * @param response the response
55 * @throws IOException Signals that an I/O exception has occurred.
58 * Methods that call the controller method directly to Save and Update dictionary data
60 public String saveOnapDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
62 DictionaryController dictionary = new DictionaryController();
63 ModelAndView result = dictionary.saveOnapDictionary(request, response);
64 return result.getViewName();
68 * Save attribute dictionary.
70 * @param request the request
71 * @param response the response
73 * @throws IOException Signals that an I/O exception has occurred.
75 public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
77 DictionaryController dictionary = new DictionaryController();
78 ModelAndView result = dictionary.saveAttributeDictionary(request, response);
79 return result.getViewName();
83 * Save action policy dictionary.
85 * @param request the request
86 * @param response the response
88 * @throws IOException Signals that an I/O exception has occurred.
90 public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response)
93 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
94 ModelAndView result = action.saveActionPolicyDictionary(request, response);
95 return result.getViewName();
99 * Save BRMS param dictionary.
101 * @param request the request
102 * @param response the response
104 * @throws IOException Signals that an I/O exception has occurred.
106 public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
108 BRMSDictionaryController dictionary = new BRMSDictionaryController();
109 ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
110 return result.getViewName();
116 * @param request the request
117 * @param response the response
119 * @throws IOException Signals that an I/O exception has occurred.
121 public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws IOException {
123 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
124 ModelAndView result = dictionary.saveVSCLAction(request, response);
125 return result.getViewName();
131 * @param request the request
132 * @param response the response
134 * @throws IOException Signals that an I/O exception has occurred.
136 public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws IOException {
138 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
139 ModelAndView result = dictionary.saveVnfType(request, response);
140 return result.getViewName();
146 * @param request the request
147 * @param response the response
149 * @throws IOException Signals that an I/O exception has occurred.
151 public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws IOException {
153 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
154 ModelAndView result = dictionary.savePEPOptions(request, response);
155 return result.getViewName();
161 * @param request the request
162 * @param response the response
164 * @throws IOException Signals that an I/O exception has occurred.
166 public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws IOException {
168 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
169 ModelAndView result = dictionary.saveVarbind(request, response);
170 return result.getViewName();
176 * @param request the request
177 * @param response the response
179 * @throws IOException Signals that an I/O exception has occurred.
181 public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws IOException {
183 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
184 ModelAndView result = dictionary.saveServiceType(request, response);
185 return result.getViewName();
191 * @param request the request
192 * @param response the response
194 * @throws IOException Signals that an I/O exception has occurred.
196 public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws IOException {
198 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
199 ModelAndView result = dictionary.saveSiteType(request, response);
200 return result.getViewName();
204 * Save settings dictionary.
206 * @param request the request
207 * @param response the response
209 * @throws IOException Signals that an I/O exception has occurred.
211 public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
213 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
214 ModelAndView result = dictionary.saveSettingsDictionary(request, response);
215 return result.getViewName();
219 * Save rainy day dictionary.
221 * @param request the request
222 * @param response the response
224 * @throws IOException Signals that an I/O exception has occurred.
226 public String saveRainyDayDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
228 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
229 ModelAndView result = dictionary.saveRainyDayDictionary(request, response);
230 return result.getViewName();
234 * Save descriptive dictionary.
236 * @param request the request
237 * @param response the response
239 * @throws IOException Signals that an I/O exception has occurred.
241 public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response)
244 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
245 ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
246 return result.getViewName();
250 * Save action list dictionary.
252 * @param request the request
253 * @param response the response
255 * @throws IOException Signals that an I/O exception has occurred.
257 public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response)
260 FirewallDictionaryController dictionary = new FirewallDictionaryController();
261 ModelAndView result = dictionary.saveActionListDictionary(request, response);
262 return result.getViewName();
266 * Save protocol list dictionary.
268 * @param request the request
269 * @param response the response
271 * @throws IOException Signals that an I/O exception has occurred.
273 public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response)
276 FirewallDictionaryController dictionary = new FirewallDictionaryController();
277 ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
278 return result.getViewName();
282 * Save zone dictionary.
284 * @param request the request
285 * @param response the response
287 * @throws IOException Signals that an I/O exception has occurred.
289 public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
291 FirewallDictionaryController dictionary = new FirewallDictionaryController();
292 ModelAndView result = dictionary.saveZoneDictionary(request, response);
293 return result.getViewName();
297 * Save security zone dictionary.
299 * @param request the request
300 * @param response the response
302 * @throws IOException Signals that an I/O exception has occurred.
304 public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response)
307 FirewallDictionaryController dictionary = new FirewallDictionaryController();
308 ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
309 return result.getViewName();
313 * Save prefix list dictionary.
315 * @param request the request
316 * @param response the response
318 * @throws IOException Signals that an I/O exception has occurred.
320 public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response)
323 FirewallDictionaryController dictionary = new FirewallDictionaryController();
324 ModelAndView result = dictionary.savePrefixListDictionary(request, response);
325 return result.getViewName();
329 * Save address group dictionary.
331 * @param request the request
332 * @param response the response
334 * @throws IOException Signals that an I/O exception has occurred.
336 public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response)
339 FirewallDictionaryController dictionary = new FirewallDictionaryController();
340 ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
341 return result.getViewName();
345 * Save service group dictionary.
347 * @param request the request
348 * @param response the response
350 * @throws IOException Signals that an I/O exception has occurred.
352 public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response)
355 FirewallDictionaryController dictionary = new FirewallDictionaryController();
356 ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
357 return result.getViewName();
361 * Save service list dictionary.
363 * @param request the request
364 * @param response the response
366 * @throws IOException Signals that an I/O exception has occurred.
368 public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response)
371 FirewallDictionaryController dictionary = new FirewallDictionaryController();
372 ModelAndView result = dictionary.saveServiceListDictionary(request, response);
373 return result.getViewName();
377 * Save term list dictionary.
379 * @param request the request
380 * @param response the response
382 * @throws IOException Signals that an I/O exception has occurred.
384 public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
386 FirewallDictionaryController dictionary = new FirewallDictionaryController();
387 ModelAndView result = dictionary.saveTermListDictionary(request, response);
388 return result.getViewName();
392 * Save micro service location dictionary.
394 * @param request the request
395 * @param response the response
397 * @throws IOException Signals that an I/O exception has occurred.
399 public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response)
402 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
403 ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
404 return result.getViewName();
408 * Save micro service config name dictionary.
410 * @param request the request
411 * @param response the response
413 * @throws IOException Signals that an I/O exception has occurred.
415 public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response)
418 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
419 ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
420 return result.getViewName();
424 * Save micro service dictionary data.
426 * @param request the request
427 * @param response the response
429 * @throws IOException Signals that an I/O exception has occurred.
431 public String saveMicroServiceDictionaryData(HttpServletRequest request, HttpServletResponse response)
434 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
435 ModelAndView result = dictionary.saveDictionaryData(request, response);
436 return result.getViewName();
440 * Save DCAEUUID dictionary.
442 * @param request the request
443 * @param response the response
445 * @throws IOException Signals that an I/O exception has occurred.
447 public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
449 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
450 ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
451 return result.getViewName();
455 * Save micro service models dictionary.
457 * @param request the request
458 * @param response the response
460 * @throws IOException Signals that an I/O exception has occurred.
462 public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response)
465 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
466 ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
467 return result.getViewName();
471 * Save micro service dictionary.
473 * @param request the request
474 * @param response the response
476 * @throws IOException Signals that an I/O exception has occurred.
478 public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response)
481 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
482 ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
483 return result.getViewName();
487 * Save optimization models dictionary.
489 * @param request the request
490 * @param response the response
492 * @throws IOException Signals that an I/O exception has occurred.
494 public String saveOptimizationModelsDictionary(HttpServletRequest request, HttpServletResponse response)
497 OptimizationDictionaryController dictionary = new OptimizationDictionaryController();
498 ModelAndView result = dictionary.saveOptimizationModelsDictionary(request, response);
499 return result.getViewName();
503 * Save PS service dictionary.
505 * @param request the request
506 * @param response the response
508 * @throws IOException Signals that an I/O exception has occurred.
510 public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
512 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
513 ModelAndView result = dictionary.savePSServiceDictionary(request, response);
514 return result.getViewName();
518 * Save PS resource dictionary.
520 * @param request the request
521 * @param response the response
523 * @throws IOException Signals that an I/O exception has occurred.
525 public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response)
528 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
529 ModelAndView result = dictionary.savePSResourceDictionary(request, response);
530 return result.getViewName();
534 * Save PS type dictionary.
536 * @param request the request
537 * @param response the response
539 * @throws IOException Signals that an I/O exception has occurred.
541 public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
543 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
544 ModelAndView result = dictionary.savePSTypeDictionary(request, response);
545 return result.getViewName();
549 * Save PS closed loop dictionary.
551 * @param request the request
552 * @param response the response
554 * @throws IOException Signals that an I/O exception has occurred.
556 public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response)
559 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
560 ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
561 return result.getViewName();
565 * Save PS group scope dictionary.
567 * @param request the request
568 * @param response the response
570 * @throws IOException Signals that an I/O exception has occurred.
572 public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response)
575 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
576 ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
577 return result.getViewName();
581 * Save risk type dictionary.
583 * @param request the request
584 * @param response the response
586 * @throws IOException Signals that an I/O exception has occurred.
588 public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws IOException {
590 SafePolicyController dictionary = new SafePolicyController();
591 ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
592 return result.getViewName();
596 * Save safe policy warning dictionary.
598 * @param request the request
599 * @param response the response
601 * @throws IOException Signals that an I/O exception has occurred.
603 public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response)
605 SafePolicyController dictionary = new SafePolicyController();
606 ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
607 return result.getViewName();
611 * Gets the onap dictionary.
613 * @param response the response
614 * @return the onap dictionary
617 * Methods that call the controller get methods directly to get dictionary data
619 public void getOnapDictionary(HttpServletResponse response) {
620 DictionaryController dictionary = new DictionaryController();
621 dictionary.getOnapNameDictionaryEntityData(response);
625 * Gets the attribute dictionary.
627 * @param response the response
628 * @return the attribute dictionary
630 public void getAttributeDictionary(HttpServletResponse response) {
631 DictionaryController dictionary = new DictionaryController();
632 dictionary.getAttributeDictionaryEntityData(response);
636 * Gets the action policy dictionary.
638 * @param response the response
639 * @return the action policy dictionary
641 public void getActionPolicyDictionary(HttpServletResponse response) {
642 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
643 action.getActionPolicyDictionaryEntityData(response);
647 * Gets the BRMS param dictionary.
649 * @param response the response
650 * @return the BRMS param dictionary
652 public void getBRMSParamDictionary(HttpServletResponse response) {
653 BRMSDictionaryController dictionary = new BRMSDictionaryController();
654 dictionary.getBRMSParamDictionaryEntityData(response);
658 * Gets the VSCL action.
660 * @param response the response
661 * @return the VSCL action
663 public void getVSCLAction(HttpServletResponse response) {
664 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
665 dictionary.getVSCLActionDictionaryEntityData(response);
671 * @param response the response
672 * @return the vnf type
674 public void getVnfType(HttpServletResponse response) {
675 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
676 dictionary.getVNFTypeDictionaryEntityData(response);
680 * Gets the PEP options.
682 * @param response the response
683 * @return the PEP options
685 public void getPEPOptions(HttpServletResponse response) {
686 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
687 dictionary.getPEPOptionsDictionaryEntityData(response);
693 * @param response the response
694 * @return the varbind
696 public void getVarbind(HttpServletResponse response) {
697 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
698 dictionary.getVarbindDictionaryEntityData(response);
702 * Gets the service type.
704 * @param response the response
705 * @return the service type
707 public void getServiceType(HttpServletResponse response) {
708 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
709 dictionary.getClosedLoopServiceDictionaryEntityData(response);
713 * Gets the site type.
715 * @param response the response
716 * @return the site type
718 public void getSiteType(HttpServletResponse response) {
719 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
720 dictionary.getClosedLoopSiteDictionaryEntityData(response);
724 * Gets the settings dictionary.
726 * @param response the response
727 * @return the settings dictionary
729 public void getSettingsDictionary(HttpServletResponse response) {
730 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
731 dictionary.getSettingsDictionaryEntityData(response);
735 * Gets the rainy day dictionary.
737 * @param response the response
738 * @return the rainy day dictionary
740 public void getRainyDayDictionary(HttpServletResponse response) {
741 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
742 dictionary.getRainyDayDictionaryEntityData(response);
746 * Gets the descriptive dictionary.
748 * @param response the response
749 * @return the descriptive dictionary
751 public void getDescriptiveDictionary(HttpServletResponse response) {
752 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
753 dictionary.getDescriptiveDictionaryEntityData(response);
757 * Gets the action list dictionary.
759 * @param response the response
760 * @return the action list dictionary
762 public void getActionListDictionary(HttpServletResponse response) {
763 FirewallDictionaryController dictionary = new FirewallDictionaryController();
764 dictionary.getActionListDictionaryEntityData(response);
768 * Gets the protocol list dictionary.
770 * @param response the response
771 * @return the protocol list dictionary
773 public void getProtocolListDictionary(HttpServletResponse response) {
774 FirewallDictionaryController dictionary = new FirewallDictionaryController();
775 dictionary.getProtocolListDictionaryEntityData(response);
779 * Gets the zone dictionary.
781 * @param response the response
782 * @return the zone dictionary
784 public void getZoneDictionary(HttpServletResponse response) {
785 FirewallDictionaryController dictionary = new FirewallDictionaryController();
786 dictionary.getZoneDictionaryEntityData(response);
790 * Gets the security zone dictionary.
792 * @param response the response
793 * @return the security zone dictionary
795 public void getSecurityZoneDictionary(HttpServletResponse response) {
796 FirewallDictionaryController dictionary = new FirewallDictionaryController();
797 dictionary.getSecurityZoneDictionaryEntityData(response);
801 * Gets the prefix list dictionary.
803 * @param response the response
804 * @return the prefix list dictionary
806 public void getPrefixListDictionary(HttpServletResponse response) {
807 FirewallDictionaryController dictionary = new FirewallDictionaryController();
808 dictionary.getPrefixListDictionaryEntityData(response);
812 * Gets the address group dictionary.
814 * @param response the response
815 * @return the address group dictionary
817 public void getAddressGroupDictionary(HttpServletResponse response) {
818 FirewallDictionaryController dictionary = new FirewallDictionaryController();
819 dictionary.getAddressGroupDictionaryEntityData(response);
823 * Gets the service group dictionary.
825 * @param response the response
826 * @return the service group dictionary
828 public void getServiceGroupDictionary(HttpServletResponse response) {
829 FirewallDictionaryController dictionary = new FirewallDictionaryController();
830 dictionary.getServiceGroupDictionaryEntityData(response);
834 * Gets the service list dictionary.
836 * @param response the response
837 * @return the service list dictionary
839 public void getServiceListDictionary(HttpServletResponse response) {
840 FirewallDictionaryController dictionary = new FirewallDictionaryController();
841 dictionary.getServiceListDictionaryEntityData(response);
845 * Gets the term list dictionary.
847 * @param response the response
848 * @return the term list dictionary
850 public void getTermListDictionary(HttpServletResponse response) {
851 FirewallDictionaryController dictionary = new FirewallDictionaryController();
852 dictionary.getTermListDictionaryEntityData(response);
856 * Gets the micro service location dictionary.
858 * @param response the response
859 * @return the micro service location dictionary
861 public void getMicroServiceLocationDictionary(HttpServletResponse response) {
862 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
863 dictionary.getMicroServiceLocationDictionaryEntityData(response);
867 * Gets the micro service config name dictionary.
869 * @param response the response
870 * @return the micro service config name dictionary
872 public void getMicroServiceConfigNameDictionary(HttpServletResponse response) {
873 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
874 dictionary.getMicroServiceConfigNameDictionaryEntityData(response);
878 * Gets the micro service dictionary data.
880 * @param response the response
881 * @return the micro service dictionary data
883 public void getMicroServiceDictionaryData(HttpServletResponse response) {
884 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
885 dictionary.getMicroServiceDictNameDictionaryEntityData(response);
889 * Gets the DCAEUUID dictionary.
891 * @param response the response
892 * @return the DCAEUUID dictionary
894 public void getDCAEUUIDDictionary(HttpServletResponse response) {
895 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
896 dictionary.getDCAEUUIDDictionaryEntityData(response);
900 * Gets the micro service models dictionary.
902 * @param response the response
903 * @return the micro service models dictionary
905 public void getMicroServiceModelsDictionary(HttpServletResponse response) {
906 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
907 dictionary.getMicroServiceModelsDictionaryEntityData(response);
911 * Gets the micro service dictionary.
913 * @param response the response
914 * @return the micro service dictionary
916 public void getMicroServiceDictionary(HttpServletResponse response) {
917 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
918 dictionary.getMicroServiceModelsDictionaryEntityData(response);
922 * Gets the optimization models dictionary.
924 * @param response the response
925 * @return the optimization models dictionary
927 public void getOptimizationModelsDictionary(HttpServletResponse response) {
928 OptimizationDictionaryController dictionary = new OptimizationDictionaryController();
929 dictionary.getOptimizationModelsDictionaryEntityData(response);
933 * Gets the PS service dictionary.
935 * @param response the response
936 * @return the PS service dictionary
938 public void getPSServiceDictionary(HttpServletResponse response) {
939 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
940 dictionary.getPSServiceEntityData(response);
944 * Gets the PS resource dictionary.
946 * @param response the response
947 * @return the PS resource dictionary
949 public void getPSResourceDictionary(HttpServletResponse response) {
950 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
951 dictionary.getPSResourceEntityData(response);
955 * Gets the PS type dictionary.
957 * @param response the response
958 * @return the PS type dictionary
960 public void getPSTypeDictionary(HttpServletResponse response) {
961 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
962 dictionary.getPSTypeEntityData(response);
966 * Gets the PS closed loop dictionary.
968 * @param response the response
969 * @return the PS closed loop dictionary
971 public void getPSClosedLoopDictionary(HttpServletResponse response) {
972 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
973 dictionary.getPSClosedLoopEntityData(response);
977 * Gets the PS group scope dictionary.
979 * @param response the response
980 * @return the PS group scope dictionary
982 public void getPSGroupScopeDictionary(HttpServletResponse response) {
983 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
984 dictionary.getGroupPolicyScopeEntityData(response);
988 * Gets the risk type dictionary.
990 * @param response the response
991 * @return the risk type dictionary
993 public void getRiskTypeDictionary(HttpServletResponse response) {
994 SafePolicyController dictionary = new SafePolicyController();
995 dictionary.getRiskTypeDictionaryEntityData(response);
999 * Gets the safe policy warning dictionary.
1001 * @param response the response
1002 * @return the safe policy warning dictionary
1004 public void getSafePolicyWarningDictionary(HttpServletResponse response) {
1005 SafePolicyController dictionary = new SafePolicyController();
1006 dictionary.getSafePolicyWarningeEntityData(response);