EMMA�Coverage�Report�(generated�Fri�Sep�15�10:32:43�EDT�2006)
[all�classes][edu.iu.uis.sit.portal.portlet.admin.web]

COVERAGE�SUMMARY�FOR�SOURCE�FILE�[PortletApplicationDeleteController.java]

nameclass,�%method,�%block,�%line,�%
PortletApplicationDeleteController.java100%�(1/1)100%�(6/6)100%�(50/50)100%�(13/13)

COVERAGE�BREAKDOWN�BY�CLASS�AND�METHOD

nameclass,�%method,�%block,�%line,�%
class�PortletApplicationDeleteController100%�(1/1)100%�(6/6)100%�(50/50)100%�(13/13)
PortletApplicationDeleteController�():�void100%�(1/1)100%�(3/3)100%�(1/1)
formBackingObject�(PortletRequest):�Object100%�(1/1)100%�(17/17)100%�(3/3)
getAdminService�():�AdminService100%�(1/1)100%�(3/3)100%�(1/1)
onSubmitAction�(Object):�void100%�(1/1)100%�(8/8)100%�(3/3)
onSubmitRender�(Object):�ModelAndView100%�(1/1)100%�(15/15)100%�(3/3)
setAdminService�(AdminService):�void100%�(1/1)100%�(4/4)100%�(2/2)

1package�edu.iu.uis.sit.portal.portlet.admin.web;
2
3import�javax.portlet.PortletRequest;
4
5import�org.springframework.web.portlet.ModelAndView;
6import�org.springframework.web.portlet.mvc.SimpleFormController;
7
8import�edu.iu.uis.sit.portal.portlet.admin.domain.PortletApplication;
9import�edu.iu.uis.sit.portal.portlet.admin.services.AdminService;
10
11public�class�PortletApplicationDeleteController�extends�SimpleFormController�{
12
13��������private�AdminService�adminService;
14
15��������protected�void�onSubmitAction(Object�command)�throws�Exception�{
16����������������PortletApplication�portletApplication�=�(PortletApplication)�command;
17����������������getAdminService().deletePortletApplication(portletApplication);
18��������}
19
20��������protected�ModelAndView�onSubmitRender(Object�command)�throws�Exception�{
21����������������ModelAndView�modelAndView�=�new�ModelAndView("displayPortletApplications");
22����������������modelAndView.addObject("portletApplications",�getAdminService().getPortalConfig().getPortletApplications());
23����������������return�modelAndView;
24��������}
25
26��������protected�Object�formBackingObject(PortletRequest�request)�throws�Exception�{
27����������������if�(request.getParameter("portletApplicationId")�!=�null)�{
28������������������������return�getAdminService().findPortletApplicationById(Long.parseLong(request.getParameter("portletApplicationId")));
29����������������}
30����������������return�new�PortletApplication();
31��������}
32
33��������public�AdminService�getAdminService()�{
34����������������return�adminService;
35��������}
36
37��������public�void�setAdminService(AdminService�adminService)�{
38����������������this.adminService�=�adminService;
39��������}
40
41}

[all�classes][edu.iu.uis.sit.portal.portlet.admin.web]
EMMA�2.0.5312�(C)�Vladimir�Roubtsov