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 :
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 manually.
edit :
one more point suggestion : never create user site-admin role user creation. role supposed manage site & user assignment site. can use more appropriate role i.e. org-admin rather site-admin.
how set expando variable while adding user?
liferay provides expando api interface, can use while creation of user in portlet. refer following links developing expando, liferay expando api
i hope helpful you.
Comments
Post a Comment