List of usage examples for com.liferay.portal.kernel.util PortalUtil getScopeGroupId
public static long getScopeGroupId(Layout layout, String portletId)
From source file:com.liferay.dynamic.data.mapping.util.BaseDDMDisplay.java
License:Open Source License
@Override public long[] getTemplateGroupIds(ThemeDisplay themeDisplay, boolean includeAncestorTemplates) throws Exception { HttpServletRequest request = themeDisplay.getRequest(); PortletDisplay portletDisplay = themeDisplay.getPortletDisplay(); long groupId = themeDisplay.getScopeGroupId(); String refererPortletName = ParamUtil.getString(request, portletDisplay.getNamespace() + "refererPortletName"); if (Validator.isNull(refererPortletName)) { groupId = PortalUtil.getScopeGroupId(request, refererPortletName); }/*from w ww . java 2 s. c o m*/ if (includeAncestorTemplates) { return PortalUtil.getCurrentAndAncestorSiteGroupIds(groupId); } return new long[] { groupId }; }