Search in sources :

Example 1 with PortletWindowID

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);
}
Also used : PortletWindowID(org.apache.pluto.container.PortletWindowID) IPortletWindowId(org.apereo.portal.portlet.om.IPortletWindowId)

Aggregations

PortletWindowID (org.apache.pluto.container.PortletWindowID)1 IPortletWindowId (org.apereo.portal.portlet.om.IPortletWindowId)1