1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.http;
16  
17  import com.liferay.portal.kernel.log.Log;
18  import com.liferay.portal.kernel.log.LogFactoryUtil;
19  import com.liferay.portal.service.UserServiceUtil;
20  
21  import java.rmi.RemoteException;
22  
23  /**
24   * <a href="UserServiceSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides a SOAP utility for the
33   * {@link com.liferay.portal.service.UserServiceUtil} service utility. The
34   * static methods of this class calls the same methods of the service utility.
35   * However, the signatures are different because it is difficult for SOAP to
36   * support certain types.
37   * </p>
38   *
39   * <p>
40   * ServiceBuilder follows certain rules in translating the methods. For example,
41   * if the method in the service utility returns a {@link java.util.List}, that
42   * is translated to an array of {@link com.liferay.portal.model.UserSoap}.
43   * If the method in the service utility returns a
44   * {@link com.liferay.portal.model.User}, that is translated to a
45   * {@link com.liferay.portal.model.UserSoap}. Methods that SOAP cannot
46   * safely wire are skipped.
47   * </p>
48   *
49   * <p>
50   * The benefits of using the SOAP utility is that it is cross platform
51   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
52   * even Perl, to call the generated services. One drawback of SOAP is that it is
53   * slow because it needs to serialize all calls into a text format (XML).
54   * </p>
55   *
56   * <p>
57   * You can see a list of services at
58   * http://localhost:8080/tunnel-web/secure/axis. Set the property
59   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
60   * security.
61   * </p>
62   *
63   * <p>
64   * The SOAP utility is only generated for remote services.
65   * </p>
66   *
67   * @author    Brian Wing Shun Chan
68   * @see       UserServiceHttp
69   * @see       com.liferay.portal.model.UserSoap
70   * @see       com.liferay.portal.service.UserServiceUtil
71   * @generated
72   */
73  public class UserServiceSoap {
74      public static void addGroupUsers(long groupId, long[] userIds)
75          throws RemoteException {
76          try {
77              UserServiceUtil.addGroupUsers(groupId, userIds);
78          }
79          catch (Exception e) {
80              _log.error(e, e);
81  
82              throw new RemoteException(e.getMessage());
83          }
84      }
85  
86      public static void addOrganizationUsers(long organizationId, long[] userIds)
87          throws RemoteException {
88          try {
89              UserServiceUtil.addOrganizationUsers(organizationId, userIds);
90          }
91          catch (Exception e) {
92              _log.error(e, e);
93  
94              throw new RemoteException(e.getMessage());
95          }
96      }
97  
98      public static void addPasswordPolicyUsers(long passwordPolicyId,
99          long[] userIds) throws RemoteException {
100         try {
101             UserServiceUtil.addPasswordPolicyUsers(passwordPolicyId, userIds);
102         }
103         catch (Exception e) {
104             _log.error(e, e);
105 
106             throw new RemoteException(e.getMessage());
107         }
108     }
109 
110     public static void addRoleUsers(long roleId, long[] userIds)
111         throws RemoteException {
112         try {
113             UserServiceUtil.addRoleUsers(roleId, userIds);
114         }
115         catch (Exception e) {
116             _log.error(e, e);
117 
118             throw new RemoteException(e.getMessage());
119         }
120     }
121 
122     public static void addTeamUsers(long teamId, long[] userIds)
123         throws RemoteException {
124         try {
125             UserServiceUtil.addTeamUsers(teamId, userIds);
126         }
127         catch (Exception e) {
128             _log.error(e, e);
129 
130             throw new RemoteException(e.getMessage());
131         }
132     }
133 
134     public static void addUserGroupUsers(long userGroupId, long[] userIds)
135         throws RemoteException {
136         try {
137             UserServiceUtil.addUserGroupUsers(userGroupId, userIds);
138         }
139         catch (Exception e) {
140             _log.error(e, e);
141 
142             throw new RemoteException(e.getMessage());
143         }
144     }
145 
146     public static com.liferay.portal.model.UserSoap addUser(long companyId,
147         boolean autoPassword, java.lang.String password1,
148         java.lang.String password2, boolean autoScreenName,
149         java.lang.String screenName, java.lang.String emailAddress,
150         java.lang.String openId, String locale, java.lang.String firstName,
151         java.lang.String middleName, java.lang.String lastName, int prefixId,
152         int suffixId, boolean male, int birthdayMonth, int birthdayDay,
153         int birthdayYear, java.lang.String jobTitle, long[] groupIds,
154         long[] organizationIds, long[] roleIds, long[] userGroupIds,
155         boolean sendEmail,
156         com.liferay.portal.service.ServiceContext serviceContext)
157         throws RemoteException {
158         try {
159             com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
160                     autoPassword, password1, password2, autoScreenName,
161                     screenName, emailAddress, openId,
162                     new java.util.Locale(locale), firstName, middleName,
163                     lastName, prefixId, suffixId, male, birthdayMonth,
164                     birthdayDay, birthdayYear, jobTitle, groupIds,
165                     organizationIds, roleIds, userGroupIds, sendEmail,
166                     serviceContext);
167 
168             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
169         }
170         catch (Exception e) {
171             _log.error(e, e);
172 
173             throw new RemoteException(e.getMessage());
174         }
175     }
176 
177     public static com.liferay.portal.model.UserSoap addUser(long companyId,
178         boolean autoPassword, java.lang.String password1,
179         java.lang.String password2, boolean autoScreenName,
180         java.lang.String screenName, java.lang.String emailAddress,
181         java.lang.String openId, String locale, java.lang.String firstName,
182         java.lang.String middleName, java.lang.String lastName, int prefixId,
183         int suffixId, boolean male, int birthdayMonth, int birthdayDay,
184         int birthdayYear, java.lang.String jobTitle, long[] groupIds,
185         long[] organizationIds, long[] roleIds, long[] userGroupIds,
186         boolean sendEmail, com.liferay.portal.model.AddressSoap[] addresses,
187         com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
188         com.liferay.portal.model.PhoneSoap[] phones,
189         com.liferay.portal.model.WebsiteSoap[] websites,
190         com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
191         com.liferay.portal.service.ServiceContext serviceContext)
192         throws RemoteException {
193         try {
194             com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
195                     autoPassword, password1, password2, autoScreenName,
196                     screenName, emailAddress, openId,
197                     new java.util.Locale(locale), firstName, middleName,
198                     lastName, prefixId, suffixId, male, birthdayMonth,
199                     birthdayDay, birthdayYear, jobTitle, groupIds,
200                     organizationIds, roleIds, userGroupIds, sendEmail,
201                     com.liferay.portal.model.impl.AddressModelImpl.toModels(
202                         addresses),
203                     com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
204                         emailAddresses),
205                     com.liferay.portal.model.impl.PhoneModelImpl.toModels(
206                         phones),
207                     com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
208                         websites),
209                     com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
210                         announcementsDelivers), serviceContext);
211 
212             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
213         }
214         catch (Exception e) {
215             _log.error(e, e);
216 
217             throw new RemoteException(e.getMessage());
218         }
219     }
220 
221     public static void deletePortrait(long userId) throws RemoteException {
222         try {
223             UserServiceUtil.deletePortrait(userId);
224         }
225         catch (Exception e) {
226             _log.error(e, e);
227 
228             throw new RemoteException(e.getMessage());
229         }
230     }
231 
232     public static void deleteRoleUser(long roleId, long userId)
233         throws RemoteException {
234         try {
235             UserServiceUtil.deleteRoleUser(roleId, userId);
236         }
237         catch (Exception e) {
238             _log.error(e, e);
239 
240             throw new RemoteException(e.getMessage());
241         }
242     }
243 
244     public static void deleteUser(long userId) throws RemoteException {
245         try {
246             UserServiceUtil.deleteUser(userId);
247         }
248         catch (Exception e) {
249             _log.error(e, e);
250 
251             throw new RemoteException(e.getMessage());
252         }
253     }
254 
255     public static long getDefaultUserId(long companyId)
256         throws RemoteException {
257         try {
258             long returnValue = UserServiceUtil.getDefaultUserId(companyId);
259 
260             return returnValue;
261         }
262         catch (Exception e) {
263             _log.error(e, e);
264 
265             throw new RemoteException(e.getMessage());
266         }
267     }
268 
269     public static long[] getGroupUserIds(long groupId)
270         throws RemoteException {
271         try {
272             long[] returnValue = UserServiceUtil.getGroupUserIds(groupId);
273 
274             return returnValue;
275         }
276         catch (Exception e) {
277             _log.error(e, e);
278 
279             throw new RemoteException(e.getMessage());
280         }
281     }
282 
283     public static long[] getOrganizationUserIds(long organizationId)
284         throws RemoteException {
285         try {
286             long[] returnValue = UserServiceUtil.getOrganizationUserIds(organizationId);
287 
288             return returnValue;
289         }
290         catch (Exception e) {
291             _log.error(e, e);
292 
293             throw new RemoteException(e.getMessage());
294         }
295     }
296 
297     public static long[] getRoleUserIds(long roleId) throws RemoteException {
298         try {
299             long[] returnValue = UserServiceUtil.getRoleUserIds(roleId);
300 
301             return returnValue;
302         }
303         catch (Exception e) {
304             _log.error(e, e);
305 
306             throw new RemoteException(e.getMessage());
307         }
308     }
309 
310     public static com.liferay.portal.model.UserSoap getUserByEmailAddress(
311         long companyId, java.lang.String emailAddress)
312         throws RemoteException {
313         try {
314             com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByEmailAddress(companyId,
315                     emailAddress);
316 
317             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
318         }
319         catch (Exception e) {
320             _log.error(e, e);
321 
322             throw new RemoteException(e.getMessage());
323         }
324     }
325 
326     public static com.liferay.portal.model.UserSoap getUserById(long userId)
327         throws RemoteException {
328         try {
329             com.liferay.portal.model.User returnValue = UserServiceUtil.getUserById(userId);
330 
331             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
332         }
333         catch (Exception e) {
334             _log.error(e, e);
335 
336             throw new RemoteException(e.getMessage());
337         }
338     }
339 
340     public static com.liferay.portal.model.UserSoap getUserByScreenName(
341         long companyId, java.lang.String screenName) throws RemoteException {
342         try {
343             com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByScreenName(companyId,
344                     screenName);
345 
346             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
347         }
348         catch (Exception e) {
349             _log.error(e, e);
350 
351             throw new RemoteException(e.getMessage());
352         }
353     }
354 
355     public static long getUserIdByEmailAddress(long companyId,
356         java.lang.String emailAddress) throws RemoteException {
357         try {
358             long returnValue = UserServiceUtil.getUserIdByEmailAddress(companyId,
359                     emailAddress);
360 
361             return returnValue;
362         }
363         catch (Exception e) {
364             _log.error(e, e);
365 
366             throw new RemoteException(e.getMessage());
367         }
368     }
369 
370     public static long getUserIdByScreenName(long companyId,
371         java.lang.String screenName) throws RemoteException {
372         try {
373             long returnValue = UserServiceUtil.getUserIdByScreenName(companyId,
374                     screenName);
375 
376             return returnValue;
377         }
378         catch (Exception e) {
379             _log.error(e, e);
380 
381             throw new RemoteException(e.getMessage());
382         }
383     }
384 
385     public static boolean hasGroupUser(long groupId, long userId)
386         throws RemoteException {
387         try {
388             boolean returnValue = UserServiceUtil.hasGroupUser(groupId, userId);
389 
390             return returnValue;
391         }
392         catch (Exception e) {
393             _log.error(e, e);
394 
395             throw new RemoteException(e.getMessage());
396         }
397     }
398 
399     public static boolean hasRoleUser(long roleId, long userId)
400         throws RemoteException {
401         try {
402             boolean returnValue = UserServiceUtil.hasRoleUser(roleId, userId);
403 
404             return returnValue;
405         }
406         catch (Exception e) {
407             _log.error(e, e);
408 
409             throw new RemoteException(e.getMessage());
410         }
411     }
412 
413     public static boolean hasRoleUser(long companyId, java.lang.String name,
414         long userId, boolean inherited) throws RemoteException {
415         try {
416             boolean returnValue = UserServiceUtil.hasRoleUser(companyId, name,
417                     userId, inherited);
418 
419             return returnValue;
420         }
421         catch (Exception e) {
422             _log.error(e, e);
423 
424             throw new RemoteException(e.getMessage());
425         }
426     }
427 
428     public static void setRoleUsers(long roleId, long[] userIds)
429         throws RemoteException {
430         try {
431             UserServiceUtil.setRoleUsers(roleId, userIds);
432         }
433         catch (Exception e) {
434             _log.error(e, e);
435 
436             throw new RemoteException(e.getMessage());
437         }
438     }
439 
440     public static void setUserGroupUsers(long userGroupId, long[] userIds)
441         throws RemoteException {
442         try {
443             UserServiceUtil.setUserGroupUsers(userGroupId, userIds);
444         }
445         catch (Exception e) {
446             _log.error(e, e);
447 
448             throw new RemoteException(e.getMessage());
449         }
450     }
451 
452     public static void unsetGroupUsers(long groupId, long[] userIds)
453         throws RemoteException {
454         try {
455             UserServiceUtil.unsetGroupUsers(groupId, userIds);
456         }
457         catch (Exception e) {
458             _log.error(e, e);
459 
460             throw new RemoteException(e.getMessage());
461         }
462     }
463 
464     public static void unsetOrganizationUsers(long organizationId,
465         long[] userIds) throws RemoteException {
466         try {
467             UserServiceUtil.unsetOrganizationUsers(organizationId, userIds);
468         }
469         catch (Exception e) {
470             _log.error(e, e);
471 
472             throw new RemoteException(e.getMessage());
473         }
474     }
475 
476     public static void unsetPasswordPolicyUsers(long passwordPolicyId,
477         long[] userIds) throws RemoteException {
478         try {
479             UserServiceUtil.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
480         }
481         catch (Exception e) {
482             _log.error(e, e);
483 
484             throw new RemoteException(e.getMessage());
485         }
486     }
487 
488     public static void unsetRoleUsers(long roleId, long[] userIds)
489         throws RemoteException {
490         try {
491             UserServiceUtil.unsetRoleUsers(roleId, userIds);
492         }
493         catch (Exception e) {
494             _log.error(e, e);
495 
496             throw new RemoteException(e.getMessage());
497         }
498     }
499 
500     public static void unsetTeamUsers(long teamId, long[] userIds)
501         throws RemoteException {
502         try {
503             UserServiceUtil.unsetTeamUsers(teamId, userIds);
504         }
505         catch (Exception e) {
506             _log.error(e, e);
507 
508             throw new RemoteException(e.getMessage());
509         }
510     }
511 
512     public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
513         throws RemoteException {
514         try {
515             UserServiceUtil.unsetUserGroupUsers(userGroupId, userIds);
516         }
517         catch (Exception e) {
518             _log.error(e, e);
519 
520             throw new RemoteException(e.getMessage());
521         }
522     }
523 
524     public static com.liferay.portal.model.UserSoap updateActive(long userId,
525         boolean active) throws RemoteException {
526         try {
527             com.liferay.portal.model.User returnValue = UserServiceUtil.updateActive(userId,
528                     active);
529 
530             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
531         }
532         catch (Exception e) {
533             _log.error(e, e);
534 
535             throw new RemoteException(e.getMessage());
536         }
537     }
538 
539     public static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(
540         long userId, boolean agreedToTermsOfUse) throws RemoteException {
541         try {
542             com.liferay.portal.model.User returnValue = UserServiceUtil.updateAgreedToTermsOfUse(userId,
543                     agreedToTermsOfUse);
544 
545             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
546         }
547         catch (Exception e) {
548             _log.error(e, e);
549 
550             throw new RemoteException(e.getMessage());
551         }
552     }
553 
554     public static void updateEmailAddress(long userId,
555         java.lang.String password, java.lang.String emailAddress1,
556         java.lang.String emailAddress2) throws RemoteException {
557         try {
558             UserServiceUtil.updateEmailAddress(userId, password, emailAddress1,
559                 emailAddress2);
560         }
561         catch (Exception e) {
562             _log.error(e, e);
563 
564             throw new RemoteException(e.getMessage());
565         }
566     }
567 
568     public static com.liferay.portal.model.UserSoap updateLockout(long userId,
569         boolean lockout) throws RemoteException {
570         try {
571             com.liferay.portal.model.User returnValue = UserServiceUtil.updateLockout(userId,
572                     lockout);
573 
574             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
575         }
576         catch (Exception e) {
577             _log.error(e, e);
578 
579             throw new RemoteException(e.getMessage());
580         }
581     }
582 
583     public static void updateOpenId(long userId, java.lang.String openId)
584         throws RemoteException {
585         try {
586             UserServiceUtil.updateOpenId(userId, openId);
587         }
588         catch (Exception e) {
589             _log.error(e, e);
590 
591             throw new RemoteException(e.getMessage());
592         }
593     }
594 
595     public static void updateOrganizations(long userId, long[] organizationIds)
596         throws RemoteException {
597         try {
598             UserServiceUtil.updateOrganizations(userId, organizationIds);
599         }
600         catch (Exception e) {
601             _log.error(e, e);
602 
603             throw new RemoteException(e.getMessage());
604         }
605     }
606 
607     public static com.liferay.portal.model.UserSoap updatePassword(
608         long userId, java.lang.String password1, java.lang.String password2,
609         boolean passwordReset) throws RemoteException {
610         try {
611             com.liferay.portal.model.User returnValue = UserServiceUtil.updatePassword(userId,
612                     password1, password2, passwordReset);
613 
614             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
615         }
616         catch (Exception e) {
617             _log.error(e, e);
618 
619             throw new RemoteException(e.getMessage());
620         }
621     }
622 
623     public static void updatePortrait(long userId, byte[] bytes)
624         throws RemoteException {
625         try {
626             UserServiceUtil.updatePortrait(userId, bytes);
627         }
628         catch (Exception e) {
629             _log.error(e, e);
630 
631             throw new RemoteException(e.getMessage());
632         }
633     }
634 
635     public static void updateReminderQuery(long userId,
636         java.lang.String question, java.lang.String answer)
637         throws RemoteException {
638         try {
639             UserServiceUtil.updateReminderQuery(userId, question, answer);
640         }
641         catch (Exception e) {
642             _log.error(e, e);
643 
644             throw new RemoteException(e.getMessage());
645         }
646     }
647 
648     public static void updateScreenName(long userId, java.lang.String screenName)
649         throws RemoteException {
650         try {
651             UserServiceUtil.updateScreenName(userId, screenName);
652         }
653         catch (Exception e) {
654             _log.error(e, e);
655 
656             throw new RemoteException(e.getMessage());
657         }
658     }
659 
660     public static com.liferay.portal.model.UserSoap updateUser(long userId,
661         java.lang.String oldPassword, java.lang.String newPassword1,
662         java.lang.String newPassword2, boolean passwordReset,
663         java.lang.String reminderQueryQuestion,
664         java.lang.String reminderQueryAnswer, java.lang.String screenName,
665         java.lang.String emailAddress, java.lang.String openId,
666         java.lang.String languageId, java.lang.String timeZoneId,
667         java.lang.String greeting, java.lang.String comments,
668         java.lang.String firstName, java.lang.String middleName,
669         java.lang.String lastName, int prefixId, int suffixId, boolean male,
670         int birthdayMonth, int birthdayDay, int birthdayYear,
671         java.lang.String smsSn, java.lang.String aimSn,
672         java.lang.String facebookSn, java.lang.String icqSn,
673         java.lang.String jabberSn, java.lang.String msnSn,
674         java.lang.String mySpaceSn, java.lang.String skypeSn,
675         java.lang.String twitterSn, java.lang.String ymSn,
676         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
677         long[] roleIds,
678         com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
679         long[] userGroupIds,
680         com.liferay.portal.service.ServiceContext serviceContext)
681         throws RemoteException {
682         try {
683             com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
684                     oldPassword, newPassword1, newPassword2, passwordReset,
685                     reminderQueryQuestion, reminderQueryAnswer, screenName,
686                     emailAddress, openId, languageId, timeZoneId, greeting,
687                     comments, firstName, middleName, lastName, prefixId,
688                     suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
689                     smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
690                     mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
691                     organizationIds, roleIds,
692                     com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
693                         userGroupRoles), userGroupIds, serviceContext);
694 
695             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
696         }
697         catch (Exception e) {
698             _log.error(e, e);
699 
700             throw new RemoteException(e.getMessage());
701         }
702     }
703 
704     public static com.liferay.portal.model.UserSoap updateUser(long userId,
705         java.lang.String oldPassword, java.lang.String newPassword1,
706         java.lang.String newPassword2, boolean passwordReset,
707         java.lang.String reminderQueryQuestion,
708         java.lang.String reminderQueryAnswer, java.lang.String screenName,
709         java.lang.String emailAddress, java.lang.String openId,
710         java.lang.String languageId, java.lang.String timeZoneId,
711         java.lang.String greeting, java.lang.String comments,
712         java.lang.String firstName, java.lang.String middleName,
713         java.lang.String lastName, int prefixId, int suffixId, boolean male,
714         int birthdayMonth, int birthdayDay, int birthdayYear,
715         java.lang.String smsSn, java.lang.String aimSn,
716         java.lang.String facebookSn, java.lang.String icqSn,
717         java.lang.String jabberSn, java.lang.String msnSn,
718         java.lang.String mySpaceSn, java.lang.String skypeSn,
719         java.lang.String twitterSn, java.lang.String ymSn,
720         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
721         long[] roleIds,
722         com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
723         long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
724         com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
725         com.liferay.portal.model.PhoneSoap[] phones,
726         com.liferay.portal.model.WebsiteSoap[] websites,
727         com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
728         com.liferay.portal.service.ServiceContext serviceContext)
729         throws RemoteException {
730         try {
731             com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
732                     oldPassword, newPassword1, newPassword2, passwordReset,
733                     reminderQueryQuestion, reminderQueryAnswer, screenName,
734                     emailAddress, openId, languageId, timeZoneId, greeting,
735                     comments, firstName, middleName, lastName, prefixId,
736                     suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
737                     smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
738                     mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
739                     organizationIds, roleIds,
740                     com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
741                         userGroupRoles), userGroupIds,
742                     com.liferay.portal.model.impl.AddressModelImpl.toModels(
743                         addresses),
744                     com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
745                         emailAddresses),
746                     com.liferay.portal.model.impl.PhoneModelImpl.toModels(
747                         phones),
748                     com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
749                         websites),
750                     com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
751                         announcementsDelivers), serviceContext);
752 
753             return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
754         }
755         catch (Exception e) {
756             _log.error(e, e);
757 
758             throw new RemoteException(e.getMessage());
759         }
760     }
761 
762     private static Log _log = LogFactoryUtil.getLog(UserServiceSoap.class);
763 }