liferay - How can I fetch the existing table data in aportlet -
i trying create user site admin have created portlet has basic user details form , in action class called userlocalserviceutil.adduser() . values inserting db in user_ . want display list of created users site admin how can that? have following queries. 1) how can fetch values user_ in portlet. need create service builder or there api methods fetch values user_ table? 2) want display users list created site admin in portlet. don't want display whole company list of users. how can achieve this? suggest me references or guidelines this. your appreciated. for q1 : http://cdn.docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/userlocalserviceutil.html#getusers(int , int) this might you. don't need service builder that. create simple liferay mvc portlet , call relevant methods. for q2 : don't think possible api methods. can set expando variable user @ time of creation site-admin. , @ time of fetching users, can cross-check value of field