组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Vishal Panchal
RE: How to get all user list of a particular Role name or Role Id in lifera
2012年5月20日 上午5:12
答复

Vishal Panchal

等级: Youngling

帖子: 1

加入日期: 2012年5月20日

最近的帖子

Hi Omkar Khandare,

You Can use liferay's default UserAPI to get this.

The method which you are looking for is in com.liferay.portal.service.UserLocalServiceUtil
In UserLocalServiceUtil class you have a method named --> static List<User> getRoleUsers(long roleId);
It will return List<User>
For further reference you may visit following link
http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portal/service/UserLocalServiceUtil.html
Omkar Khandare
RE: How to get all user list of a particular Role name or Role Id in lifera
2012年5月20日 下午9:57
答复

Omkar Khandare

等级: Youngling

帖子: 2

加入日期: 2012年3月6日

最近的帖子

Thanks Vishal.
I have finished development using User API.
Adorján Nagy
RE: How to get all user list of a particular Role name or Role Id in lifera
2012年5月22日 上午3:10
答复

Adorján Nagy

等级: Youngling

帖子: 18

加入日期: 2010年10月21日

最近的帖子

Hi All,

I would like to ask you to open a new forum thread in Liferay Portal forum as this Code Camp 2011 forum was used for a coding competition.

The Liferay Portal forum is a really active forum where you can search for existing related topics and start new ones in various languages.

Thank you for your understanding,
Adorján