public static long getScopeGroupId( HttpServletRequest request, String portletId, boolean checkStagingGroup) throws PortalException { return getPortal().getScopeGroupId( request, portletId, checkStagingGroup); }
public static long getScopeGroupId( HttpServletRequest request, String portletId) throws PortalException { return getPortal().getScopeGroupId(request, portletId); }
public static long getScopeGroupId(Layout layout) { return getPortal().getScopeGroupId(layout); }
public static long getScopeGroupId(Layout layout, String portletId) { return getPortal().getScopeGroupId(layout, portletId); }
public static long getScopeGroupId(PortletRequest portletRequest) throws PortalException { return getPortal().getScopeGroupId(portletRequest); }
public static long getScopeGroupId(long plid) { return getPortal().getScopeGroupId(plid); }
@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); }