Search in sources :

Example 1 with ScopingPortletSessionImpl

use of org.apereo.portal.portlet.session.ScopingPortletSessionImpl in project uPortal by Jasig.

the class PortletEnvironmentServiceImpl method createPortletSession.

@Override
public PortletSession createPortletSession(PortletContext portletContext, PortletWindow portletWindow, HttpSession session) {
    // TODO pluto 1.1 PortletEnvironmentService#createPortletSession passed in the request; now use IPortalRequestUtils#getCurrentPortalRequest()?
    final HttpServletRequest request = portalRequestUtils.getCurrentPortalRequest();
    final IPortletWindow internalPortletWindow = this.portletWindowRegistry.convertPortletWindow(request, portletWindow);
    final IPortletEntity portletEntity = internalPortletWindow.getPortletEntity();
    final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();
    return new ScopingPortletSessionImpl(portletEntityId, portletContext, portletWindow, session);
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) IPortletEntity(org.apereo.portal.portlet.om.IPortletEntity) ScopingPortletSessionImpl(org.apereo.portal.portlet.session.ScopingPortletSessionImpl) IPortletWindow(org.apereo.portal.portlet.om.IPortletWindow) IPortletEntityId(org.apereo.portal.portlet.om.IPortletEntityId)

Aggregations

HttpServletRequest (javax.servlet.http.HttpServletRequest)1 IPortletEntity (org.apereo.portal.portlet.om.IPortletEntity)1 IPortletEntityId (org.apereo.portal.portlet.om.IPortletEntityId)1 IPortletWindow (org.apereo.portal.portlet.om.IPortletWindow)1 ScopingPortletSessionImpl (org.apereo.portal.portlet.session.ScopingPortletSessionImpl)1