How to get the global (company) group id in Liferay without accessing ThemeDisplay?
ThemeDisplay
P.S.: with ThemeDisplay it is simple: themeDisplay.ge
themeDisplay.ge
When you have only one Company in your portal:
Company
Company company = CompanyLocalServiceUtil.getCompanyByMx(PropsUtil.get(PropsKeys.COMPANY_DEFAULT_WEB_ID)); long globalGroupId = company.getGroup().getGroupId();