掲示板

Difference between UserServiceUtil and UserLocalServiceUtil?

12年前 に IGC SA によって更新されました。

Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 80 参加年月日: 11/06/08 最新の投稿
Hi, this is maybe a newbie question but I'm really wondering what's the difference between those two classes: UserServiceUtil and UserLocalServiceUtil. I'm doing things with users from my portlet and I don't wanna mess it up by using the wrong class.
I've seen other classes that are also duplicated with the -Local- word, for example PortalService and PortalLocalService
and I guess it means something and does something different.

Thank you in advance.
thumbnail
12年前 に Aritz Galdos によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Expert 投稿: 416 参加年月日: 07/05/15 最新の投稿
Hi IGC

Basically, the difference is that *ServiceUtil checks permissions and *LocalServiceUtil does not.

Regards
12年前 に IGC SA によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 80 参加年月日: 11/06/08 最新の投稿
Thank you for the fast answer emoticon
12年前 に Tim FoX によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 34 参加年月日: 10/03/02 最新の投稿
You can only use the UserLocalServiceUtil from the same VM; the UserServiceUtil is for remote calls and thus adds the extra permission checking.
12年前 に IGC SA によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 80 参加年月日: 11/06/08 最新の投稿
Good to know that, thanks.
thumbnail
12年前 に David García González によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Regular Member 投稿: 127 参加年月日: 09/07/14 最新の投稿
You use UserServiceUtil for remote calls (as a web service) and UserLocalServiceUtil for calls inside the same VM. If you want, you can disable the generation of the remote methods in the service builder with the parameter local-service="true" remote-service="false"
12年前 に IGC SA によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 80 参加年月日: 11/06/08 最新の投稿
OK, thanks emoticon
thumbnail
12年前 に M. Garcia によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Regular Member 投稿: 107 参加年月日: 11/05/17 最新の投稿
Does this mean that developping a portlet, one should only use the Local classes ?
thumbnail
12年前 に Satish Anupoju によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

Junior Member 投稿: 79 参加年月日: 11/02/20 最新の投稿
Hi All

I am newbee to Liferay. Can we use UserServiceUtill for all the cases(for the both Local and Remote operations). It leads any performance issue.


Regards
Satish Babu
9年前 に krishna rao によって更新されました。

RE: Difference between UserServiceUtil and UserLocalServiceUtil?

New Member 投稿: 10 参加年月日: 14/07/13 最新の投稿
As per standard use UserLocalServiceUtil for applications deployed by portlet plugin. I you want to access via soap services then use UserServiceUtli.

As you said you can still go ahead and use UserServiceUtil for both local and remote services but it will do an extra check for permissions which will down grade your performance.