PortletInfo info = context.portletControllerContext.getPortletInfo(portletWindowId);
//
if (info != null)
{
ParameterMap publicNavigationalState = new ParameterMap();
for (ParameterInfo parameterInfo : info.getNavigation().getPublicParameters())
{
String[] parameterValue = page.get(parameterInfo.getName());
//
if (parameterValue != null)
{
String parameterId = parameterInfo.getId();
// We clone the value here so we keep the internal state not potentially changed
publicNavigationalState.put(parameterId, parameterValue.clone());
}
}
//
return publicNavigationalState;