001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.kernel.util.LocaleUtil;
020    import com.liferay.portal.service.UserServiceUtil;
021    
022    import java.rmi.RemoteException;
023    
024    /**
025     * <p>
026     * This class provides a SOAP utility for the
027     * {@link com.liferay.portal.service.UserServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it is difficult for SOAP to
030     * support certain types.
031     * </p>
032     *
033     * <p>
034     * ServiceBuilder follows certain rules in translating the methods. For example,
035     * if the method in the service utility returns a {@link java.util.List}, that
036     * is translated to an array of {@link com.liferay.portal.model.UserSoap}.
037     * If the method in the service utility returns a
038     * {@link com.liferay.portal.model.User}, that is translated to a
039     * {@link com.liferay.portal.model.UserSoap}. Methods that SOAP cannot
040     * safely wire are skipped.
041     * </p>
042     *
043     * <p>
044     * The benefits of using the SOAP utility is that it is cross platform
045     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
046     * even Perl, to call the generated services. One drawback of SOAP is that it is
047     * slow because it needs to serialize all calls into a text format (XML).
048     * </p>
049     *
050     * <p>
051     * You can see a list of services at
052     * http://localhost:8080/tunnel-web/secure/axis. Set the property
053     * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
054     * security.
055     * </p>
056     *
057     * <p>
058     * The SOAP utility is only generated for remote services.
059     * </p>
060     *
061     * @author    Brian Wing Shun Chan
062     * @see       UserServiceHttp
063     * @see       com.liferay.portal.model.UserSoap
064     * @see       com.liferay.portal.service.UserServiceUtil
065     * @generated
066     */
067    public class UserServiceSoap {
068            public static void addGroupUsers(long groupId, long[] userIds)
069                    throws RemoteException {
070                    try {
071                            UserServiceUtil.addGroupUsers(groupId, userIds);
072                    }
073                    catch (Exception e) {
074                            _log.error(e, e);
075    
076                            throw new RemoteException(e.getMessage());
077                    }
078            }
079    
080            public static void addOrganizationUsers(long organizationId, long[] userIds)
081                    throws RemoteException {
082                    try {
083                            UserServiceUtil.addOrganizationUsers(organizationId, userIds);
084                    }
085                    catch (Exception e) {
086                            _log.error(e, e);
087    
088                            throw new RemoteException(e.getMessage());
089                    }
090            }
091    
092            public static void addPasswordPolicyUsers(long passwordPolicyId,
093                    long[] userIds) throws RemoteException {
094                    try {
095                            UserServiceUtil.addPasswordPolicyUsers(passwordPolicyId, userIds);
096                    }
097                    catch (Exception e) {
098                            _log.error(e, e);
099    
100                            throw new RemoteException(e.getMessage());
101                    }
102            }
103    
104            public static void addRoleUsers(long roleId, long[] userIds)
105                    throws RemoteException {
106                    try {
107                            UserServiceUtil.addRoleUsers(roleId, userIds);
108                    }
109                    catch (Exception e) {
110                            _log.error(e, e);
111    
112                            throw new RemoteException(e.getMessage());
113                    }
114            }
115    
116            public static void addTeamUsers(long teamId, long[] userIds)
117                    throws RemoteException {
118                    try {
119                            UserServiceUtil.addTeamUsers(teamId, userIds);
120                    }
121                    catch (Exception e) {
122                            _log.error(e, e);
123    
124                            throw new RemoteException(e.getMessage());
125                    }
126            }
127    
128            public static void addUserGroupUsers(long userGroupId, long[] userIds)
129                    throws RemoteException {
130                    try {
131                            UserServiceUtil.addUserGroupUsers(userGroupId, userIds);
132                    }
133                    catch (Exception e) {
134                            _log.error(e, e);
135    
136                            throw new RemoteException(e.getMessage());
137                    }
138            }
139    
140            public static com.liferay.portal.model.UserSoap addUser(long companyId,
141                    boolean autoPassword, java.lang.String password1,
142                    java.lang.String password2, boolean autoScreenName,
143                    java.lang.String screenName, java.lang.String emailAddress,
144                    long facebookId, java.lang.String openId, String locale,
145                    java.lang.String firstName, java.lang.String middleName,
146                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
147                    int birthdayMonth, int birthdayDay, int birthdayYear,
148                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
149                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws RemoteException {
152                    try {
153                            com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
154                                            autoPassword, password1, password2, autoScreenName,
155                                            screenName, emailAddress, facebookId, openId,
156                                            LocaleUtil.fromLanguageId(locale), firstName, middleName,
157                                            lastName, prefixId, suffixId, male, birthdayMonth,
158                                            birthdayDay, birthdayYear, jobTitle, groupIds,
159                                            organizationIds, roleIds, userGroupIds, sendEmail,
160                                            serviceContext);
161    
162                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
163                    }
164                    catch (Exception e) {
165                            _log.error(e, e);
166    
167                            throw new RemoteException(e.getMessage());
168                    }
169            }
170    
171            public static com.liferay.portal.model.UserSoap addUser(long companyId,
172                    boolean autoPassword, java.lang.String password1,
173                    java.lang.String password2, boolean autoScreenName,
174                    java.lang.String screenName, java.lang.String emailAddress,
175                    long facebookId, java.lang.String openId, String locale,
176                    java.lang.String firstName, java.lang.String middleName,
177                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
178                    int birthdayMonth, int birthdayDay, int birthdayYear,
179                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
180                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
181                    com.liferay.portal.model.AddressSoap[] addresses,
182                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
183                    com.liferay.portal.model.PhoneSoap[] phones,
184                    com.liferay.portal.model.WebsiteSoap[] websites,
185                    com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
186                    com.liferay.portal.service.ServiceContext serviceContext)
187                    throws RemoteException {
188                    try {
189                            com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
190                                            autoPassword, password1, password2, autoScreenName,
191                                            screenName, emailAddress, facebookId, openId,
192                                            LocaleUtil.fromLanguageId(locale), firstName, middleName,
193                                            lastName, prefixId, suffixId, male, birthdayMonth,
194                                            birthdayDay, birthdayYear, jobTitle, groupIds,
195                                            organizationIds, roleIds, userGroupIds, sendEmail,
196                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
197                                                    addresses),
198                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
199                                                    emailAddresses),
200                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
201                                                    phones),
202                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
203                                                    websites),
204                                            com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
205                                                    announcementsDelivers), serviceContext);
206    
207                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
208                    }
209                    catch (Exception e) {
210                            _log.error(e, e);
211    
212                            throw new RemoteException(e.getMessage());
213                    }
214            }
215    
216            public static void deletePortrait(long userId) throws RemoteException {
217                    try {
218                            UserServiceUtil.deletePortrait(userId);
219                    }
220                    catch (Exception e) {
221                            _log.error(e, e);
222    
223                            throw new RemoteException(e.getMessage());
224                    }
225            }
226    
227            public static void deleteRoleUser(long roleId, long userId)
228                    throws RemoteException {
229                    try {
230                            UserServiceUtil.deleteRoleUser(roleId, userId);
231                    }
232                    catch (Exception e) {
233                            _log.error(e, e);
234    
235                            throw new RemoteException(e.getMessage());
236                    }
237            }
238    
239            public static void deleteUser(long userId) throws RemoteException {
240                    try {
241                            UserServiceUtil.deleteUser(userId);
242                    }
243                    catch (Exception e) {
244                            _log.error(e, e);
245    
246                            throw new RemoteException(e.getMessage());
247                    }
248            }
249    
250            public static long getDefaultUserId(long companyId)
251                    throws RemoteException {
252                    try {
253                            long returnValue = UserServiceUtil.getDefaultUserId(companyId);
254    
255                            return returnValue;
256                    }
257                    catch (Exception e) {
258                            _log.error(e, e);
259    
260                            throw new RemoteException(e.getMessage());
261                    }
262            }
263    
264            public static long[] getGroupUserIds(long groupId)
265                    throws RemoteException {
266                    try {
267                            long[] returnValue = UserServiceUtil.getGroupUserIds(groupId);
268    
269                            return returnValue;
270                    }
271                    catch (Exception e) {
272                            _log.error(e, e);
273    
274                            throw new RemoteException(e.getMessage());
275                    }
276            }
277    
278            public static long[] getOrganizationUserIds(long organizationId)
279                    throws RemoteException {
280                    try {
281                            long[] returnValue = UserServiceUtil.getOrganizationUserIds(organizationId);
282    
283                            return returnValue;
284                    }
285                    catch (Exception e) {
286                            _log.error(e, e);
287    
288                            throw new RemoteException(e.getMessage());
289                    }
290            }
291    
292            public static long[] getRoleUserIds(long roleId) throws RemoteException {
293                    try {
294                            long[] returnValue = UserServiceUtil.getRoleUserIds(roleId);
295    
296                            return returnValue;
297                    }
298                    catch (Exception e) {
299                            _log.error(e, e);
300    
301                            throw new RemoteException(e.getMessage());
302                    }
303            }
304    
305            public static com.liferay.portal.model.UserSoap getUserByEmailAddress(
306                    long companyId, java.lang.String emailAddress)
307                    throws RemoteException {
308                    try {
309                            com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByEmailAddress(companyId,
310                                            emailAddress);
311    
312                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
313                    }
314                    catch (Exception e) {
315                            _log.error(e, e);
316    
317                            throw new RemoteException(e.getMessage());
318                    }
319            }
320    
321            public static com.liferay.portal.model.UserSoap getUserById(long userId)
322                    throws RemoteException {
323                    try {
324                            com.liferay.portal.model.User returnValue = UserServiceUtil.getUserById(userId);
325    
326                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
327                    }
328                    catch (Exception e) {
329                            _log.error(e, e);
330    
331                            throw new RemoteException(e.getMessage());
332                    }
333            }
334    
335            public static com.liferay.portal.model.UserSoap getUserByScreenName(
336                    long companyId, java.lang.String screenName) throws RemoteException {
337                    try {
338                            com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByScreenName(companyId,
339                                            screenName);
340    
341                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
342                    }
343                    catch (Exception e) {
344                            _log.error(e, e);
345    
346                            throw new RemoteException(e.getMessage());
347                    }
348            }
349    
350            public static long getUserIdByEmailAddress(long companyId,
351                    java.lang.String emailAddress) throws RemoteException {
352                    try {
353                            long returnValue = UserServiceUtil.getUserIdByEmailAddress(companyId,
354                                            emailAddress);
355    
356                            return returnValue;
357                    }
358                    catch (Exception e) {
359                            _log.error(e, e);
360    
361                            throw new RemoteException(e.getMessage());
362                    }
363            }
364    
365            public static long getUserIdByScreenName(long companyId,
366                    java.lang.String screenName) throws RemoteException {
367                    try {
368                            long returnValue = UserServiceUtil.getUserIdByScreenName(companyId,
369                                            screenName);
370    
371                            return returnValue;
372                    }
373                    catch (Exception e) {
374                            _log.error(e, e);
375    
376                            throw new RemoteException(e.getMessage());
377                    }
378            }
379    
380            public static boolean hasGroupUser(long groupId, long userId)
381                    throws RemoteException {
382                    try {
383                            boolean returnValue = UserServiceUtil.hasGroupUser(groupId, userId);
384    
385                            return returnValue;
386                    }
387                    catch (Exception e) {
388                            _log.error(e, e);
389    
390                            throw new RemoteException(e.getMessage());
391                    }
392            }
393    
394            public static boolean hasRoleUser(long roleId, long userId)
395                    throws RemoteException {
396                    try {
397                            boolean returnValue = UserServiceUtil.hasRoleUser(roleId, userId);
398    
399                            return returnValue;
400                    }
401                    catch (Exception e) {
402                            _log.error(e, e);
403    
404                            throw new RemoteException(e.getMessage());
405                    }
406            }
407    
408            public static boolean hasRoleUser(long companyId, java.lang.String name,
409                    long userId, boolean inherited) throws RemoteException {
410                    try {
411                            boolean returnValue = UserServiceUtil.hasRoleUser(companyId, name,
412                                            userId, inherited);
413    
414                            return returnValue;
415                    }
416                    catch (Exception e) {
417                            _log.error(e, e);
418    
419                            throw new RemoteException(e.getMessage());
420                    }
421            }
422    
423            public static void setRoleUsers(long roleId, long[] userIds)
424                    throws RemoteException {
425                    try {
426                            UserServiceUtil.setRoleUsers(roleId, userIds);
427                    }
428                    catch (Exception e) {
429                            _log.error(e, e);
430    
431                            throw new RemoteException(e.getMessage());
432                    }
433            }
434    
435            public static void setUserGroupUsers(long userGroupId, long[] userIds)
436                    throws RemoteException {
437                    try {
438                            UserServiceUtil.setUserGroupUsers(userGroupId, userIds);
439                    }
440                    catch (Exception e) {
441                            _log.error(e, e);
442    
443                            throw new RemoteException(e.getMessage());
444                    }
445            }
446    
447            public static void unsetGroupUsers(long groupId, long[] userIds)
448                    throws RemoteException {
449                    try {
450                            UserServiceUtil.unsetGroupUsers(groupId, userIds);
451                    }
452                    catch (Exception e) {
453                            _log.error(e, e);
454    
455                            throw new RemoteException(e.getMessage());
456                    }
457            }
458    
459            public static void unsetOrganizationUsers(long organizationId,
460                    long[] userIds) throws RemoteException {
461                    try {
462                            UserServiceUtil.unsetOrganizationUsers(organizationId, userIds);
463                    }
464                    catch (Exception e) {
465                            _log.error(e, e);
466    
467                            throw new RemoteException(e.getMessage());
468                    }
469            }
470    
471            public static void unsetPasswordPolicyUsers(long passwordPolicyId,
472                    long[] userIds) throws RemoteException {
473                    try {
474                            UserServiceUtil.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
475                    }
476                    catch (Exception e) {
477                            _log.error(e, e);
478    
479                            throw new RemoteException(e.getMessage());
480                    }
481            }
482    
483            public static void unsetRoleUsers(long roleId, long[] userIds)
484                    throws RemoteException {
485                    try {
486                            UserServiceUtil.unsetRoleUsers(roleId, userIds);
487                    }
488                    catch (Exception e) {
489                            _log.error(e, e);
490    
491                            throw new RemoteException(e.getMessage());
492                    }
493            }
494    
495            public static void unsetTeamUsers(long teamId, long[] userIds)
496                    throws RemoteException {
497                    try {
498                            UserServiceUtil.unsetTeamUsers(teamId, userIds);
499                    }
500                    catch (Exception e) {
501                            _log.error(e, e);
502    
503                            throw new RemoteException(e.getMessage());
504                    }
505            }
506    
507            public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
508                    throws RemoteException {
509                    try {
510                            UserServiceUtil.unsetUserGroupUsers(userGroupId, userIds);
511                    }
512                    catch (Exception e) {
513                            _log.error(e, e);
514    
515                            throw new RemoteException(e.getMessage());
516                    }
517            }
518    
519            public static com.liferay.portal.model.UserSoap updateActive(long userId,
520                    boolean active) throws RemoteException {
521                    try {
522                            com.liferay.portal.model.User returnValue = UserServiceUtil.updateActive(userId,
523                                            active);
524    
525                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
526                    }
527                    catch (Exception e) {
528                            _log.error(e, e);
529    
530                            throw new RemoteException(e.getMessage());
531                    }
532            }
533    
534            public static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(
535                    long userId, boolean agreedToTermsOfUse) throws RemoteException {
536                    try {
537                            com.liferay.portal.model.User returnValue = UserServiceUtil.updateAgreedToTermsOfUse(userId,
538                                            agreedToTermsOfUse);
539    
540                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
541                    }
542                    catch (Exception e) {
543                            _log.error(e, e);
544    
545                            throw new RemoteException(e.getMessage());
546                    }
547            }
548    
549            public static void updateEmailAddress(long userId,
550                    java.lang.String password, java.lang.String emailAddress1,
551                    java.lang.String emailAddress2) throws RemoteException {
552                    try {
553                            UserServiceUtil.updateEmailAddress(userId, password, emailAddress1,
554                                    emailAddress2);
555                    }
556                    catch (Exception e) {
557                            _log.error(e, e);
558    
559                            throw new RemoteException(e.getMessage());
560                    }
561            }
562    
563            public static com.liferay.portal.model.UserSoap updateLockout(long userId,
564                    boolean lockout) throws RemoteException {
565                    try {
566                            com.liferay.portal.model.User returnValue = UserServiceUtil.updateLockout(userId,
567                                            lockout);
568    
569                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
570                    }
571                    catch (Exception e) {
572                            _log.error(e, e);
573    
574                            throw new RemoteException(e.getMessage());
575                    }
576            }
577    
578            public static void updateOpenId(long userId, java.lang.String openId)
579                    throws RemoteException {
580                    try {
581                            UserServiceUtil.updateOpenId(userId, openId);
582                    }
583                    catch (Exception e) {
584                            _log.error(e, e);
585    
586                            throw new RemoteException(e.getMessage());
587                    }
588            }
589    
590            public static void updateOrganizations(long userId, long[] organizationIds)
591                    throws RemoteException {
592                    try {
593                            UserServiceUtil.updateOrganizations(userId, organizationIds);
594                    }
595                    catch (Exception e) {
596                            _log.error(e, e);
597    
598                            throw new RemoteException(e.getMessage());
599                    }
600            }
601    
602            public static com.liferay.portal.model.UserSoap updatePassword(
603                    long userId, java.lang.String password1, java.lang.String password2,
604                    boolean passwordReset) throws RemoteException {
605                    try {
606                            com.liferay.portal.model.User returnValue = UserServiceUtil.updatePassword(userId,
607                                            password1, password2, passwordReset);
608    
609                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
610                    }
611                    catch (Exception e) {
612                            _log.error(e, e);
613    
614                            throw new RemoteException(e.getMessage());
615                    }
616            }
617    
618            public static void updatePortrait(long userId, byte[] bytes)
619                    throws RemoteException {
620                    try {
621                            UserServiceUtil.updatePortrait(userId, bytes);
622                    }
623                    catch (Exception e) {
624                            _log.error(e, e);
625    
626                            throw new RemoteException(e.getMessage());
627                    }
628            }
629    
630            public static void updateReminderQuery(long userId,
631                    java.lang.String question, java.lang.String answer)
632                    throws RemoteException {
633                    try {
634                            UserServiceUtil.updateReminderQuery(userId, question, answer);
635                    }
636                    catch (Exception e) {
637                            _log.error(e, e);
638    
639                            throw new RemoteException(e.getMessage());
640                    }
641            }
642    
643            public static void updateScreenName(long userId, java.lang.String screenName)
644                    throws RemoteException {
645                    try {
646                            UserServiceUtil.updateScreenName(userId, screenName);
647                    }
648                    catch (Exception e) {
649                            _log.error(e, e);
650    
651                            throw new RemoteException(e.getMessage());
652                    }
653            }
654    
655            public static com.liferay.portal.model.UserSoap updateUser(long userId,
656                    java.lang.String oldPassword, java.lang.String newPassword1,
657                    java.lang.String newPassword2, boolean passwordReset,
658                    java.lang.String reminderQueryQuestion,
659                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
660                    java.lang.String emailAddress, long facebookId,
661                    java.lang.String openId, java.lang.String languageId,
662                    java.lang.String timeZoneId, java.lang.String greeting,
663                    java.lang.String comments, java.lang.String firstName,
664                    java.lang.String middleName, java.lang.String lastName, int prefixId,
665                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
666                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
667                    java.lang.String facebookSn, java.lang.String icqSn,
668                    java.lang.String jabberSn, java.lang.String msnSn,
669                    java.lang.String mySpaceSn, java.lang.String skypeSn,
670                    java.lang.String twitterSn, java.lang.String ymSn,
671                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
672                    long[] roleIds,
673                    com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
674                    long[] userGroupIds,
675                    com.liferay.portal.service.ServiceContext serviceContext)
676                    throws RemoteException {
677                    try {
678                            com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
679                                            oldPassword, newPassword1, newPassword2, passwordReset,
680                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
681                                            emailAddress, facebookId, openId, languageId, timeZoneId,
682                                            greeting, comments, firstName, middleName, lastName,
683                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
684                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
685                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
686                                            groupIds, organizationIds, roleIds,
687                                            com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
688                                                    userGroupRoles), userGroupIds, serviceContext);
689    
690                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
691                    }
692                    catch (Exception e) {
693                            _log.error(e, e);
694    
695                            throw new RemoteException(e.getMessage());
696                    }
697            }
698    
699            public static com.liferay.portal.model.UserSoap updateUser(long userId,
700                    java.lang.String oldPassword, java.lang.String newPassword1,
701                    java.lang.String newPassword2, boolean passwordReset,
702                    java.lang.String reminderQueryQuestion,
703                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
704                    java.lang.String emailAddress, long facebookId,
705                    java.lang.String openId, java.lang.String languageId,
706                    java.lang.String timeZoneId, java.lang.String greeting,
707                    java.lang.String comments, java.lang.String firstName,
708                    java.lang.String middleName, java.lang.String lastName, int prefixId,
709                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
710                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
711                    java.lang.String facebookSn, java.lang.String icqSn,
712                    java.lang.String jabberSn, java.lang.String msnSn,
713                    java.lang.String mySpaceSn, java.lang.String skypeSn,
714                    java.lang.String twitterSn, java.lang.String ymSn,
715                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
716                    long[] roleIds,
717                    com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
718                    long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
719                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
720                    com.liferay.portal.model.PhoneSoap[] phones,
721                    com.liferay.portal.model.WebsiteSoap[] websites,
722                    com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
723                    com.liferay.portal.service.ServiceContext serviceContext)
724                    throws RemoteException {
725                    try {
726                            com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
727                                            oldPassword, newPassword1, newPassword2, passwordReset,
728                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
729                                            emailAddress, facebookId, openId, languageId, timeZoneId,
730                                            greeting, comments, firstName, middleName, lastName,
731                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
732                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
733                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
734                                            groupIds, organizationIds, roleIds,
735                                            com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
736                                                    userGroupRoles), userGroupIds,
737                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
738                                                    addresses),
739                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
740                                                    emailAddresses),
741                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
742                                                    phones),
743                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
744                                                    websites),
745                                            com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
746                                                    announcementsDelivers), serviceContext);
747    
748                            return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
749                    }
750                    catch (Exception e) {
751                            _log.error(e, e);
752    
753                            throw new RemoteException(e.getMessage());
754                    }
755            }
756    
757            private static Log _log = LogFactoryUtil.getLog(UserServiceSoap.class);
758    }