Class SPDesktopServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet
-
- org.silverpeas.web.portlets.portal.SPDesktopServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class SPDesktopServlet extends SilverpeasAuthenticatedHttpServlet
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
SilverpeasHttpServlet.HttpError, SilverpeasHttpServlet.UserSessionStatus
-
-
Constructor Summary
Constructors Constructor Description SPDesktopServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doTrace(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
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 boolean
isUserSpaceAdmin(String spaceId)
-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet
getMainSessionController, getSessionInfo, getSynchronizerTokenService, renewSessionSecurityToken, service, throwUserSessionExpiration
-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
existOpenedUserSession, forbidden, notFound, preconditionFailed, redirectOrForwardService, sendError, sendError, throwHttpForbiddenError, throwHttpForbiddenError, throwHttpNotFoundError, throwHttpNotFoundError, throwHttpPreconditionFailedError, throwHttpPreconditionFailedError
-
-
-
-
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 interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Parameters:
config
- the ServletConfig Object- Throws:
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doPost
in classjavax.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 ObjectportletWindowName
- 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 ObjectportletWindowName
- 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 ObjectportletWindowName
- 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 ObjectportletWindowName
- 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)
-
isUserSpaceAdmin
protected boolean isUserSpaceAdmin(String spaceId)
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doHead
protected void doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doHead
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doPut
protected void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doPut
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doDelete
protected void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doDelete
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doOptions
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doTrace
protected void doTrace(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doTrace
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-