Class PortletWindowInvoker
- java.lang.Object
-
- com.sun.portal.portletcontainer.invoker.WindowInvoker
-
- org.silverpeas.core.web.portlets.portal.portletwindow.PortletWindowInvoker
-
- All Implemented Interfaces:
WindowInvokerConstants
public class PortletWindowInvoker extends WindowInvoker
PortletWindowInvoker, is dervied from the abstract base class WindowInvoker.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JAVAX_PORTLET_TITLE
-
Fields inherited from class com.sun.portal.portletcontainer.invoker.WindowInvoker
localParamKeyList
-
Fields inherited from interface com.sun.portal.portletcontainer.invoker.WindowInvokerConstants
ACTION, DRIVER_ACTION, DRIVER_PARAM_PREFIX, DRIVER_ROLE, DRIVER_SPACEID, KEYWORD_PREFIX, NEW_PORTLET_WINDOW_MODE_KEY, NEW_PORTLET_WINDOW_STATE_KEY, PORTLET_ACTION, PORTLET_PARAM_MAP, PORTLET_REMOVE_KEY, PORTLET_WINDOW_KEY, PORTLET_WINDOW_MODE_KEY, PORTLET_WINDOW_STATE_KEY, RENDER, RESOURCE, RESOURCE_ID_KEY, RESOURCE_URL_CACHE_LEVEL_KEY
-
-
Constructor Summary
Constructors Constructor Description PortletWindowInvoker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.portal.container.Container
getContainer()
Implementation of the abstract method defined in the base class.String
getDefaultTitle()
com.sun.portal.container.EntityID
getEntityID(javax.servlet.http.HttpServletRequest request)
Implementation of the abstract method defined in the base class.protected com.sun.portal.container.ErrorCode
getErrorCode(com.sun.portal.container.ContentException ex)
com.sun.portal.container.ChannelURLFactory
getPortletWindowURLFactory(String desktopURLPrefix, javax.servlet.http.HttpServletRequest request)
Implementation of the abstract method defined in the base class.List
getRoleList(javax.servlet.http.HttpServletRequest request)
Implementation of the abstract method defined in the base class.String
getTitle()
Gets the title for the portletWindow.Map
getUserInfoMap(javax.servlet.http.HttpServletRequest request)
Implementation of the abstract method defined in the base class.com.sun.portal.container.WindowRequestReader
getWindowRequestReader()
Implementation of the abstract method defined in the base class.void
init(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Initializes the WindowInvoker.boolean
isMarkupSupported(String contentType, String locale, com.sun.portal.container.ChannelMode mode, com.sun.portal.container.ChannelState state)
Implementation of the abstract method defined in the base class.-
Methods inherited from class com.sun.portal.portletcontainer.invoker.WindowInvoker
getActionURL, getAllowableWindowStates, getCurrentPortletWindowMode, getCurrentWindowState, getErrorCodeURL, getErrorMessageContent, getOriginalRequest, getOriginalResponse, getPortletWindowContext, getPortletWindowMode, getPortletWindowName, getPortletWindowState, getRenderURL, getResourceBundle, getResources, getResourcesInternal, getResponseProperties, getServletContext, isEditable, isWindowInvokerKey, populateContainerRequest, processAction, processActionInternal, processModeChange, processWindowStateChange, readErrorCode, render, setPortletWindowMode, setPortletWindowName, setPortletWindowState, setTitle
-
-
-
-
Field Detail
-
JAVAX_PORTLET_TITLE
public static final String JAVAX_PORTLET_TITLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws InvokerException
Description copied from class:WindowInvoker
Initializes the WindowInvoker.- Overrides:
init
in classWindowInvoker
- Parameters:
servletContext
- The ServletContext object.request
- The HTTP request object.response
- The HTTP response object.- Throws:
InvokerException
-
getUserInfoMap
public Map getUserInfoMap(javax.servlet.http.HttpServletRequest request) throws InvokerException
Implementation of the abstract method defined in the base class. Get the user profile information for the current user. The implementation uses the configured logical to physical user info mapping configured at deployment time to calculate this.- Specified by:
getUserInfoMap
in classWindowInvoker
- Throws:
InvokerException
-
getContainer
public com.sun.portal.container.Container getContainer()
Implementation of the abstract method defined in the base class. Gets the container implementation configured to be used- Specified by:
getContainer
in classWindowInvoker
-
getEntityID
public com.sun.portal.container.EntityID getEntityID(javax.servlet.http.HttpServletRequest request) throws InvokerException
Implementation of the abstract method defined in the base class. EntityID is represented as/ / / is stored in the display profile during deployment time. - Specified by:
getEntityID
in classWindowInvoker
- Throws:
InvokerException
-
getPortletWindowURLFactory
public com.sun.portal.container.ChannelURLFactory getPortletWindowURLFactory(String desktopURLPrefix, javax.servlet.http.HttpServletRequest request) throws InvokerException
Implementation of the abstract method defined in the base class.- Specified by:
getPortletWindowURLFactory
in classWindowInvoker
- Throws:
InvokerException
-
getWindowRequestReader
public com.sun.portal.container.WindowRequestReader getWindowRequestReader() throws InvokerException
Implementation of the abstract method defined in the base class.- Specified by:
getWindowRequestReader
in classWindowInvoker
- Throws:
InvokerException
-
isMarkupSupported
public boolean isMarkupSupported(String contentType, String locale, com.sun.portal.container.ChannelMode mode, com.sun.portal.container.ChannelState state) throws InvokerException
Implementation of the abstract method defined in the base class.- Specified by:
isMarkupSupported
in classWindowInvoker
- Throws:
InvokerException
-
getDefaultTitle
public String getDefaultTitle() throws InvokerException
- Specified by:
getDefaultTitle
in classWindowInvoker
- Throws:
InvokerException
-
getTitle
public String getTitle() throws InvokerException
Description copied from class:WindowInvoker
Gets the title for the portletWindow. This method returns the title from the portlet. Portlet uses javax.portlet.title namespace for its title.- Overrides:
getTitle
in classWindowInvoker
- Returns:
- A string title.
- Throws:
InvokerException
- if error occurs when getting the title for the portletWindow.
-
getRoleList
public List getRoleList(javax.servlet.http.HttpServletRequest request) throws InvokerException
Implementation of the abstract method defined in the base class. Get the list of logical roles that the current user belongs to. The implementation uses the configured logical to physical role mapping configured at deployment time to calculate this.- Specified by:
getRoleList
in classWindowInvoker
- Throws:
InvokerException
-
getErrorCode
protected com.sun.portal.container.ErrorCode getErrorCode(com.sun.portal.container.ContentException ex)
- Overrides:
getErrorCode
in classWindowInvoker
-
-