1 package org.exoplatform.services.portletcontainer; 2 3 import java.util.Collection ; 4 import java.util.Locale ; 5 import java.util.Map ; 6 import java.util.ResourceBundle ; 7 8 import javax.portlet.PortletMode; 9 import javax.portlet.WindowState; 10 import javax.servlet.ServletContext ; 11 import javax.servlet.http.HttpServletRequest ; 12 import javax.servlet.http.HttpServletResponse ; 13 import org.exoplatform.services.portletcontainer.pci.*; 14 import org.exoplatform.services.portletcontainer.pci.model.PortletApp; 15 16 17 21 22 29 public interface PortletContainerService { 30 31 public void setPortletContainerName(String containerName); 32 33 public void setMajorVersion(int majorVersion); 34 35 public void setMinorVersion(int minorVersion); 36 37 public void setProperties(Map properties); 38 39 public void setSupportedPortletModesWithDescriptions(Collection portletModes); 40 41 public void setSupportedWindowStatesWithDescriptions(Collection windowStates); 42 43 public Collection getSupportedPortletModes(); 44 45 public Collection getSupportedWindowStates(); 46 47 public Collection getSupportedPortletModesWithDescriptions(); 48 49 public Collection getSupportedWindowStatesWithDescriptions(); 50 51 public Collection getPortletModes(String portletAppName, String portletName, String markup); 52 53 public boolean isModeSuported(String portletAppName, String portletName, 54 String markup, PortletMode mode); 55 56 public Collection getWindowStates(String portletApplicationName); 57 58 public boolean isStateSupported(WindowState state, String portletApplication); 59 60 public Map getAllPortletMetaData(); 61 62 public ResourceBundle getBundle(HttpServletRequest request, 63 HttpServletResponse response, 64 String portletAppName, 65 String portletName, 66 Locale locale) 67 throws PortletContainerException; 68 69 public void setPortletPreference(Input input, Map preferences) 70 throws PortletContainerException; 71 72 public Map getPortletPreference(Input input); 73 74 public ActionOutput processAction(HttpServletRequest request, 75 HttpServletResponse response, 76 ActionInput input) 77 throws PortletContainerException; 78 79 public RenderOutput render(HttpServletRequest request, 80 HttpServletResponse response, 81 RenderInput input) 82 throws PortletContainerException; 83 84 } 85 | Popular Tags |