PortletControllerContext controllerContext,
List<Cookie> cookies,
PortletPageNavigationalState pageNavigationalState,
String windowId) throws PortletInvokerException
{
PortletWindowNavigationalState windowNS = null;
if (pageNavigationalState != null)
{
windowNS = pageNavigationalState.getPortletWindowNavigationalState(windowId);
}
//
Map<String, String[]> publicNS = null;
if (pageNavigationalState != null)
{
publicNS = pageNavigationalState.getPortletPublicNavigationalState(windowId);
}
//
Mode mode = Mode.VIEW;
WindowState windowState = WindowState.NORMAL;
StateString portletNS = null;
//
if (windowNS != null)
{
if (windowNS.getMode() != null)
{
mode = windowNS.getMode();
}
if (windowNS.getWindowState() != null)
{
windowState = windowNS.getWindowState();
}
if (windowNS.getPortletNavigationalState() != null)
{
portletNS = windowNS.getPortletNavigationalState();
}
}
//
PortletInvocationContext renderContext = controllerContext.createPortletInvocationContext(windowId, pageNavigationalState);