Sonar fix forONAP-PAP-REST critical sonar issues
[policy/engine.git] / ONAP-PAP-REST / src / main / java / org / onap / policy / pap / xacml / rest / service / DictionaryService.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-PAP-REST
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.policy.pap.xacml.rest.service;
21
22 import java.io.IOException;
23 import java.io.UnsupportedEncodingException;
24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse;
26
27 import org.onap.policy.common.logging.flexlogger.FlexLogger;
28 import org.onap.policy.common.logging.flexlogger.Logger;
29 import org.onap.policy.pap.xacml.rest.controller.ActionPolicyDictionaryController;
30 import org.onap.policy.pap.xacml.rest.controller.BRMSDictionaryController;
31 import org.onap.policy.pap.xacml.rest.controller.ClosedLoopDictionaryController;
32 import org.onap.policy.pap.xacml.rest.controller.DecisionPolicyDictionaryController;
33 import org.onap.policy.pap.xacml.rest.controller.DescriptiveDictionaryController;
34 import org.onap.policy.pap.xacml.rest.controller.DictionaryController;
35 import org.onap.policy.pap.xacml.rest.controller.EnforcerDictionaryController;
36 import org.onap.policy.pap.xacml.rest.controller.FirewallDictionaryController;
37 import org.onap.policy.pap.xacml.rest.controller.MicroServiceDictionaryController;
38 import org.onap.policy.pap.xacml.rest.controller.PolicyScopeDictionaryController;
39 import org.onap.policy.pap.xacml.rest.controller.SafePolicyController;
40 import org.onap.policy.xacml.api.XACMLErrorConstants;
41 import org.springframework.stereotype.Service;
42 import org.springframework.web.servlet.ModelAndView;
43
44
45 @Service("DictionaryService")
46 public class DictionaryService {
47         
48         private static final Logger LOGGER      = FlexLogger.getLogger(DictionaryService.class);
49
50         /*
51          * Methods that call the controller method directly to Save and Update dictionary data
52          */
53         public String saveOnapDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException {
54                 
55                 DictionaryController dictionary = new DictionaryController();
56                 String responseString = null;
57                         ModelAndView result = dictionary.saveOnapDictionary(request, response);
58                         responseString = result.getViewName();
59                 return responseString;
60                 
61         }
62         
63         public String saveAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
64                 
65                 DictionaryController dictionary = new DictionaryController();
66                 String responseString = null;
67                         ModelAndView result = dictionary.saveAttributeDictionary(request, response);
68                         responseString = result.getViewName();
69                 return responseString;
70         }
71         
72         public String saveActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException {
73                 
74                 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
75                 String responseString = null;
76                         ModelAndView result = action.saveActionPolicyDictionary(request, response);
77                         responseString = result.getViewName();
78                 return responseString;
79         }
80         
81         public String saveBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException {
82                 
83                 BRMSDictionaryController dictionary = new BRMSDictionaryController();
84                 String responseString = null;
85                         ModelAndView result = dictionary.saveBRMSParamDictionary(request, response);
86                         responseString = result.getViewName();
87                 return responseString;
88         }
89         
90         public String saveVSCLAction(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
91                 
92                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
93                 String responseString = null;
94                         ModelAndView result = dictionary.saveVSCLAction(request, response);
95                         responseString = result.getViewName();
96                 return responseString;
97         }
98         
99         public String saveVnfType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
100                 
101                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
102                 String responseString = null;
103                         ModelAndView result = dictionary.saveVnfType(request, response);
104                         responseString = result.getViewName();
105                 return responseString;
106         }
107         
108         public String savePEPOptions(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
109                 
110                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
111                 String responseString = null;
112                         ModelAndView result = dictionary.savePEPOptions(request, response);
113                         responseString = result.getViewName();
114                 return responseString;
115         }
116         
117         public String saveVarbind(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
118                 
119                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
120                 String responseString = null;
121                         ModelAndView result = dictionary.saveVarbind(request, response);
122                         responseString = result.getViewName();
123                 return responseString;
124         }
125         
126         public String saveServiceType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
127                 
128                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
129                 String responseString = null;
130                         ModelAndView result = dictionary.saveServiceType(request, response);
131                         responseString = result.getViewName();
132                 return responseString;
133         }
134         
135         public String saveSiteType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
136                 
137                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
138                 String responseString = null;
139                         ModelAndView result = dictionary.saveSiteType(request, response);
140                         responseString = result.getViewName();
141                 return responseString;
142         }
143         
144         public String saveSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
145                 
146                 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
147                 String responseString = null;
148                         ModelAndView result = dictionary.saveSettingsDictionary(request, response);
149                         responseString = result.getViewName();
150                 return responseString;
151         }
152         
153         public String saveDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
154                 
155                 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
156                 String responseString = null;
157                         ModelAndView result = dictionary.saveDescriptiveDictionary(request, response);
158                         responseString = result.getViewName();
159                 return responseString;
160         }
161         
162         public String saveEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
163                 
164                 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
165                 String responseString = null;
166                         ModelAndView result = dictionary.saveEnforcerDictionary(request, response);
167                         responseString = result.getViewName();
168                 return responseString;
169         }
170         
171         public String saveActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
172                 
173                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
174                 String responseString = null;
175                         ModelAndView result = dictionary.saveActionListDictionary(request, response);
176                         responseString = result.getViewName();
177                 return responseString;
178         }
179         
180         public String saveProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
181                 
182                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
183                 String responseString = null;
184                         ModelAndView result = dictionary.saveProtocolListDictionary(request, response);
185                         responseString = result.getViewName();
186                 return responseString;
187         }
188         
189         public String saveZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
190                 
191                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
192                 String responseString = null;
193                         ModelAndView result = dictionary.saveZoneDictionary(request, response);
194                         responseString = result.getViewName();
195                 return responseString;
196         }
197         
198         public String saveSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
199                 
200                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
201                 String responseString = null;
202                         ModelAndView result = dictionary.saveSecurityZoneDictionary(request, response);
203                         responseString = result.getViewName();
204                 return responseString;
205         }
206         
207         public String savePrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
208                 
209                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
210                 String responseString = null;
211                         ModelAndView result = dictionary.savePrefixListDictionary(request, response);
212                         responseString = result.getViewName();
213                 return responseString;
214         }
215         
216         public String saveAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
217                 
218                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
219                 String responseString = null;
220                         ModelAndView result = dictionary.saveAddressGroupDictionary(request, response);
221                         responseString = result.getViewName();
222                 return responseString;
223         }
224         
225         public String saveServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
226                 
227                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
228                 String responseString = null;
229                         ModelAndView result = dictionary.saveServiceGroupDictionary(request, response);
230                         responseString = result.getViewName();
231                 return responseString;
232         }
233         
234         public String saveServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
235                 
236                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
237                 String responseString = null;
238                         ModelAndView result = dictionary.saveServiceListDictionary(request, response);
239                         responseString = result.getViewName();
240                 return responseString;
241         }
242         
243         public String saveTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
244                 
245                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
246                 String responseString = null;
247                         ModelAndView result = dictionary.saveTermListDictionary(request, response);
248                         responseString = result.getViewName();
249                 return responseString;
250         }
251         
252         
253         
254         
255         public String saveMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
256                 
257                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
258                 String responseString = null;
259                         ModelAndView result = dictionary.saveMicroServiceLocationDictionary(request, response);
260                         responseString = result.getViewName();
261                 return responseString;
262         }
263         
264         public String saveMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
265                 
266                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
267                 String responseString = null;
268                         ModelAndView result = dictionary.saveMicroServiceConfigNameDictionary(request, response);
269                         responseString = result.getViewName();
270                 return responseString;
271         }
272         
273         public String saveDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
274                 
275                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
276                 String responseString = null;
277                         ModelAndView result = dictionary.saveDCAEUUIDDictionary(request, response);
278                         responseString = result.getViewName();
279                 return responseString;
280         }
281         
282         public String saveMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
283                 
284                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
285                 String responseString = null;
286                         ModelAndView result = dictionary.saveMicroServiceModelsDictionary(request, response);
287                         responseString = result.getViewName();
288                 return responseString;
289         }
290         
291         public String saveMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
292                 
293                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
294                 String responseString = null;
295                         ModelAndView result = dictionary.saveMicroServiceAttributeDictionary(request, response);
296                         responseString = result.getViewName();
297                 return responseString;
298         }
299         
300         public String savePSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
301                 
302                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
303                 String responseString = null;
304                         ModelAndView result = dictionary.savePSServiceDictionary(request, response);
305                         responseString = result.getViewName();
306                 return responseString;
307         }
308         
309         public String savePSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
310                 
311                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
312                 String responseString = null;
313                         ModelAndView result = dictionary.savePSResourceDictionary(request, response);
314                         responseString = result.getViewName();
315                 return responseString;
316         }
317         
318         public String savePSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
319                 
320                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
321                 String responseString = null;
322                         ModelAndView result = dictionary.savePSTypeDictionary(request, response);
323                         responseString = result.getViewName();
324                 return responseString;
325         }
326         
327         public String savePSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
328                 
329                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
330                 String responseString = null;
331                         ModelAndView result = dictionary.savePSClosedLoopDictionary(request, response);
332                         responseString = result.getViewName();
333                 return responseString;
334         }
335         
336         public String savePSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
337                 
338                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
339                 String responseString = null;
340                         ModelAndView result = dictionary.savePSGroupScopeDictionary(request, response);
341                         responseString = result.getViewName();
342                 return responseString;
343         }
344         
345         public String saveRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
346                 
347                 SafePolicyController dictionary = new SafePolicyController();
348                 String responseString = null;
349                         ModelAndView result = dictionary.saveRiskTypeDictionary(request, response);
350                         responseString = result.getViewName();
351                 return responseString;
352         }
353         
354         public String saveSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
355                 SafePolicyController dictionary = new SafePolicyController();
356                 String responseString = null;
357                         ModelAndView result = dictionary.saveSafePolicyWarningDictionary(request, response);
358                         responseString = result.getViewName();
359                 return responseString;
360         }
361         
362         
363         /*
364          * Methods that call the controller get methods directly to get dictionary data
365          */
366         public void getOnapDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
367                 DictionaryController dictionary = new DictionaryController();
368                         dictionary.getOnapNameDictionaryEntityData(request, response);                                  
369         }
370         
371         public void getAttributeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
372                 DictionaryController dictionary = new DictionaryController();
373                         dictionary.getAttributeDictionaryEntityData(request, response);
374         }
375         
376         public void getActionPolicyDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
377                 ActionPolicyDictionaryController action = new ActionPolicyDictionaryController();
378                         action.getActionPolicyDictionaryEntityData(request, response);  
379         }
380         
381         public void getBRMSParamDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
382                 BRMSDictionaryController dictionary = new BRMSDictionaryController();
383                         dictionary.getBRMSParamDictionaryEntityData(request, response);
384         }
385         
386         public void getVSCLAction(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
387                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
388                         dictionary.getVSCLActionDictionaryEntityData(request, response);
389         }
390         
391         public void getVnfType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
392                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
393                         dictionary.getVNFTypeDictionaryEntityData(request, response);
394         }
395         
396         public void getPEPOptions(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
397                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
398                         dictionary.getPEPOptionsDictionaryEntityData(request, response);
399         }
400         
401         public void getVarbind(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
402                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
403                         dictionary.getVarbindDictionaryEntityData(request, response);
404         }
405         
406         public void getServiceType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
407                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
408                         dictionary.getClosedLoopServiceDictionaryEntityData(request, response);
409         }
410         
411         public void getSiteType(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
412                 ClosedLoopDictionaryController dictionary = new ClosedLoopDictionaryController();
413                         dictionary.getClosedLoopSiteDictionaryEntityData(request, response);    
414         }
415         
416         public void getSettingsDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
417                 DecisionPolicyDictionaryController dictionary = new DecisionPolicyDictionaryController();
418                         dictionary.getSettingsDictionaryEntityData(request, response);
419         }
420         
421         public void getDescriptiveDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
422                 DescriptiveDictionaryController dictionary = new DescriptiveDictionaryController();
423                         dictionary.getDescriptiveDictionaryEntityData(request, response);
424         }
425         
426         public void getEnforcerDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
427                 EnforcerDictionaryController dictionary = new EnforcerDictionaryController();
428                         dictionary.getEnforcerDictionaryEntityData(request, response);
429         }
430         
431         public void getActionListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
432                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
433                         dictionary.getActionListDictionaryEntityData(request, response);
434         }
435         
436         public void getProtocolListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
437                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
438                         dictionary.getProtocolListDictionaryEntityData(request, response);
439         }
440         
441         public void getZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
442                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
443                         dictionary.getZoneDictionaryEntityData(request, response);
444         }
445         
446         public void getSecurityZoneDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
447                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
448                         dictionary.getSecurityZoneDictionaryEntityData(request, response);
449         }
450         
451         public void getPrefixListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
452                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
453                         dictionary.getPrefixListDictionaryEntityData(request, response);
454         }
455         
456         public void getAddressGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
457                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
458                         dictionary.getAddressGroupDictionaryEntityData(request, response);
459         }
460         
461         public void getServiceGroupDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
462                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
463                         dictionary.getServiceGroupDictionaryEntityData(request, response);
464         }
465         
466         public void getServiceListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
467                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
468                         dictionary.getServiceListDictionaryEntityData(request, response);
469         }
470         
471         public void getTermListDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
472                 FirewallDictionaryController dictionary = new FirewallDictionaryController();
473                         dictionary.getTermListDictionaryEntityData(request, response);
474         }
475         
476         
477         public void getMicroServiceLocationDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
478                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
479                         dictionary.getMicroServiceLocationDictionaryEntityData(request, response);
480         }
481         
482         public void getMicroServiceConfigNameDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
483                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
484                         dictionary.getMicroServiceConfigNameDictionaryEntityData(request, response);
485         }
486         
487         public void getDCAEUUIDDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
488                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
489                         dictionary.getDCAEUUIDDictionaryEntityData(request, response);
490         }
491         
492         public void getMicroServiceModelsDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
493                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
494                         dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
495         }
496         
497         public void getMicroServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
498                 MicroServiceDictionaryController dictionary = new MicroServiceDictionaryController();
499                         dictionary.getMicroServiceModelsDictionaryEntityData(request, response);
500         }
501         
502         public void getPSServiceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
503                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
504                         dictionary.getPSServiceEntityData(request, response);
505         }
506         
507         public void getPSResourceDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
508                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
509                         dictionary.getPSResourceEntityData(request, response);
510         }
511         
512         public void getPSTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
513                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
514                         dictionary.getPSTypeEntityData(request, response);
515         }
516         
517         public void getPSClosedLoopDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
518                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
519                         dictionary.getPSClosedLoopEntityData(request, response);
520         }
521         
522         public void getPSGroupScopeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
523                 PolicyScopeDictionaryController dictionary = new PolicyScopeDictionaryController();
524                         dictionary.getGroupPolicyScopeEntityData(request, response);
525         }
526         
527         public void getRiskTypeDictionary(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException, IOException{
528                 SafePolicyController dictionary = new SafePolicyController();
529                         dictionary.getOnapNameDictionaryEntityData(request, response);
530         }
531         
532         public void getSafePolicyWarningDictionary(HttpServletRequest request, HttpServletResponse response)  throws UnsupportedEncodingException, IOException{
533                 SafePolicyController dictionary = new SafePolicyController();
534                         dictionary.getSafePolicyWarningeEntityData(request, response);
535         }
536 }