public static HttpServletRequest getHttpServletRequest( PortletRequest portletRequest) { return getPortal().getHttpServletRequest(portletRequest); }
@Override public void doFilter( RenderRequest renderRequest, RenderResponse renderResponse, FilterChain filterChain) throws IOException, PortletException { HttpServletRequest httpServletRequest = _portal.getHttpServletRequest( renderRequest); if (httpServletRequest.getAttribute(WebKeys.LAYOUT_ASSET_ENTRY) == null) { clearDynamicServletRequestParameters(httpServletRequest); clearRenderRequestParameters(renderRequest, httpServletRequest); } filterChain.doFilter(renderRequest, renderResponse); }
@Override public void doFilter( RenderRequest renderRequest, RenderResponse renderResponse, FilterChain filterChain) throws IOException, PortletException { HttpServletRequest httpServletRequest = _portal.getHttpServletRequest( renderRequest); long categoryId = ParamUtil.getLong(renderRequest, "categoryId"); String tag = ParamUtil.getString(renderRequest, "tag"); if ((categoryId > 0) || Validator.isNotNull(tag)) { clearRenderRequestParameters(renderRequest, httpServletRequest); } filterChain.doFilter(renderRequest, renderResponse); }
@Override public long publishToLive(PortletRequest portletRequest, Portlet portlet) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long scopeGroupId = _portal.getScopeGroupId( _portal.getHttpServletRequest(portletRequest), portlet.getPortletId()); long plid = ParamUtil.getLong(portletRequest, "plid"); Map<String, String[]> parameterMap = _exportImportConfigurationParameterMapFactory.buildParameterMap( portletRequest); return publishPortlet( themeDisplay.getUserId(), scopeGroupId, plid, portlet.getPortletId(), parameterMap, false); }
@Override public long copyFromLive(PortletRequest portletRequest, Portlet portlet) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long scopeGroupId = _portal.getScopeGroupId( _portal.getHttpServletRequest(portletRequest), portlet.getPortletId()); long plid = ParamUtil.getLong(portletRequest, "plid"); Map<String, String[]> parameterMap = _exportImportConfigurationParameterMapFactory.buildParameterMap( portletRequest); return publishPortlet( themeDisplay.getUserId(), scopeGroupId, plid, portlet.getPortletId(), parameterMap, true); }
HttpServletRequest request = portal.getHttpServletRequest( actionRequest);
HttpServletRequest request = portal.getHttpServletRequest( actionRequest);