Fórum
Roles for an user group
Geetha Raj, modificado 14 Anos atrás.
Roles for an user group
Junior Member Postagens: 28 Data de Entrada: 22/05/08 Postagens Recentes
Is there any way to determine the roles for a user group? Any help is appreciated.
Thanks
Thanks
Jonas Yuan, modificado 14 Anos atrás.
RE: Roles for an user group
Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
HI Geetha,
You can do it simply in Control Panel (UI):
assign a user group as a member of a role.
or check members, the user group should be a member of the role.
Hope that is helps,
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
You can do it simply in Control Panel (UI):
assign a user group as a member of a role.
or check members, the user group should be a member of the role.
Hope that is helps,
Thanks
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Geetha Raj, modificado 14 Anos atrás.
RE: Roles for an user group
Junior Member Postagens: 28 Data de Entrada: 22/05/08 Postagens Recentes
Thanks for your help, Jonas. I think I should have clarified that I need to determine it programmactically.
Jonas Yuan, modificado 14 Anos atrás.
RE: Roles for an user group
Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
Hi Geetha,
No problem. You can use UserGroupRoleLocalServiceUtil, like
or
Hope that it helps.
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
No problem. You can use UserGroupRoleLocalServiceUtil, like
public static boolean hasUserGroupRole(long userId, long groupId,
java.lang.String roleName)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException {
return getService().hasUserGroupRole(userId, groupId, roleName);
}
or
public static java.util.List<com.liferay.portal.model.usergrouprole> getUserGroupRoles(
int start, int end) throws com.liferay.portal.SystemException {
return getService().getUserGroupRoles(start, end);
}
</com.liferay.portal.model.usergrouprole>
Hope that it helps.
Jonas Yuan
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Geetha Raj, modificado 14 Anos atrás.
RE: Roles for an user group
Junior Member Postagens: 28 Data de Entrada: 22/05/08 Postagens Recentes
When I assign a user group as a member of a role, it puts an entry in the table group_roles. Using UserGroupLocalServiceUtil, I am unable to programmactically get back the role. I tried the method getGroupRole from GroupLocalServiceUtil but that doesn't work either. Please let me know if you have any other suggestions or thoughts.
Auditya manikanta Vadrevu, modificado 14 Anos atrás.
RE: Roles for an user group
Liferay Master Postagens: 621 Data de Entrada: 06/05/08 Postagens Recentes
hi geetha,
With Regards,
V.Auditya
, it is in RoleLocalServiceUtil , not in GroupLocalService.
static Role getGroupRole(java.lang.String companyId, java.lang.String groupId)
With Regards,
V.Auditya