留言板

Difference between companyGroupId and scopeGroupId

thumbnail
Tejas Kanani,修改在12 年前。

Difference between companyGroupId and scopeGroupId

Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
Hi Guys,

I saw there are two different groupId methods available in ThemeDisplay object.
  • getCompanyGroupId()
  • getScopeGroupId()


What is the difference between those two methods. Both will return different groupId?

Thanks,
Tejas
thumbnail
Jignesh Vachhani,修改在12 年前。

RE: Difference between companyGroupId and scopeGroupId (答复)

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
Hi Tejas,

As per my knowledge
getCompanyGroupId() will return group id according to company id of current user while,
getScopeGroupId() returns group id of current user means according to user id.

HTH
Jignesh
http://liferaycms.blogspot.com
thumbnail
Sagar A Vyas,修改在12 年前。

RE: Difference between companyGroupId and scopeGroupId (答复)

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Tejas Kanani:
Hi Guys,

What is the difference between those two methods. Both will return different groupId?

Thanks,
Tejas


HI Tejas,

I have gone through the method i have found three method.

themeDisplay.getCompanyGroupId() - This will return groupId according which is mapped with Company ID
themeDisplay.getCompanyId() - This will simply return Company ID which will remain same through the portal
themeDisplay.getScopeGroupId() - This will return group id of current grp like id could be community Id , Org Id , User's Grp id

Company Group id is associate with Company.

Hope this help emoticon

Thanks,
Sagar Vyas
thumbnail
Tejas Kanani,修改在12 年前。

RE: Difference between companyGroupId and scopeGroupId

Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
Thanks Jignesh and Sagar for the information.
It cleared my doubts regarding scopegroupid and companygroupid.

Cheers !!emoticon
Tejas
thumbnail
Jignesh Vachhani,修改在12 年前。

RE: Difference between companyGroupId and scopeGroupId

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
emoticon