Fórum

Update user remotely, UserGroupRoleSoap?

Mikko Torri, modificado 9 Anos atrás.

Update user remotely, UserGroupRoleSoap?

Junior Member Postagens: 25 Data de Entrada: 22/04/14 Postagens Recentes
Hi

So I'm implementing a service which will update the users from external service with SOAP.
Now there are the methods UserServiceSoap.updateUser(...) which both have as one parameter UserGroupRoleSoap[] userGroupRoles.

How do you accuire usergrouproles remotely for the user (6.2 CE GA2)?
The most obvious service (Portal_UserGroupRoleService) only has add and delete methods.

Thanks,
M
thumbnail
Andew Jardine, modificado 9 Anos atrás.

RE: Update user remotely, UserGroupRoleSoap?

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
If I understand your question you are asking how you find the groups that the user you are updating is currently in? I think you should be able to do that with --


UserGroupService.getUserUserGroups(long userId)
Mikko Torri, modificado 9 Anos atrás.

RE: Update user remotely, UserGroupRoleSoap?

Junior Member Postagens: 25 Data de Entrada: 22/04/14 Postagens Recentes
Not exactly what I'm after.

It returns the user groups, I'm looking for the UserGroupRoles which is a parameter in updateUser method.
The method exists for LocalServiceUtil: UserGroupRoleLocalServiceUtil.getUserGroupRoles but there's no such method for retrieving it remotely.

I ended up with creating my own remote method for, among others.

M