001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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.MethodHandler;
020    import com.liferay.portal.kernel.util.MethodKey;
021    import com.liferay.portal.security.auth.HttpPrincipal;
022    import com.liferay.portal.service.UserServiceUtil;
023    
024    /**
025     * <p>
026     * This class provides a HTTP 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 requires an additional
030     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
031     * </p>
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author    Brian Wing Shun Chan
049     * @see       UserServiceSoap
050     * @see       com.liferay.portal.security.auth.HttpPrincipal
051     * @see       com.liferay.portal.service.UserServiceUtil
052     * @generated
053     */
054    public class UserServiceHttp {
055            public static void addGroupUsers(HttpPrincipal httpPrincipal, long groupId,
056                    long[] userIds, com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    try {
060                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
061                                            "addGroupUsers", _addGroupUsersParameterTypes0);
062    
063                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
064                                            userIds, serviceContext);
065    
066                            try {
067                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
068                            }
069                            catch (Exception e) {
070                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
071                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
072                                    }
073    
074                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
075                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
076                                    }
077    
078                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
079                            }
080                    }
081                    catch (com.liferay.portal.kernel.exception.SystemException se) {
082                            _log.error(se, se);
083    
084                            throw se;
085                    }
086            }
087    
088            public static void addOrganizationUsers(HttpPrincipal httpPrincipal,
089                    long organizationId, long[] userIds)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    try {
093                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
094                                            "addOrganizationUsers", _addOrganizationUsersParameterTypes1);
095    
096                            MethodHandler methodHandler = new MethodHandler(methodKey,
097                                            organizationId, userIds);
098    
099                            try {
100                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
101                            }
102                            catch (Exception e) {
103                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
104                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
105                                    }
106    
107                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
108                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
109                                    }
110    
111                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
112                            }
113                    }
114                    catch (com.liferay.portal.kernel.exception.SystemException se) {
115                            _log.error(se, se);
116    
117                            throw se;
118                    }
119            }
120    
121            public static void addPasswordPolicyUsers(HttpPrincipal httpPrincipal,
122                    long passwordPolicyId, long[] userIds)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    try {
126                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
127                                            "addPasswordPolicyUsers",
128                                            _addPasswordPolicyUsersParameterTypes2);
129    
130                            MethodHandler methodHandler = new MethodHandler(methodKey,
131                                            passwordPolicyId, userIds);
132    
133                            try {
134                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
135                            }
136                            catch (Exception e) {
137                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
138                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
139                                    }
140    
141                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
142                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
143                                    }
144    
145                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
146                            }
147                    }
148                    catch (com.liferay.portal.kernel.exception.SystemException se) {
149                            _log.error(se, se);
150    
151                            throw se;
152                    }
153            }
154    
155            public static void addRoleUsers(HttpPrincipal httpPrincipal, long roleId,
156                    long[] userIds)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    try {
160                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
161                                            "addRoleUsers", _addRoleUsersParameterTypes3);
162    
163                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
164                                            userIds);
165    
166                            try {
167                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
168                            }
169                            catch (Exception e) {
170                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
171                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
172                                    }
173    
174                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
175                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
176                                    }
177    
178                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
179                            }
180                    }
181                    catch (com.liferay.portal.kernel.exception.SystemException se) {
182                            _log.error(se, se);
183    
184                            throw se;
185                    }
186            }
187    
188            public static void addTeamUsers(HttpPrincipal httpPrincipal, long teamId,
189                    long[] userIds)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    try {
193                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
194                                            "addTeamUsers", _addTeamUsersParameterTypes4);
195    
196                            MethodHandler methodHandler = new MethodHandler(methodKey, teamId,
197                                            userIds);
198    
199                            try {
200                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
201                            }
202                            catch (Exception e) {
203                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
204                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
205                                    }
206    
207                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
208                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
209                                    }
210    
211                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
212                            }
213                    }
214                    catch (com.liferay.portal.kernel.exception.SystemException se) {
215                            _log.error(se, se);
216    
217                            throw se;
218                    }
219            }
220    
221            public static com.liferay.portal.model.User addUser(
222                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
223                    java.lang.String password1, java.lang.String password2,
224                    boolean autoScreenName, java.lang.String screenName,
225                    java.lang.String emailAddress, long facebookId,
226                    java.lang.String openId, java.util.Locale locale,
227                    java.lang.String firstName, java.lang.String middleName,
228                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
229                    int birthdayMonth, int birthdayDay, int birthdayYear,
230                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
231                    long[] roleIds, long[] userGroupIds,
232                    java.util.List<com.liferay.portal.model.Address> addresses,
233                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
234                    java.util.List<com.liferay.portal.model.Phone> phones,
235                    java.util.List<com.liferay.portal.model.Website> websites,
236                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
237                    boolean sendEmail,
238                    com.liferay.portal.service.ServiceContext serviceContext)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    try {
242                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
243                                            "addUser", _addUserParameterTypes5);
244    
245                            MethodHandler methodHandler = new MethodHandler(methodKey,
246                                            companyId, autoPassword, password1, password2,
247                                            autoScreenName, screenName, emailAddress, facebookId,
248                                            openId, locale, firstName, middleName, lastName, prefixId,
249                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
250                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
251                                            addresses, emailAddresses, phones, websites,
252                                            announcementsDelivers, sendEmail, serviceContext);
253    
254                            Object returnObj = null;
255    
256                            try {
257                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
258                            }
259                            catch (Exception e) {
260                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
261                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
262                                    }
263    
264                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
265                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
266                                    }
267    
268                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
269                            }
270    
271                            return (com.liferay.portal.model.User)returnObj;
272                    }
273                    catch (com.liferay.portal.kernel.exception.SystemException se) {
274                            _log.error(se, se);
275    
276                            throw se;
277                    }
278            }
279    
280            public static com.liferay.portal.model.User addUser(
281                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
282                    java.lang.String password1, java.lang.String password2,
283                    boolean autoScreenName, java.lang.String screenName,
284                    java.lang.String emailAddress, long facebookId,
285                    java.lang.String openId, java.util.Locale locale,
286                    java.lang.String firstName, java.lang.String middleName,
287                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
288                    int birthdayMonth, int birthdayDay, int birthdayYear,
289                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
290                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
291                    com.liferay.portal.service.ServiceContext serviceContext)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    try {
295                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
296                                            "addUser", _addUserParameterTypes6);
297    
298                            MethodHandler methodHandler = new MethodHandler(methodKey,
299                                            companyId, autoPassword, password1, password2,
300                                            autoScreenName, screenName, emailAddress, facebookId,
301                                            openId, locale, firstName, middleName, lastName, prefixId,
302                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
303                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
304                                            sendEmail, serviceContext);
305    
306                            Object returnObj = null;
307    
308                            try {
309                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
310                            }
311                            catch (Exception e) {
312                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
313                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
314                                    }
315    
316                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
317                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
318                                    }
319    
320                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
321                            }
322    
323                            return (com.liferay.portal.model.User)returnObj;
324                    }
325                    catch (com.liferay.portal.kernel.exception.SystemException se) {
326                            _log.error(se, se);
327    
328                            throw se;
329                    }
330            }
331    
332            public static com.liferay.portal.model.User addUserWithWorkflow(
333                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
334                    java.lang.String password1, java.lang.String password2,
335                    boolean autoScreenName, java.lang.String screenName,
336                    java.lang.String emailAddress, long facebookId,
337                    java.lang.String openId, java.util.Locale locale,
338                    java.lang.String firstName, java.lang.String middleName,
339                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
340                    int birthdayMonth, int birthdayDay, int birthdayYear,
341                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
342                    long[] roleIds, long[] userGroupIds,
343                    java.util.List<com.liferay.portal.model.Address> addresses,
344                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
345                    java.util.List<com.liferay.portal.model.Phone> phones,
346                    java.util.List<com.liferay.portal.model.Website> websites,
347                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
348                    boolean sendEmail,
349                    com.liferay.portal.service.ServiceContext serviceContext)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    try {
353                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
354                                            "addUserWithWorkflow", _addUserWithWorkflowParameterTypes7);
355    
356                            MethodHandler methodHandler = new MethodHandler(methodKey,
357                                            companyId, autoPassword, password1, password2,
358                                            autoScreenName, screenName, emailAddress, facebookId,
359                                            openId, locale, firstName, middleName, lastName, prefixId,
360                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
361                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
362                                            addresses, emailAddresses, phones, websites,
363                                            announcementsDelivers, sendEmail, serviceContext);
364    
365                            Object returnObj = null;
366    
367                            try {
368                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
369                            }
370                            catch (Exception e) {
371                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
372                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
373                                    }
374    
375                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
376                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
377                                    }
378    
379                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
380                            }
381    
382                            return (com.liferay.portal.model.User)returnObj;
383                    }
384                    catch (com.liferay.portal.kernel.exception.SystemException se) {
385                            _log.error(se, se);
386    
387                            throw se;
388                    }
389            }
390    
391            public static com.liferay.portal.model.User addUserWithWorkflow(
392                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
393                    java.lang.String password1, java.lang.String password2,
394                    boolean autoScreenName, java.lang.String screenName,
395                    java.lang.String emailAddress, long facebookId,
396                    java.lang.String openId, java.util.Locale locale,
397                    java.lang.String firstName, java.lang.String middleName,
398                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
399                    int birthdayMonth, int birthdayDay, int birthdayYear,
400                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
401                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
402                    com.liferay.portal.service.ServiceContext serviceContext)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    try {
406                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
407                                            "addUserWithWorkflow", _addUserWithWorkflowParameterTypes8);
408    
409                            MethodHandler methodHandler = new MethodHandler(methodKey,
410                                            companyId, autoPassword, password1, password2,
411                                            autoScreenName, screenName, emailAddress, facebookId,
412                                            openId, locale, firstName, middleName, lastName, prefixId,
413                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
414                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
415                                            sendEmail, serviceContext);
416    
417                            Object returnObj = null;
418    
419                            try {
420                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
421                            }
422                            catch (Exception e) {
423                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
424                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
425                                    }
426    
427                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
428                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
429                                    }
430    
431                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
432                            }
433    
434                            return (com.liferay.portal.model.User)returnObj;
435                    }
436                    catch (com.liferay.portal.kernel.exception.SystemException se) {
437                            _log.error(se, se);
438    
439                            throw se;
440                    }
441            }
442    
443            public static void addUserGroupUsers(HttpPrincipal httpPrincipal,
444                    long userGroupId, long[] userIds)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    try {
448                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
449                                            "addUserGroupUsers", _addUserGroupUsersParameterTypes9);
450    
451                            MethodHandler methodHandler = new MethodHandler(methodKey,
452                                            userGroupId, userIds);
453    
454                            try {
455                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
456                            }
457                            catch (Exception e) {
458                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
459                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
460                                    }
461    
462                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
463                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
464                                    }
465    
466                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
467                            }
468                    }
469                    catch (com.liferay.portal.kernel.exception.SystemException se) {
470                            _log.error(se, se);
471    
472                            throw se;
473                    }
474            }
475    
476            public static void deletePortrait(HttpPrincipal httpPrincipal, long userId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    try {
480                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
481                                            "deletePortrait", _deletePortraitParameterTypes10);
482    
483                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
484    
485                            try {
486                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
487                            }
488                            catch (Exception e) {
489                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
490                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
491                                    }
492    
493                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
494                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
495                                    }
496    
497                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
498                            }
499                    }
500                    catch (com.liferay.portal.kernel.exception.SystemException se) {
501                            _log.error(se, se);
502    
503                            throw se;
504                    }
505            }
506    
507            public static void deleteRoleUser(HttpPrincipal httpPrincipal, long roleId,
508                    long userId)
509                    throws com.liferay.portal.kernel.exception.PortalException,
510                            com.liferay.portal.kernel.exception.SystemException {
511                    try {
512                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
513                                            "deleteRoleUser", _deleteRoleUserParameterTypes11);
514    
515                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
516                                            userId);
517    
518                            try {
519                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
520                            }
521                            catch (Exception e) {
522                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
523                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
524                                    }
525    
526                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
527                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
528                                    }
529    
530                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
531                            }
532                    }
533                    catch (com.liferay.portal.kernel.exception.SystemException se) {
534                            _log.error(se, se);
535    
536                            throw se;
537                    }
538            }
539    
540            public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
541                    throws com.liferay.portal.kernel.exception.PortalException,
542                            com.liferay.portal.kernel.exception.SystemException {
543                    try {
544                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
545                                            "deleteUser", _deleteUserParameterTypes12);
546    
547                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
548    
549                            try {
550                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
551                            }
552                            catch (Exception e) {
553                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
554                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
555                                    }
556    
557                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
558                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
559                                    }
560    
561                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
562                            }
563                    }
564                    catch (com.liferay.portal.kernel.exception.SystemException se) {
565                            _log.error(se, se);
566    
567                            throw se;
568                    }
569            }
570    
571            public static long getDefaultUserId(HttpPrincipal httpPrincipal,
572                    long companyId)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException {
575                    try {
576                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
577                                            "getDefaultUserId", _getDefaultUserIdParameterTypes13);
578    
579                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
580    
581                            Object returnObj = null;
582    
583                            try {
584                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
585                            }
586                            catch (Exception e) {
587                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
588                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
589                                    }
590    
591                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
592                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
593                                    }
594    
595                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
596                            }
597    
598                            return ((Long)returnObj).longValue();
599                    }
600                    catch (com.liferay.portal.kernel.exception.SystemException se) {
601                            _log.error(se, se);
602    
603                            throw se;
604                    }
605            }
606    
607            public static long[] getGroupUserIds(HttpPrincipal httpPrincipal,
608                    long groupId)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    try {
612                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
613                                            "getGroupUserIds", _getGroupUserIdsParameterTypes14);
614    
615                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
616    
617                            Object returnObj = null;
618    
619                            try {
620                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
621                            }
622                            catch (Exception e) {
623                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
624                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
625                                    }
626    
627                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
628                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
629                                    }
630    
631                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
632                            }
633    
634                            return (long[])returnObj;
635                    }
636                    catch (com.liferay.portal.kernel.exception.SystemException se) {
637                            _log.error(se, se);
638    
639                            throw se;
640                    }
641            }
642    
643            public static long[] getOrganizationUserIds(HttpPrincipal httpPrincipal,
644                    long organizationId)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    try {
648                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
649                                            "getOrganizationUserIds",
650                                            _getOrganizationUserIdsParameterTypes15);
651    
652                            MethodHandler methodHandler = new MethodHandler(methodKey,
653                                            organizationId);
654    
655                            Object returnObj = null;
656    
657                            try {
658                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
659                            }
660                            catch (Exception e) {
661                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
662                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
663                                    }
664    
665                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
666                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
667                                    }
668    
669                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
670                            }
671    
672                            return (long[])returnObj;
673                    }
674                    catch (com.liferay.portal.kernel.exception.SystemException se) {
675                            _log.error(se, se);
676    
677                            throw se;
678                    }
679            }
680    
681            public static long[] getRoleUserIds(HttpPrincipal httpPrincipal, long roleId)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException {
684                    try {
685                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
686                                            "getRoleUserIds", _getRoleUserIdsParameterTypes16);
687    
688                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
689    
690                            Object returnObj = null;
691    
692                            try {
693                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
694                            }
695                            catch (Exception e) {
696                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
697                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
698                                    }
699    
700                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
701                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
702                                    }
703    
704                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
705                            }
706    
707                            return (long[])returnObj;
708                    }
709                    catch (com.liferay.portal.kernel.exception.SystemException se) {
710                            _log.error(se, se);
711    
712                            throw se;
713                    }
714            }
715    
716            public static com.liferay.portal.model.User getUserByEmailAddress(
717                    HttpPrincipal httpPrincipal, long companyId,
718                    java.lang.String emailAddress)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    try {
722                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
723                                            "getUserByEmailAddress",
724                                            _getUserByEmailAddressParameterTypes17);
725    
726                            MethodHandler methodHandler = new MethodHandler(methodKey,
727                                            companyId, emailAddress);
728    
729                            Object returnObj = null;
730    
731                            try {
732                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
733                            }
734                            catch (Exception e) {
735                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
736                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
737                                    }
738    
739                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
740                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
741                                    }
742    
743                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
744                            }
745    
746                            return (com.liferay.portal.model.User)returnObj;
747                    }
748                    catch (com.liferay.portal.kernel.exception.SystemException se) {
749                            _log.error(se, se);
750    
751                            throw se;
752                    }
753            }
754    
755            public static com.liferay.portal.model.User getUserById(
756                    HttpPrincipal httpPrincipal, long userId)
757                    throws com.liferay.portal.kernel.exception.PortalException,
758                            com.liferay.portal.kernel.exception.SystemException {
759                    try {
760                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
761                                            "getUserById", _getUserByIdParameterTypes18);
762    
763                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
764    
765                            Object returnObj = null;
766    
767                            try {
768                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
769                            }
770                            catch (Exception e) {
771                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
772                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
773                                    }
774    
775                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
776                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
777                                    }
778    
779                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
780                            }
781    
782                            return (com.liferay.portal.model.User)returnObj;
783                    }
784                    catch (com.liferay.portal.kernel.exception.SystemException se) {
785                            _log.error(se, se);
786    
787                            throw se;
788                    }
789            }
790    
791            public static com.liferay.portal.model.User getUserByScreenName(
792                    HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
793                    throws com.liferay.portal.kernel.exception.PortalException,
794                            com.liferay.portal.kernel.exception.SystemException {
795                    try {
796                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
797                                            "getUserByScreenName", _getUserByScreenNameParameterTypes19);
798    
799                            MethodHandler methodHandler = new MethodHandler(methodKey,
800                                            companyId, screenName);
801    
802                            Object returnObj = null;
803    
804                            try {
805                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
806                            }
807                            catch (Exception e) {
808                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
809                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
810                                    }
811    
812                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
813                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
814                                    }
815    
816                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
817                            }
818    
819                            return (com.liferay.portal.model.User)returnObj;
820                    }
821                    catch (com.liferay.portal.kernel.exception.SystemException se) {
822                            _log.error(se, se);
823    
824                            throw se;
825                    }
826            }
827    
828            public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
829                    long companyId, java.lang.String emailAddress)
830                    throws com.liferay.portal.kernel.exception.PortalException,
831                            com.liferay.portal.kernel.exception.SystemException {
832                    try {
833                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
834                                            "getUserIdByEmailAddress",
835                                            _getUserIdByEmailAddressParameterTypes20);
836    
837                            MethodHandler methodHandler = new MethodHandler(methodKey,
838                                            companyId, emailAddress);
839    
840                            Object returnObj = null;
841    
842                            try {
843                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
844                            }
845                            catch (Exception e) {
846                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
847                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
848                                    }
849    
850                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
851                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
852                                    }
853    
854                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
855                            }
856    
857                            return ((Long)returnObj).longValue();
858                    }
859                    catch (com.liferay.portal.kernel.exception.SystemException se) {
860                            _log.error(se, se);
861    
862                            throw se;
863                    }
864            }
865    
866            public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
867                    long companyId, java.lang.String screenName)
868                    throws com.liferay.portal.kernel.exception.PortalException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    try {
871                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
872                                            "getUserIdByScreenName",
873                                            _getUserIdByScreenNameParameterTypes21);
874    
875                            MethodHandler methodHandler = new MethodHandler(methodKey,
876                                            companyId, screenName);
877    
878                            Object returnObj = null;
879    
880                            try {
881                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
882                            }
883                            catch (Exception e) {
884                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
885                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
886                                    }
887    
888                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
889                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
890                                    }
891    
892                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
893                            }
894    
895                            return ((Long)returnObj).longValue();
896                    }
897                    catch (com.liferay.portal.kernel.exception.SystemException se) {
898                            _log.error(se, se);
899    
900                            throw se;
901                    }
902            }
903    
904            public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
905                    long groupId, long userId)
906                    throws com.liferay.portal.kernel.exception.SystemException {
907                    try {
908                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
909                                            "hasGroupUser", _hasGroupUserParameterTypes22);
910    
911                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
912                                            userId);
913    
914                            Object returnObj = null;
915    
916                            try {
917                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
918                            }
919                            catch (Exception e) {
920                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
921                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
922                                    }
923    
924                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
925                            }
926    
927                            return ((Boolean)returnObj).booleanValue();
928                    }
929                    catch (com.liferay.portal.kernel.exception.SystemException se) {
930                            _log.error(se, se);
931    
932                            throw se;
933                    }
934            }
935    
936            public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
937                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
938                    try {
939                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
940                                            "hasRoleUser", _hasRoleUserParameterTypes23);
941    
942                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
943                                            userId);
944    
945                            Object returnObj = null;
946    
947                            try {
948                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
949                            }
950                            catch (Exception e) {
951                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
952                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
953                                    }
954    
955                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
956                            }
957    
958                            return ((Boolean)returnObj).booleanValue();
959                    }
960                    catch (com.liferay.portal.kernel.exception.SystemException se) {
961                            _log.error(se, se);
962    
963                            throw se;
964                    }
965            }
966    
967            public static boolean hasRoleUser(HttpPrincipal httpPrincipal,
968                    long companyId, java.lang.String name, long userId, boolean inherited)
969                    throws com.liferay.portal.kernel.exception.PortalException,
970                            com.liferay.portal.kernel.exception.SystemException {
971                    try {
972                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
973                                            "hasRoleUser", _hasRoleUserParameterTypes24);
974    
975                            MethodHandler methodHandler = new MethodHandler(methodKey,
976                                            companyId, name, userId, inherited);
977    
978                            Object returnObj = null;
979    
980                            try {
981                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
982                            }
983                            catch (Exception e) {
984                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
985                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
986                                    }
987    
988                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
989                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
990                                    }
991    
992                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
993                            }
994    
995                            return ((Boolean)returnObj).booleanValue();
996                    }
997                    catch (com.liferay.portal.kernel.exception.SystemException se) {
998                            _log.error(se, se);
999    
1000                            throw se;
1001                    }
1002            }
1003    
1004            public static com.liferay.portal.model.User updateIncompleteUser(
1005                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
1006                    java.lang.String password1, java.lang.String password2,
1007                    boolean autoScreenName, java.lang.String screenName,
1008                    java.lang.String emailAddress, long facebookId,
1009                    java.lang.String openId, java.util.Locale locale,
1010                    java.lang.String firstName, java.lang.String middleName,
1011                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
1012                    int birthdayMonth, int birthdayDay, int birthdayYear,
1013                    java.lang.String jobTitle, boolean updateUserInformation,
1014                    boolean sendEmail,
1015                    com.liferay.portal.service.ServiceContext serviceContext)
1016                    throws com.liferay.portal.kernel.exception.PortalException,
1017                            com.liferay.portal.kernel.exception.SystemException {
1018                    try {
1019                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1020                                            "updateIncompleteUser",
1021                                            _updateIncompleteUserParameterTypes25);
1022    
1023                            MethodHandler methodHandler = new MethodHandler(methodKey,
1024                                            companyId, autoPassword, password1, password2,
1025                                            autoScreenName, screenName, emailAddress, facebookId,
1026                                            openId, locale, firstName, middleName, lastName, prefixId,
1027                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
1028                                            jobTitle, updateUserInformation, sendEmail, serviceContext);
1029    
1030                            Object returnObj = null;
1031    
1032                            try {
1033                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1034                            }
1035                            catch (Exception e) {
1036                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1037                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1038                                    }
1039    
1040                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1041                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1042                                    }
1043    
1044                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1045                            }
1046    
1047                            return (com.liferay.portal.model.User)returnObj;
1048                    }
1049                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1050                            _log.error(se, se);
1051    
1052                            throw se;
1053                    }
1054            }
1055    
1056            public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1057                    long[] userIds)
1058                    throws com.liferay.portal.kernel.exception.PortalException,
1059                            com.liferay.portal.kernel.exception.SystemException {
1060                    try {
1061                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1062                                            "setRoleUsers", _setRoleUsersParameterTypes26);
1063    
1064                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1065                                            userIds);
1066    
1067                            try {
1068                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1069                            }
1070                            catch (Exception e) {
1071                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1072                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1073                                    }
1074    
1075                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1076                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1077                                    }
1078    
1079                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1080                            }
1081                    }
1082                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1083                            _log.error(se, se);
1084    
1085                            throw se;
1086                    }
1087            }
1088    
1089            public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
1090                    long userGroupId, long[] userIds)
1091                    throws com.liferay.portal.kernel.exception.PortalException,
1092                            com.liferay.portal.kernel.exception.SystemException {
1093                    try {
1094                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1095                                            "setUserGroupUsers", _setUserGroupUsersParameterTypes27);
1096    
1097                            MethodHandler methodHandler = new MethodHandler(methodKey,
1098                                            userGroupId, userIds);
1099    
1100                            try {
1101                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1102                            }
1103                            catch (Exception e) {
1104                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1105                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1106                                    }
1107    
1108                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1109                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1110                                    }
1111    
1112                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1113                            }
1114                    }
1115                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1116                            _log.error(se, se);
1117    
1118                            throw se;
1119                    }
1120            }
1121    
1122            public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
1123                    long groupId, long[] userIds,
1124                    com.liferay.portal.service.ServiceContext serviceContext)
1125                    throws com.liferay.portal.kernel.exception.PortalException,
1126                            com.liferay.portal.kernel.exception.SystemException {
1127                    try {
1128                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1129                                            "unsetGroupUsers", _unsetGroupUsersParameterTypes28);
1130    
1131                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1132                                            userIds, serviceContext);
1133    
1134                            try {
1135                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1136                            }
1137                            catch (Exception e) {
1138                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1139                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1140                                    }
1141    
1142                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1143                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1144                                    }
1145    
1146                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1147                            }
1148                    }
1149                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1150                            _log.error(se, se);
1151    
1152                            throw se;
1153                    }
1154            }
1155    
1156            public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
1157                    long organizationId, long[] userIds)
1158                    throws com.liferay.portal.kernel.exception.PortalException,
1159                            com.liferay.portal.kernel.exception.SystemException {
1160                    try {
1161                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1162                                            "unsetOrganizationUsers",
1163                                            _unsetOrganizationUsersParameterTypes29);
1164    
1165                            MethodHandler methodHandler = new MethodHandler(methodKey,
1166                                            organizationId, userIds);
1167    
1168                            try {
1169                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1170                            }
1171                            catch (Exception e) {
1172                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1173                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1174                                    }
1175    
1176                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1177                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1178                                    }
1179    
1180                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1181                            }
1182                    }
1183                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1184                            _log.error(se, se);
1185    
1186                            throw se;
1187                    }
1188            }
1189    
1190            public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1191                    long passwordPolicyId, long[] userIds)
1192                    throws com.liferay.portal.kernel.exception.PortalException,
1193                            com.liferay.portal.kernel.exception.SystemException {
1194                    try {
1195                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1196                                            "unsetPasswordPolicyUsers",
1197                                            _unsetPasswordPolicyUsersParameterTypes30);
1198    
1199                            MethodHandler methodHandler = new MethodHandler(methodKey,
1200                                            passwordPolicyId, userIds);
1201    
1202                            try {
1203                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1204                            }
1205                            catch (Exception e) {
1206                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1207                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1208                                    }
1209    
1210                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1211                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1212                                    }
1213    
1214                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1215                            }
1216                    }
1217                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1218                            _log.error(se, se);
1219    
1220                            throw se;
1221                    }
1222            }
1223    
1224            public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1225                    long[] userIds)
1226                    throws com.liferay.portal.kernel.exception.PortalException,
1227                            com.liferay.portal.kernel.exception.SystemException {
1228                    try {
1229                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1230                                            "unsetRoleUsers", _unsetRoleUsersParameterTypes31);
1231    
1232                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1233                                            userIds);
1234    
1235                            try {
1236                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1237                            }
1238                            catch (Exception e) {
1239                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1240                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1241                                    }
1242    
1243                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1244                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1245                                    }
1246    
1247                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1248                            }
1249                    }
1250                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1251                            _log.error(se, se);
1252    
1253                            throw se;
1254                    }
1255            }
1256    
1257            public static void unsetTeamUsers(HttpPrincipal httpPrincipal, long teamId,
1258                    long[] userIds)
1259                    throws com.liferay.portal.kernel.exception.PortalException,
1260                            com.liferay.portal.kernel.exception.SystemException {
1261                    try {
1262                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1263                                            "unsetTeamUsers", _unsetTeamUsersParameterTypes32);
1264    
1265                            MethodHandler methodHandler = new MethodHandler(methodKey, teamId,
1266                                            userIds);
1267    
1268                            try {
1269                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1270                            }
1271                            catch (Exception e) {
1272                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1273                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1274                                    }
1275    
1276                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1277                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1278                                    }
1279    
1280                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1281                            }
1282                    }
1283                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1284                            _log.error(se, se);
1285    
1286                            throw se;
1287                    }
1288            }
1289    
1290            public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1291                    long userGroupId, long[] userIds)
1292                    throws com.liferay.portal.kernel.exception.PortalException,
1293                            com.liferay.portal.kernel.exception.SystemException {
1294                    try {
1295                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1296                                            "unsetUserGroupUsers", _unsetUserGroupUsersParameterTypes33);
1297    
1298                            MethodHandler methodHandler = new MethodHandler(methodKey,
1299                                            userGroupId, userIds);
1300    
1301                            try {
1302                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1303                            }
1304                            catch (Exception e) {
1305                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1306                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1307                                    }
1308    
1309                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1310                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1311                                    }
1312    
1313                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1314                            }
1315                    }
1316                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1317                            _log.error(se, se);
1318    
1319                            throw se;
1320                    }
1321            }
1322    
1323            public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1324                    HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1325                    throws com.liferay.portal.kernel.exception.PortalException,
1326                            com.liferay.portal.kernel.exception.SystemException {
1327                    try {
1328                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1329                                            "updateAgreedToTermsOfUse",
1330                                            _updateAgreedToTermsOfUseParameterTypes34);
1331    
1332                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1333                                            agreedToTermsOfUse);
1334    
1335                            Object returnObj = null;
1336    
1337                            try {
1338                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1339                            }
1340                            catch (Exception e) {
1341                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1342                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1343                                    }
1344    
1345                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1346                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1347                                    }
1348    
1349                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1350                            }
1351    
1352                            return (com.liferay.portal.model.User)returnObj;
1353                    }
1354                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1355                            _log.error(se, se);
1356    
1357                            throw se;
1358                    }
1359            }
1360    
1361            public static com.liferay.portal.model.User updateEmailAddress(
1362                    HttpPrincipal httpPrincipal, long userId, java.lang.String password,
1363                    java.lang.String emailAddress1, java.lang.String emailAddress2,
1364                    com.liferay.portal.service.ServiceContext serviceContext)
1365                    throws com.liferay.portal.kernel.exception.PortalException,
1366                            com.liferay.portal.kernel.exception.SystemException {
1367                    try {
1368                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1369                                            "updateEmailAddress", _updateEmailAddressParameterTypes35);
1370    
1371                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1372                                            password, emailAddress1, emailAddress2, serviceContext);
1373    
1374                            Object returnObj = null;
1375    
1376                            try {
1377                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1378                            }
1379                            catch (Exception e) {
1380                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1381                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1382                                    }
1383    
1384                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1385                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1386                                    }
1387    
1388                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1389                            }
1390    
1391                            return (com.liferay.portal.model.User)returnObj;
1392                    }
1393                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1394                            _log.error(se, se);
1395    
1396                            throw se;
1397                    }
1398            }
1399    
1400            public static com.liferay.portal.model.User updateLockoutById(
1401                    HttpPrincipal httpPrincipal, long userId, boolean lockout)
1402                    throws com.liferay.portal.kernel.exception.PortalException,
1403                            com.liferay.portal.kernel.exception.SystemException {
1404                    try {
1405                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1406                                            "updateLockoutById", _updateLockoutByIdParameterTypes36);
1407    
1408                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1409                                            lockout);
1410    
1411                            Object returnObj = null;
1412    
1413                            try {
1414                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1415                            }
1416                            catch (Exception e) {
1417                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1418                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1419                                    }
1420    
1421                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1422                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1423                                    }
1424    
1425                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1426                            }
1427    
1428                            return (com.liferay.portal.model.User)returnObj;
1429                    }
1430                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1431                            _log.error(se, se);
1432    
1433                            throw se;
1434                    }
1435            }
1436    
1437            public static com.liferay.portal.model.User updateOpenId(
1438                    HttpPrincipal httpPrincipal, long userId, java.lang.String openId)
1439                    throws com.liferay.portal.kernel.exception.PortalException,
1440                            com.liferay.portal.kernel.exception.SystemException {
1441                    try {
1442                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1443                                            "updateOpenId", _updateOpenIdParameterTypes37);
1444    
1445                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1446                                            openId);
1447    
1448                            Object returnObj = null;
1449    
1450                            try {
1451                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1452                            }
1453                            catch (Exception e) {
1454                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1455                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1456                                    }
1457    
1458                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1459                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1460                                    }
1461    
1462                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1463                            }
1464    
1465                            return (com.liferay.portal.model.User)returnObj;
1466                    }
1467                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1468                            _log.error(se, se);
1469    
1470                            throw se;
1471                    }
1472            }
1473    
1474            public static void updateOrganizations(HttpPrincipal httpPrincipal,
1475                    long userId, long[] organizationIds,
1476                    com.liferay.portal.service.ServiceContext serviceContext)
1477                    throws com.liferay.portal.kernel.exception.PortalException,
1478                            com.liferay.portal.kernel.exception.SystemException {
1479                    try {
1480                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1481                                            "updateOrganizations", _updateOrganizationsParameterTypes38);
1482    
1483                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1484                                            organizationIds, serviceContext);
1485    
1486                            try {
1487                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1488                            }
1489                            catch (Exception e) {
1490                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1491                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1492                                    }
1493    
1494                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1495                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1496                                    }
1497    
1498                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1499                            }
1500                    }
1501                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1502                            _log.error(se, se);
1503    
1504                            throw se;
1505                    }
1506            }
1507    
1508            public static com.liferay.portal.model.User updatePassword(
1509                    HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1510                    java.lang.String password2, boolean passwordReset)
1511                    throws com.liferay.portal.kernel.exception.PortalException,
1512                            com.liferay.portal.kernel.exception.SystemException {
1513                    try {
1514                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1515                                            "updatePassword", _updatePasswordParameterTypes39);
1516    
1517                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1518                                            password1, password2, passwordReset);
1519    
1520                            Object returnObj = null;
1521    
1522                            try {
1523                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1524                            }
1525                            catch (Exception e) {
1526                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1527                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1528                                    }
1529    
1530                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1531                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1532                                    }
1533    
1534                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1535                            }
1536    
1537                            return (com.liferay.portal.model.User)returnObj;
1538                    }
1539                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1540                            _log.error(se, se);
1541    
1542                            throw se;
1543                    }
1544            }
1545    
1546            public static com.liferay.portal.model.User updatePortrait(
1547                    HttpPrincipal httpPrincipal, long userId, byte[] bytes)
1548                    throws com.liferay.portal.kernel.exception.PortalException,
1549                            com.liferay.portal.kernel.exception.SystemException {
1550                    try {
1551                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1552                                            "updatePortrait", _updatePortraitParameterTypes40);
1553    
1554                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1555                                            bytes);
1556    
1557                            Object returnObj = null;
1558    
1559                            try {
1560                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1561                            }
1562                            catch (Exception e) {
1563                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1564                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1565                                    }
1566    
1567                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1568                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1569                                    }
1570    
1571                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1572                            }
1573    
1574                            return (com.liferay.portal.model.User)returnObj;
1575                    }
1576                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1577                            _log.error(se, se);
1578    
1579                            throw se;
1580                    }
1581            }
1582    
1583            public static com.liferay.portal.model.User updateReminderQuery(
1584                    HttpPrincipal httpPrincipal, long userId, java.lang.String question,
1585                    java.lang.String answer)
1586                    throws com.liferay.portal.kernel.exception.PortalException,
1587                            com.liferay.portal.kernel.exception.SystemException {
1588                    try {
1589                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1590                                            "updateReminderQuery", _updateReminderQueryParameterTypes41);
1591    
1592                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1593                                            question, answer);
1594    
1595                            Object returnObj = null;
1596    
1597                            try {
1598                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1599                            }
1600                            catch (Exception e) {
1601                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1602                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1603                                    }
1604    
1605                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1606                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1607                                    }
1608    
1609                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1610                            }
1611    
1612                            return (com.liferay.portal.model.User)returnObj;
1613                    }
1614                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1615                            _log.error(se, se);
1616    
1617                            throw se;
1618                    }
1619            }
1620    
1621            public static com.liferay.portal.model.User updateScreenName(
1622                    HttpPrincipal httpPrincipal, long userId, java.lang.String screenName)
1623                    throws com.liferay.portal.kernel.exception.PortalException,
1624                            com.liferay.portal.kernel.exception.SystemException {
1625                    try {
1626                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1627                                            "updateScreenName", _updateScreenNameParameterTypes42);
1628    
1629                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1630                                            screenName);
1631    
1632                            Object returnObj = null;
1633    
1634                            try {
1635                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1636                            }
1637                            catch (Exception e) {
1638                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1639                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1640                                    }
1641    
1642                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1643                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1644                                    }
1645    
1646                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1647                            }
1648    
1649                            return (com.liferay.portal.model.User)returnObj;
1650                    }
1651                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1652                            _log.error(se, se);
1653    
1654                            throw se;
1655                    }
1656            }
1657    
1658            public static com.liferay.portal.model.User updateStatus(
1659                    HttpPrincipal httpPrincipal, long userId, int status)
1660                    throws com.liferay.portal.kernel.exception.PortalException,
1661                            com.liferay.portal.kernel.exception.SystemException {
1662                    try {
1663                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1664                                            "updateStatus", _updateStatusParameterTypes43);
1665    
1666                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1667                                            status);
1668    
1669                            Object returnObj = null;
1670    
1671                            try {
1672                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1673                            }
1674                            catch (Exception e) {
1675                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1676                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1677                                    }
1678    
1679                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1680                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1681                                    }
1682    
1683                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1684                            }
1685    
1686                            return (com.liferay.portal.model.User)returnObj;
1687                    }
1688                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1689                            _log.error(se, se);
1690    
1691                            throw se;
1692                    }
1693            }
1694    
1695            public static com.liferay.portal.model.User updateUser(
1696                    HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1697                    java.lang.String newPassword1, java.lang.String newPassword2,
1698                    boolean passwordReset, java.lang.String reminderQueryQuestion,
1699                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1700                    java.lang.String emailAddress, long facebookId,
1701                    java.lang.String openId, java.lang.String languageId,
1702                    java.lang.String timeZoneId, java.lang.String greeting,
1703                    java.lang.String comments, java.lang.String firstName,
1704                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1705                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1706                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1707                    java.lang.String facebookSn, java.lang.String icqSn,
1708                    java.lang.String jabberSn, java.lang.String msnSn,
1709                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1710                    java.lang.String twitterSn, java.lang.String ymSn,
1711                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1712                    long[] roleIds,
1713                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1714                    long[] userGroupIds,
1715                    java.util.List<com.liferay.portal.model.Address> addresses,
1716                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
1717                    java.util.List<com.liferay.portal.model.Phone> phones,
1718                    java.util.List<com.liferay.portal.model.Website> websites,
1719                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
1720                    com.liferay.portal.service.ServiceContext serviceContext)
1721                    throws com.liferay.portal.kernel.exception.PortalException,
1722                            com.liferay.portal.kernel.exception.SystemException {
1723                    try {
1724                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1725                                            "updateUser", _updateUserParameterTypes44);
1726    
1727                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1728                                            oldPassword, newPassword1, newPassword2, passwordReset,
1729                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
1730                                            emailAddress, facebookId, openId, languageId, timeZoneId,
1731                                            greeting, comments, firstName, middleName, lastName,
1732                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
1733                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
1734                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
1735                                            groupIds, organizationIds, roleIds, userGroupRoles,
1736                                            userGroupIds, addresses, emailAddresses, phones, websites,
1737                                            announcementsDelivers, serviceContext);
1738    
1739                            Object returnObj = null;
1740    
1741                            try {
1742                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1743                            }
1744                            catch (Exception e) {
1745                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1746                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1747                                    }
1748    
1749                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1750                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1751                                    }
1752    
1753                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1754                            }
1755    
1756                            return (com.liferay.portal.model.User)returnObj;
1757                    }
1758                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1759                            _log.error(se, se);
1760    
1761                            throw se;
1762                    }
1763            }
1764    
1765            public static com.liferay.portal.model.User updateUser(
1766                    HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1767                    java.lang.String newPassword1, java.lang.String newPassword2,
1768                    boolean passwordReset, java.lang.String reminderQueryQuestion,
1769                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1770                    java.lang.String emailAddress, long facebookId,
1771                    java.lang.String openId, java.lang.String languageId,
1772                    java.lang.String timeZoneId, java.lang.String greeting,
1773                    java.lang.String comments, java.lang.String firstName,
1774                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1775                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1776                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1777                    java.lang.String facebookSn, java.lang.String icqSn,
1778                    java.lang.String jabberSn, java.lang.String msnSn,
1779                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1780                    java.lang.String twitterSn, java.lang.String ymSn,
1781                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1782                    long[] roleIds,
1783                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1784                    long[] userGroupIds,
1785                    com.liferay.portal.service.ServiceContext serviceContext)
1786                    throws com.liferay.portal.kernel.exception.PortalException,
1787                            com.liferay.portal.kernel.exception.SystemException {
1788                    try {
1789                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1790                                            "updateUser", _updateUserParameterTypes45);
1791    
1792                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1793                                            oldPassword, newPassword1, newPassword2, passwordReset,
1794                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
1795                                            emailAddress, facebookId, openId, languageId, timeZoneId,
1796                                            greeting, comments, firstName, middleName, lastName,
1797                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
1798                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
1799                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
1800                                            groupIds, organizationIds, roleIds, userGroupRoles,
1801                                            userGroupIds, serviceContext);
1802    
1803                            Object returnObj = null;
1804    
1805                            try {
1806                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1807                            }
1808                            catch (Exception e) {
1809                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1810                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1811                                    }
1812    
1813                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1814                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1815                                    }
1816    
1817                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1818                            }
1819    
1820                            return (com.liferay.portal.model.User)returnObj;
1821                    }
1822                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1823                            _log.error(se, se);
1824    
1825                            throw se;
1826                    }
1827            }
1828    
1829            private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
1830            private static final Class<?>[] _addGroupUsersParameterTypes0 = new Class[] {
1831                            long.class, long[].class,
1832                            com.liferay.portal.service.ServiceContext.class
1833                    };
1834            private static final Class<?>[] _addOrganizationUsersParameterTypes1 = new Class[] {
1835                            long.class, long[].class
1836                    };
1837            private static final Class<?>[] _addPasswordPolicyUsersParameterTypes2 = new Class[] {
1838                            long.class, long[].class
1839                    };
1840            private static final Class<?>[] _addRoleUsersParameterTypes3 = new Class[] {
1841                            long.class, long[].class
1842                    };
1843            private static final Class<?>[] _addTeamUsersParameterTypes4 = new Class[] {
1844                            long.class, long[].class
1845                    };
1846            private static final Class<?>[] _addUserParameterTypes5 = new Class[] {
1847                            long.class, boolean.class, java.lang.String.class,
1848                            java.lang.String.class, boolean.class, java.lang.String.class,
1849                            java.lang.String.class, long.class, java.lang.String.class,
1850                            java.util.Locale.class, java.lang.String.class,
1851                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1852                            boolean.class, int.class, int.class, int.class,
1853                            java.lang.String.class, long[].class, long[].class, long[].class,
1854                            long[].class, java.util.List.class, java.util.List.class,
1855                            java.util.List.class, java.util.List.class, java.util.List.class,
1856                            boolean.class, com.liferay.portal.service.ServiceContext.class
1857                    };
1858            private static final Class<?>[] _addUserParameterTypes6 = new Class[] {
1859                            long.class, boolean.class, java.lang.String.class,
1860                            java.lang.String.class, boolean.class, java.lang.String.class,
1861                            java.lang.String.class, long.class, java.lang.String.class,
1862                            java.util.Locale.class, java.lang.String.class,
1863                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1864                            boolean.class, int.class, int.class, int.class,
1865                            java.lang.String.class, long[].class, long[].class, long[].class,
1866                            long[].class, boolean.class,
1867                            com.liferay.portal.service.ServiceContext.class
1868                    };
1869            private static final Class<?>[] _addUserWithWorkflowParameterTypes7 = new Class[] {
1870                            long.class, boolean.class, java.lang.String.class,
1871                            java.lang.String.class, boolean.class, java.lang.String.class,
1872                            java.lang.String.class, long.class, java.lang.String.class,
1873                            java.util.Locale.class, java.lang.String.class,
1874                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1875                            boolean.class, int.class, int.class, int.class,
1876                            java.lang.String.class, long[].class, long[].class, long[].class,
1877                            long[].class, java.util.List.class, java.util.List.class,
1878                            java.util.List.class, java.util.List.class, java.util.List.class,
1879                            boolean.class, com.liferay.portal.service.ServiceContext.class
1880                    };
1881            private static final Class<?>[] _addUserWithWorkflowParameterTypes8 = new Class[] {
1882                            long.class, boolean.class, java.lang.String.class,
1883                            java.lang.String.class, boolean.class, java.lang.String.class,
1884                            java.lang.String.class, long.class, java.lang.String.class,
1885                            java.util.Locale.class, java.lang.String.class,
1886                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1887                            boolean.class, int.class, int.class, int.class,
1888                            java.lang.String.class, long[].class, long[].class, long[].class,
1889                            long[].class, boolean.class,
1890                            com.liferay.portal.service.ServiceContext.class
1891                    };
1892            private static final Class<?>[] _addUserGroupUsersParameterTypes9 = new Class[] {
1893                            long.class, long[].class
1894                    };
1895            private static final Class<?>[] _deletePortraitParameterTypes10 = new Class[] {
1896                            long.class
1897                    };
1898            private static final Class<?>[] _deleteRoleUserParameterTypes11 = new Class[] {
1899                            long.class, long.class
1900                    };
1901            private static final Class<?>[] _deleteUserParameterTypes12 = new Class[] {
1902                            long.class
1903                    };
1904            private static final Class<?>[] _getDefaultUserIdParameterTypes13 = new Class[] {
1905                            long.class
1906                    };
1907            private static final Class<?>[] _getGroupUserIdsParameterTypes14 = new Class[] {
1908                            long.class
1909                    };
1910            private static final Class<?>[] _getOrganizationUserIdsParameterTypes15 = new Class[] {
1911                            long.class
1912                    };
1913            private static final Class<?>[] _getRoleUserIdsParameterTypes16 = new Class[] {
1914                            long.class
1915                    };
1916            private static final Class<?>[] _getUserByEmailAddressParameterTypes17 = new Class[] {
1917                            long.class, java.lang.String.class
1918                    };
1919            private static final Class<?>[] _getUserByIdParameterTypes18 = new Class[] {
1920                            long.class
1921                    };
1922            private static final Class<?>[] _getUserByScreenNameParameterTypes19 = new Class[] {
1923                            long.class, java.lang.String.class
1924                    };
1925            private static final Class<?>[] _getUserIdByEmailAddressParameterTypes20 = new Class[] {
1926                            long.class, java.lang.String.class
1927                    };
1928            private static final Class<?>[] _getUserIdByScreenNameParameterTypes21 = new Class[] {
1929                            long.class, java.lang.String.class
1930                    };
1931            private static final Class<?>[] _hasGroupUserParameterTypes22 = new Class[] {
1932                            long.class, long.class
1933                    };
1934            private static final Class<?>[] _hasRoleUserParameterTypes23 = new Class[] {
1935                            long.class, long.class
1936                    };
1937            private static final Class<?>[] _hasRoleUserParameterTypes24 = new Class[] {
1938                            long.class, java.lang.String.class, long.class, boolean.class
1939                    };
1940            private static final Class<?>[] _updateIncompleteUserParameterTypes25 = new Class[] {
1941                            long.class, boolean.class, java.lang.String.class,
1942                            java.lang.String.class, boolean.class, java.lang.String.class,
1943                            java.lang.String.class, long.class, java.lang.String.class,
1944                            java.util.Locale.class, java.lang.String.class,
1945                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1946                            boolean.class, int.class, int.class, int.class,
1947                            java.lang.String.class, boolean.class, boolean.class,
1948                            com.liferay.portal.service.ServiceContext.class
1949                    };
1950            private static final Class<?>[] _setRoleUsersParameterTypes26 = new Class[] {
1951                            long.class, long[].class
1952                    };
1953            private static final Class<?>[] _setUserGroupUsersParameterTypes27 = new Class[] {
1954                            long.class, long[].class
1955                    };
1956            private static final Class<?>[] _unsetGroupUsersParameterTypes28 = new Class[] {
1957                            long.class, long[].class,
1958                            com.liferay.portal.service.ServiceContext.class
1959                    };
1960            private static final Class<?>[] _unsetOrganizationUsersParameterTypes29 = new Class[] {
1961                            long.class, long[].class
1962                    };
1963            private static final Class<?>[] _unsetPasswordPolicyUsersParameterTypes30 = new Class[] {
1964                            long.class, long[].class
1965                    };
1966            private static final Class<?>[] _unsetRoleUsersParameterTypes31 = new Class[] {
1967                            long.class, long[].class
1968                    };
1969            private static final Class<?>[] _unsetTeamUsersParameterTypes32 = new Class[] {
1970                            long.class, long[].class
1971                    };
1972            private static final Class<?>[] _unsetUserGroupUsersParameterTypes33 = new Class[] {
1973                            long.class, long[].class
1974                    };
1975            private static final Class<?>[] _updateAgreedToTermsOfUseParameterTypes34 = new Class[] {
1976                            long.class, boolean.class
1977                    };
1978            private static final Class<?>[] _updateEmailAddressParameterTypes35 = new Class[] {
1979                            long.class, java.lang.String.class, java.lang.String.class,
1980                            java.lang.String.class,
1981                            com.liferay.portal.service.ServiceContext.class
1982                    };
1983            private static final Class<?>[] _updateLockoutByIdParameterTypes36 = new Class[] {
1984                            long.class, boolean.class
1985                    };
1986            private static final Class<?>[] _updateOpenIdParameterTypes37 = new Class[] {
1987                            long.class, java.lang.String.class
1988                    };
1989            private static final Class<?>[] _updateOrganizationsParameterTypes38 = new Class[] {
1990                            long.class, long[].class,
1991                            com.liferay.portal.service.ServiceContext.class
1992                    };
1993            private static final Class<?>[] _updatePasswordParameterTypes39 = new Class[] {
1994                            long.class, java.lang.String.class, java.lang.String.class,
1995                            boolean.class
1996                    };
1997            private static final Class<?>[] _updatePortraitParameterTypes40 = new Class[] {
1998                            long.class, byte[].class
1999                    };
2000            private static final Class<?>[] _updateReminderQueryParameterTypes41 = new Class[] {
2001                            long.class, java.lang.String.class, java.lang.String.class
2002                    };
2003            private static final Class<?>[] _updateScreenNameParameterTypes42 = new Class[] {
2004                            long.class, java.lang.String.class
2005                    };
2006            private static final Class<?>[] _updateStatusParameterTypes43 = new Class[] {
2007                            long.class, int.class
2008                    };
2009            private static final Class<?>[] _updateUserParameterTypes44 = new Class[] {
2010                            long.class, java.lang.String.class, java.lang.String.class,
2011                            java.lang.String.class, boolean.class, java.lang.String.class,
2012                            java.lang.String.class, java.lang.String.class,
2013                            java.lang.String.class, long.class, java.lang.String.class,
2014                            java.lang.String.class, java.lang.String.class,
2015                            java.lang.String.class, java.lang.String.class,
2016                            java.lang.String.class, java.lang.String.class,
2017                            java.lang.String.class, int.class, int.class, boolean.class,
2018                            int.class, int.class, int.class, java.lang.String.class,
2019                            java.lang.String.class, java.lang.String.class,
2020                            java.lang.String.class, java.lang.String.class,
2021                            java.lang.String.class, java.lang.String.class,
2022                            java.lang.String.class, java.lang.String.class,
2023                            java.lang.String.class, java.lang.String.class, long[].class,
2024                            long[].class, long[].class, java.util.List.class, long[].class,
2025                            java.util.List.class, java.util.List.class, java.util.List.class,
2026                            java.util.List.class, java.util.List.class,
2027                            com.liferay.portal.service.ServiceContext.class
2028                    };
2029            private static final Class<?>[] _updateUserParameterTypes45 = new Class[] {
2030                            long.class, java.lang.String.class, java.lang.String.class,
2031                            java.lang.String.class, boolean.class, java.lang.String.class,
2032                            java.lang.String.class, java.lang.String.class,
2033                            java.lang.String.class, long.class, java.lang.String.class,
2034                            java.lang.String.class, java.lang.String.class,
2035                            java.lang.String.class, java.lang.String.class,
2036                            java.lang.String.class, java.lang.String.class,
2037                            java.lang.String.class, int.class, int.class, boolean.class,
2038                            int.class, int.class, int.class, java.lang.String.class,
2039                            java.lang.String.class, java.lang.String.class,
2040                            java.lang.String.class, java.lang.String.class,
2041                            java.lang.String.class, java.lang.String.class,
2042                            java.lang.String.class, java.lang.String.class,
2043                            java.lang.String.class, java.lang.String.class, long[].class,
2044                            long[].class, long[].class, java.util.List.class, long[].class,
2045                            com.liferay.portal.service.ServiceContext.class
2046                    };
2047    }