留言板

[solved] Organization membership policy

juju bou,修改在13 年前。

[solved] Organization membership policy

Junior Member 帖子: 44 加入日期: 10-2-11 最近的帖子
Hi guys,
I'm migrating my LR 6.0.5 to 6.0.6 and I found a new parameter in the method OrganizationLocalServiceUtil.addOrganization

This new parameter is "membershipPolicy" which can be OrganizationConstants.MEMBERSHIP_POLICY_STRONG or OrganizationConstants.MEMBERSHIP_POLICY_WEAK


What is this new parameter and what is the difference between the 2 possible values ?

Thx
juju bou,修改在13 年前。

RE: Organization membership policy

Junior Member 帖子: 44 加入日期: 10-2-11 最近的帖子
after investigation,
the membership_policy parameter is used in addOrganization when the group is created :
Group group = groupLocalService.addGroup(
			userId, Organization.class.getName(), organizationId, name, null,
			membershipPolicy, null, true, null);


So it means it should one the values from GroupConstants.TYPE_COMMUNITY_*******




But I still don't know why we need that...
juju bou,修改在12 年前。

RE: Organization membership policy (答复)

Junior Member 帖子: 44 加入日期: 10-2-11 最近的帖子
looks like it's not anymore in 6.0.6
emoticon