use of org.apache.pluto.container.PortletWindowID in project uPortal by Jasig.
the class PortletWindowRegistryImpl method convertPortletWindow.
/* (non-Javadoc)
* @see org.apereo.portal.portlet.registry.IPortletWindowRegistry#convertPortletWindow(javax.servlet.http.HttpServletRequest, org.apache.pluto.PortletWindow)
*/
@Override
public IPortletWindow convertPortletWindow(HttpServletRequest request, PortletWindow plutoPortletWindow) {
Validate.notNull(request, "request can not be null");
Validate.notNull(plutoPortletWindow, "portletWindow can not be null");
//Conver the pluto portlet window ID into a uPortal portlet window ID
final PortletWindowID plutoWindowId = plutoPortletWindow.getId();
final IPortletWindowId portletWindowId;
if (plutoWindowId instanceof IPortletWindowId) {
portletWindowId = (IPortletWindowId) plutoWindowId;
} else {
portletWindowId = this.getPortletWindowId(request, plutoWindowId.getStringId());
}
//Do a new get to make sure the referenced data gets updated correctly
return this.getPortletWindow(request, portletWindowId);
}
Aggregations