フォーラム

ホーム » General Discussion » Public information

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Vishal Panchal
RE: How to get all user list of a particular Role name or Role Id in lifera
2012/05/20 5:12
答え

Vishal Panchal

ランク: Youngling

投稿: 1

参加年月日: 2012/05/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/05/20 21:57
答え

Omkar Khandare

ランク: Youngling

投稿: 2

参加年月日: 2012/03/06

最近の投稿

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/05/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