PortletInvocationResponse invoke(PortletControllerContext context, PortletRequest portletRequest) throws PortletInvokerException
{
if (portletRequest instanceof PortletRenderRequest)
{
PortletRenderRequest portletRenderRequest = (PortletRenderRequest)portletRequest;
//
UpdateNavigationalStateResponse updateNavigationalState = new UpdateNavigationalStateResponse();
updateNavigationalState.setMode(portletRenderRequest.getWindowNavigationalState().getMode());
updateNavigationalState.setWindowState(portletRenderRequest.getWindowNavigationalState().getWindowState());
updateNavigationalState.setNavigationalState(portletRenderRequest.getWindowNavigationalState().getPortletNavigationalState());
updateNavigationalState.setPublicNavigationalStateUpdates(portletRenderRequest.getPublicNavigationalStateChanges());
//
return updateNavigationalState;
}
else