com.silverpeas.portlets.portal
Class SPDesktopServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.silverpeas.portlets.portal.SPDesktopServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SPDesktopServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Constructor Summary
SPDesktopServlet()
           
 
Method Summary
protected  PortletContent getPortletContentObject(String portletWindowName, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  PortletWindowData getPortletWindowDataObject(javax.servlet.http.HttpServletRequest request, PortletContent portletContent, PortletRegistryContext portletRegistryContext, String spContext)
           
protected  com.sun.portal.container.ChannelMode getPortletWindowMode(javax.servlet.http.HttpServletRequest request, String portletWindowName)
          Gets the mode of the portlet window identified by the specified name.
protected  com.sun.portal.container.ChannelMode getPortletWindowModeFromSavedData(javax.servlet.http.HttpServletRequest request, String portletWindowName)
          Returns the portlet window mode for the portlet window from the PortletWindowData that is in the session.
protected  com.sun.portal.container.ChannelState getPortletWindowState(javax.servlet.http.HttpServletRequest request, String portletWindowName)
          Gets the state of the portlet window identified by the specified name.
protected  com.sun.portal.container.ChannelState getPortletWindowStateFromSavedData(javax.servlet.http.HttpServletRequest request, String portletWindowName)
          Returns the portlet window state for the portlet window from the PortletWindowData that is in the session.
protected  String getPresentationURI(javax.servlet.http.HttpServletRequest request)
           
protected  List<String> getVisiblePortletWindows(PortletRegistryContext portletRegistryContext)
          Returns the list of visible portlet windows from the portlet registry.
 void init(javax.servlet.ServletConfig config)
          Reads the DriverConfig.properties file.
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPDesktopServlet

public SPDesktopServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Reads the DriverConfig.properties file. Initializes the Portlet Registry files.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - the ServletConfig Object
Throws:
javax.servlet.ServletException

service

protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

getVisiblePortletWindows

protected List<String> getVisiblePortletWindows(PortletRegistryContext portletRegistryContext)
                                         throws InvokerException
Returns the list of visible portlet windows from the portlet registry.

Parameters:
portletRegistryContext - the PortletRegistryContext Object
Returns:
the list of visible portlet windows from the portlet registry.
Throws:
InvokerException

getPortletWindowState

protected com.sun.portal.container.ChannelState getPortletWindowState(javax.servlet.http.HttpServletRequest request,
                                                                      String portletWindowName)
Gets the state of the portlet window identified by the specified name. It looks for the state in the request (current portlet window). If not found, it looks for it among the available portlets in the session.

Parameters:
request - the HttpServletRequest Object
portletWindowName - the name of the portlet window
Returns:
the state of the specified portlet window.

getPortletWindowMode

protected com.sun.portal.container.ChannelMode getPortletWindowMode(javax.servlet.http.HttpServletRequest request,
                                                                    String portletWindowName)
Gets the mode of the portlet window identified by the specified name. It looks for the mode in the request (current portlet window). If not found, it looks for it among the available portlets in the session.

Parameters:
request - the HttpServletRequest Object
portletWindowName - the name of the portlet window
Returns:
the mode of the specified portlet window.

getPortletWindowStateFromSavedData

protected com.sun.portal.container.ChannelState getPortletWindowStateFromSavedData(javax.servlet.http.HttpServletRequest request,
                                                                                   String portletWindowName)
Returns the portlet window state for the portlet window from the PortletWindowData that is in the session.

Parameters:
request - the HttpServletRequest Object
portletWindowName - the name of the portlet window
Returns:
the portlet window state for the portlet window from session.

getPortletWindowModeFromSavedData

protected com.sun.portal.container.ChannelMode getPortletWindowModeFromSavedData(javax.servlet.http.HttpServletRequest request,
                                                                                 String portletWindowName)
Returns the portlet window mode for the portlet window from the PortletWindowData that is in the session.

Parameters:
request - the HttpServletRequest Object
portletWindowName - the name of the portlet window
Returns:
the portlet window mode for the portlet window from session.

getPortletContentObject

protected PortletContent getPortletContentObject(String portletWindowName,
                                                 javax.servlet.ServletContext context,
                                                 javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response)
                                          throws InvokerException
Throws:
InvokerException

getPortletWindowDataObject

protected PortletWindowData getPortletWindowDataObject(javax.servlet.http.HttpServletRequest request,
                                                       PortletContent portletContent,
                                                       PortletRegistryContext portletRegistryContext,
                                                       String spContext)
                                                throws PortletRegistryException
Throws:
PortletRegistryException

getPresentationURI

protected String getPresentationURI(javax.servlet.http.HttpServletRequest request)


Copyright © 2016 Silverpeas. All Rights Reserved.