1 16 package org.apache.pluto.portlet.admin.controller; 17 18 import java.io.IOException ; 19 20 import javax.portlet.ActionRequest; 21 import javax.portlet.ActionResponse; 22 import javax.portlet.PortletException; 23 import javax.portlet.RenderRequest; 24 import javax.portlet.RenderResponse; 25 26 import org.apache.pluto.portlet.admin.services.PortletRegistryService; 27 28 29 35 public class PortletEntityRegistryPortlet extends ControllerPortlet { 36 private PortletRegistryService service = null; 37 40 protected void doEdit(RenderRequest request, RenderResponse response) 41 throws PortletException, IOException { 42 log("Edit Mode"); 43 super.doEdit(request, response); 44 } 45 48 protected void doView(RenderRequest request, RenderResponse response) 49 throws PortletException, IOException { 50 log("View Mode"); 51 String perPath = getPortletRegistryFilePath(); 52 log("PER file path = " + perPath); 53 service.getPortletEntityRegistry(request); 55 super.doView(request, response); 56 } 57 60 public void init() throws PortletException { 61 super.init(); 62 service = new PortletRegistryService(); 63 } 64 67 protected void doHelp(RenderRequest request, RenderResponse response) 68 throws PortletException, IOException { 69 log("Help Mode"); 70 super.doHelp(request, response); 71 } 72 75 public void processAction(ActionRequest request, ActionResponse response) 76 throws PortletException, IOException { 77 String action = request.getParameter("action"); 78 log("action param == " + action); 79 143 } 144 } 145 | Popular Tags |