Liferay: how to get global/company group

Below a simple snippet that let you find a special group of your company: the global group (also called company group).

This system group may hold all a lot of company common data (structures, templates, categories, etc.). Data declared in this group will be available for all other sites of this company.

Here are two ways for getting it:

Group globalGroup = GroupLocalServiceUtil.getCompanyGroup(companyId); 
company.getGroup(); // Implementation available in companyImpl#getGroup

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.