ControllerContext controllerContext,
List<Cookie> cookies,
PageNavigationalState pageNavigationalState,
String windowId) throws PortletInvokerException
{
WindowNavigationalState windowNS = null;
if (pageNavigationalState != null)
{
windowNS = pageNavigationalState.getWindowNavigationalState(windowId);
}
//
Map<String, String[]> publicNS = null;
if (pageNavigationalState != null)
{
publicNS = controllerContext.getStateControllerContext().getPublicWindowNavigationalState(controllerContext, pageNavigationalState, windowId);
}
//
org.gatein.pc.api.Mode mode = Mode.VIEW;
org.gatein.pc.api.WindowState windowState = org.gatein.pc.api.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);