001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.kernel.util.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)
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);
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 void addUserGroupUsers(HttpPrincipal httpPrincipal,
222                    long userGroupId, long[] userIds)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    try {
226                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
227                                            "addUserGroupUsers", _addUserGroupUsersParameterTypes5);
228    
229                            MethodHandler methodHandler = new MethodHandler(methodKey,
230                                            userGroupId, userIds);
231    
232                            try {
233                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
234                            }
235                            catch (Exception e) {
236                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
237                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
238                                    }
239    
240                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
241                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
242                                    }
243    
244                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
245                            }
246                    }
247                    catch (com.liferay.portal.kernel.exception.SystemException se) {
248                            _log.error(se, se);
249    
250                            throw se;
251                    }
252            }
253    
254            public static com.liferay.portal.model.User addUser(
255                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
256                    java.lang.String password1, java.lang.String password2,
257                    boolean autoScreenName, java.lang.String screenName,
258                    java.lang.String emailAddress, long facebookId,
259                    java.lang.String openId, java.util.Locale locale,
260                    java.lang.String firstName, java.lang.String middleName,
261                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
262                    int birthdayMonth, int birthdayDay, int birthdayYear,
263                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
264                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
265                    com.liferay.portal.service.ServiceContext serviceContext)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    try {
269                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
270                                            "addUser", _addUserParameterTypes6);
271    
272                            MethodHandler methodHandler = new MethodHandler(methodKey,
273                                            companyId, autoPassword, password1, password2,
274                                            autoScreenName, screenName, emailAddress, facebookId,
275                                            openId, locale, firstName, middleName, lastName, prefixId,
276                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
277                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
278                                            sendEmail, serviceContext);
279    
280                            Object returnObj = null;
281    
282                            try {
283                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
284                            }
285                            catch (Exception e) {
286                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
287                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
288                                    }
289    
290                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
291                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
292                                    }
293    
294                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
295                            }
296    
297                            return (com.liferay.portal.model.User)returnObj;
298                    }
299                    catch (com.liferay.portal.kernel.exception.SystemException se) {
300                            _log.error(se, se);
301    
302                            throw se;
303                    }
304            }
305    
306            public static com.liferay.portal.model.User addUser(
307                    HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
308                    java.lang.String password1, java.lang.String password2,
309                    boolean autoScreenName, java.lang.String screenName,
310                    java.lang.String emailAddress, long facebookId,
311                    java.lang.String openId, java.util.Locale locale,
312                    java.lang.String firstName, java.lang.String middleName,
313                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
314                    int birthdayMonth, int birthdayDay, int birthdayYear,
315                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
316                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
317                    java.util.List<com.liferay.portal.model.Address> addresses,
318                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
319                    java.util.List<com.liferay.portal.model.Phone> phones,
320                    java.util.List<com.liferay.portal.model.Website> websites,
321                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
322                    com.liferay.portal.service.ServiceContext serviceContext)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    try {
326                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
327                                            "addUser", _addUserParameterTypes7);
328    
329                            MethodHandler methodHandler = new MethodHandler(methodKey,
330                                            companyId, autoPassword, password1, password2,
331                                            autoScreenName, screenName, emailAddress, facebookId,
332                                            openId, locale, firstName, middleName, lastName, prefixId,
333                                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
334                                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
335                                            sendEmail, addresses, emailAddresses, phones, websites,
336                                            announcementsDelivers, serviceContext);
337    
338                            Object returnObj = null;
339    
340                            try {
341                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
342                            }
343                            catch (Exception e) {
344                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
345                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
346                                    }
347    
348                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
349                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
350                                    }
351    
352                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
353                            }
354    
355                            return (com.liferay.portal.model.User)returnObj;
356                    }
357                    catch (com.liferay.portal.kernel.exception.SystemException se) {
358                            _log.error(se, se);
359    
360                            throw se;
361                    }
362            }
363    
364            public static void deletePortrait(HttpPrincipal httpPrincipal, long userId)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    try {
368                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
369                                            "deletePortrait", _deletePortraitParameterTypes8);
370    
371                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
372    
373                            try {
374                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
375                            }
376                            catch (Exception e) {
377                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
378                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
379                                    }
380    
381                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
382                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
383                                    }
384    
385                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
386                            }
387                    }
388                    catch (com.liferay.portal.kernel.exception.SystemException se) {
389                            _log.error(se, se);
390    
391                            throw se;
392                    }
393            }
394    
395            public static void deleteRoleUser(HttpPrincipal httpPrincipal, long roleId,
396                    long userId)
397                    throws com.liferay.portal.kernel.exception.PortalException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    try {
400                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
401                                            "deleteRoleUser", _deleteRoleUserParameterTypes9);
402    
403                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
404                                            userId);
405    
406                            try {
407                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
408                            }
409                            catch (Exception e) {
410                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
411                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
412                                    }
413    
414                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
415                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
416                                    }
417    
418                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
419                            }
420                    }
421                    catch (com.liferay.portal.kernel.exception.SystemException se) {
422                            _log.error(se, se);
423    
424                            throw se;
425                    }
426            }
427    
428            public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    try {
432                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
433                                            "deleteUser", _deleteUserParameterTypes10);
434    
435                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
436    
437                            try {
438                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
439                            }
440                            catch (Exception e) {
441                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
442                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
443                                    }
444    
445                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
446                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
447                                    }
448    
449                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
450                            }
451                    }
452                    catch (com.liferay.portal.kernel.exception.SystemException se) {
453                            _log.error(se, se);
454    
455                            throw se;
456                    }
457            }
458    
459            public static long getDefaultUserId(HttpPrincipal httpPrincipal,
460                    long companyId)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    try {
464                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
465                                            "getDefaultUserId", _getDefaultUserIdParameterTypes11);
466    
467                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
468    
469                            Object returnObj = null;
470    
471                            try {
472                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
473                            }
474                            catch (Exception e) {
475                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
476                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
477                                    }
478    
479                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
480                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
481                                    }
482    
483                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
484                            }
485    
486                            return ((Long)returnObj).longValue();
487                    }
488                    catch (com.liferay.portal.kernel.exception.SystemException se) {
489                            _log.error(se, se);
490    
491                            throw se;
492                    }
493            }
494    
495            public static long[] getGroupUserIds(HttpPrincipal httpPrincipal,
496                    long groupId)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    try {
499                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
500                                            "getGroupUserIds", _getGroupUserIdsParameterTypes12);
501    
502                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
503    
504                            Object returnObj = null;
505    
506                            try {
507                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
508                            }
509                            catch (Exception e) {
510                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
511                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
512                                    }
513    
514                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
515                            }
516    
517                            return (long[])returnObj;
518                    }
519                    catch (com.liferay.portal.kernel.exception.SystemException se) {
520                            _log.error(se, se);
521    
522                            throw se;
523                    }
524            }
525    
526            public static long[] getOrganizationUserIds(HttpPrincipal httpPrincipal,
527                    long organizationId)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    try {
530                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
531                                            "getOrganizationUserIds",
532                                            _getOrganizationUserIdsParameterTypes13);
533    
534                            MethodHandler methodHandler = new MethodHandler(methodKey,
535                                            organizationId);
536    
537                            Object returnObj = null;
538    
539                            try {
540                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
541                            }
542                            catch (Exception e) {
543                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
545                                    }
546    
547                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
548                            }
549    
550                            return (long[])returnObj;
551                    }
552                    catch (com.liferay.portal.kernel.exception.SystemException se) {
553                            _log.error(se, se);
554    
555                            throw se;
556                    }
557            }
558    
559            public static long[] getRoleUserIds(HttpPrincipal httpPrincipal, long roleId)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    try {
562                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
563                                            "getRoleUserIds", _getRoleUserIdsParameterTypes14);
564    
565                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
566    
567                            Object returnObj = null;
568    
569                            try {
570                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
571                            }
572                            catch (Exception e) {
573                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
574                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
575                                    }
576    
577                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
578                            }
579    
580                            return (long[])returnObj;
581                    }
582                    catch (com.liferay.portal.kernel.exception.SystemException se) {
583                            _log.error(se, se);
584    
585                            throw se;
586                    }
587            }
588    
589            public static com.liferay.portal.model.User getUserByEmailAddress(
590                    HttpPrincipal httpPrincipal, long companyId,
591                    java.lang.String emailAddress)
592                    throws com.liferay.portal.kernel.exception.PortalException,
593                            com.liferay.portal.kernel.exception.SystemException {
594                    try {
595                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
596                                            "getUserByEmailAddress",
597                                            _getUserByEmailAddressParameterTypes15);
598    
599                            MethodHandler methodHandler = new MethodHandler(methodKey,
600                                            companyId, emailAddress);
601    
602                            Object returnObj = null;
603    
604                            try {
605                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
606                            }
607                            catch (Exception e) {
608                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
609                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
610                                    }
611    
612                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
613                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
614                                    }
615    
616                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
617                            }
618    
619                            return (com.liferay.portal.model.User)returnObj;
620                    }
621                    catch (com.liferay.portal.kernel.exception.SystemException se) {
622                            _log.error(se, se);
623    
624                            throw se;
625                    }
626            }
627    
628            public static com.liferay.portal.model.User getUserById(
629                    HttpPrincipal httpPrincipal, long userId)
630                    throws com.liferay.portal.kernel.exception.PortalException,
631                            com.liferay.portal.kernel.exception.SystemException {
632                    try {
633                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
634                                            "getUserById", _getUserByIdParameterTypes16);
635    
636                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
637    
638                            Object returnObj = null;
639    
640                            try {
641                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
642                            }
643                            catch (Exception e) {
644                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
645                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
646                                    }
647    
648                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
649                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
650                                    }
651    
652                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
653                            }
654    
655                            return (com.liferay.portal.model.User)returnObj;
656                    }
657                    catch (com.liferay.portal.kernel.exception.SystemException se) {
658                            _log.error(se, se);
659    
660                            throw se;
661                    }
662            }
663    
664            public static com.liferay.portal.model.User getUserByScreenName(
665                    HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
666                    throws com.liferay.portal.kernel.exception.PortalException,
667                            com.liferay.portal.kernel.exception.SystemException {
668                    try {
669                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
670                                            "getUserByScreenName", _getUserByScreenNameParameterTypes17);
671    
672                            MethodHandler methodHandler = new MethodHandler(methodKey,
673                                            companyId, screenName);
674    
675                            Object returnObj = null;
676    
677                            try {
678                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
679                            }
680                            catch (Exception e) {
681                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
682                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
683                                    }
684    
685                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
686                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
687                                    }
688    
689                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
690                            }
691    
692                            return (com.liferay.portal.model.User)returnObj;
693                    }
694                    catch (com.liferay.portal.kernel.exception.SystemException se) {
695                            _log.error(se, se);
696    
697                            throw se;
698                    }
699            }
700    
701            public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
702                    long companyId, java.lang.String emailAddress)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException {
705                    try {
706                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
707                                            "getUserIdByEmailAddress",
708                                            _getUserIdByEmailAddressParameterTypes18);
709    
710                            MethodHandler methodHandler = new MethodHandler(methodKey,
711                                            companyId, emailAddress);
712    
713                            Object returnObj = null;
714    
715                            try {
716                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
717                            }
718                            catch (Exception e) {
719                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
720                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
721                                    }
722    
723                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
724                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
725                                    }
726    
727                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
728                            }
729    
730                            return ((Long)returnObj).longValue();
731                    }
732                    catch (com.liferay.portal.kernel.exception.SystemException se) {
733                            _log.error(se, se);
734    
735                            throw se;
736                    }
737            }
738    
739            public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
740                    long companyId, java.lang.String screenName)
741                    throws com.liferay.portal.kernel.exception.PortalException,
742                            com.liferay.portal.kernel.exception.SystemException {
743                    try {
744                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
745                                            "getUserIdByScreenName",
746                                            _getUserIdByScreenNameParameterTypes19);
747    
748                            MethodHandler methodHandler = new MethodHandler(methodKey,
749                                            companyId, screenName);
750    
751                            Object returnObj = null;
752    
753                            try {
754                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
755                            }
756                            catch (Exception e) {
757                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
758                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
759                                    }
760    
761                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
762                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
763                                    }
764    
765                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
766                            }
767    
768                            return ((Long)returnObj).longValue();
769                    }
770                    catch (com.liferay.portal.kernel.exception.SystemException se) {
771                            _log.error(se, se);
772    
773                            throw se;
774                    }
775            }
776    
777            public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
778                    long groupId, long userId)
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    try {
781                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
782                                            "hasGroupUser", _hasGroupUserParameterTypes20);
783    
784                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
785                                            userId);
786    
787                            Object returnObj = null;
788    
789                            try {
790                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
791                            }
792                            catch (Exception e) {
793                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
794                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
795                                    }
796    
797                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
798                            }
799    
800                            return ((Boolean)returnObj).booleanValue();
801                    }
802                    catch (com.liferay.portal.kernel.exception.SystemException se) {
803                            _log.error(se, se);
804    
805                            throw se;
806                    }
807            }
808    
809            public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
810                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
811                    try {
812                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
813                                            "hasRoleUser", _hasRoleUserParameterTypes21);
814    
815                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
816                                            userId);
817    
818                            Object returnObj = null;
819    
820                            try {
821                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
822                            }
823                            catch (Exception e) {
824                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
825                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
826                                    }
827    
828                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
829                            }
830    
831                            return ((Boolean)returnObj).booleanValue();
832                    }
833                    catch (com.liferay.portal.kernel.exception.SystemException se) {
834                            _log.error(se, se);
835    
836                            throw se;
837                    }
838            }
839    
840            public static boolean hasRoleUser(HttpPrincipal httpPrincipal,
841                    long companyId, java.lang.String name, long userId, boolean inherited)
842                    throws com.liferay.portal.kernel.exception.PortalException,
843                            com.liferay.portal.kernel.exception.SystemException {
844                    try {
845                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
846                                            "hasRoleUser", _hasRoleUserParameterTypes22);
847    
848                            MethodHandler methodHandler = new MethodHandler(methodKey,
849                                            companyId, name, userId, inherited);
850    
851                            Object returnObj = null;
852    
853                            try {
854                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
855                            }
856                            catch (Exception e) {
857                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
858                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
859                                    }
860    
861                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
862                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
863                                    }
864    
865                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
866                            }
867    
868                            return ((Boolean)returnObj).booleanValue();
869                    }
870                    catch (com.liferay.portal.kernel.exception.SystemException se) {
871                            _log.error(se, se);
872    
873                            throw se;
874                    }
875            }
876    
877            public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
878                    long[] userIds)
879                    throws com.liferay.portal.kernel.exception.PortalException,
880                            com.liferay.portal.kernel.exception.SystemException {
881                    try {
882                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
883                                            "setRoleUsers", _setRoleUsersParameterTypes23);
884    
885                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
886                                            userIds);
887    
888                            try {
889                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
890                            }
891                            catch (Exception e) {
892                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
893                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
894                                    }
895    
896                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
897                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
898                                    }
899    
900                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
901                            }
902                    }
903                    catch (com.liferay.portal.kernel.exception.SystemException se) {
904                            _log.error(se, se);
905    
906                            throw se;
907                    }
908            }
909    
910            public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
911                    long userGroupId, long[] userIds)
912                    throws com.liferay.portal.kernel.exception.PortalException,
913                            com.liferay.portal.kernel.exception.SystemException {
914                    try {
915                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
916                                            "setUserGroupUsers", _setUserGroupUsersParameterTypes24);
917    
918                            MethodHandler methodHandler = new MethodHandler(methodKey,
919                                            userGroupId, userIds);
920    
921                            try {
922                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
923                            }
924                            catch (Exception e) {
925                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
926                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
927                                    }
928    
929                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
930                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
931                                    }
932    
933                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
934                            }
935                    }
936                    catch (com.liferay.portal.kernel.exception.SystemException se) {
937                            _log.error(se, se);
938    
939                            throw se;
940                    }
941            }
942    
943            public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
944                    long groupId, long[] userIds)
945                    throws com.liferay.portal.kernel.exception.PortalException,
946                            com.liferay.portal.kernel.exception.SystemException {
947                    try {
948                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
949                                            "unsetGroupUsers", _unsetGroupUsersParameterTypes25);
950    
951                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
952                                            userIds);
953    
954                            try {
955                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
956                            }
957                            catch (Exception e) {
958                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
959                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
960                                    }
961    
962                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
963                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
964                                    }
965    
966                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
967                            }
968                    }
969                    catch (com.liferay.portal.kernel.exception.SystemException se) {
970                            _log.error(se, se);
971    
972                            throw se;
973                    }
974            }
975    
976            public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
977                    long organizationId, long[] userIds)
978                    throws com.liferay.portal.kernel.exception.PortalException,
979                            com.liferay.portal.kernel.exception.SystemException {
980                    try {
981                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
982                                            "unsetOrganizationUsers",
983                                            _unsetOrganizationUsersParameterTypes26);
984    
985                            MethodHandler methodHandler = new MethodHandler(methodKey,
986                                            organizationId, userIds);
987    
988                            try {
989                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
990                            }
991                            catch (Exception e) {
992                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
993                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
994                                    }
995    
996                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
997                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
998                                    }
999    
1000                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1001                            }
1002                    }
1003                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1004                            _log.error(se, se);
1005    
1006                            throw se;
1007                    }
1008            }
1009    
1010            public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1011                    long passwordPolicyId, long[] userIds)
1012                    throws com.liferay.portal.kernel.exception.PortalException,
1013                            com.liferay.portal.kernel.exception.SystemException {
1014                    try {
1015                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1016                                            "unsetPasswordPolicyUsers",
1017                                            _unsetPasswordPolicyUsersParameterTypes27);
1018    
1019                            MethodHandler methodHandler = new MethodHandler(methodKey,
1020                                            passwordPolicyId, userIds);
1021    
1022                            try {
1023                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1024                            }
1025                            catch (Exception e) {
1026                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1027                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1028                                    }
1029    
1030                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1031                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1032                                    }
1033    
1034                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1035                            }
1036                    }
1037                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1038                            _log.error(se, se);
1039    
1040                            throw se;
1041                    }
1042            }
1043    
1044            public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1045                    long[] userIds)
1046                    throws com.liferay.portal.kernel.exception.PortalException,
1047                            com.liferay.portal.kernel.exception.SystemException {
1048                    try {
1049                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1050                                            "unsetRoleUsers", _unsetRoleUsersParameterTypes28);
1051    
1052                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1053                                            userIds);
1054    
1055                            try {
1056                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1057                            }
1058                            catch (Exception e) {
1059                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1060                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1061                                    }
1062    
1063                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1064                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1065                                    }
1066    
1067                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1068                            }
1069                    }
1070                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1071                            _log.error(se, se);
1072    
1073                            throw se;
1074                    }
1075            }
1076    
1077            public static void unsetTeamUsers(HttpPrincipal httpPrincipal, long teamId,
1078                    long[] userIds)
1079                    throws com.liferay.portal.kernel.exception.PortalException,
1080                            com.liferay.portal.kernel.exception.SystemException {
1081                    try {
1082                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1083                                            "unsetTeamUsers", _unsetTeamUsersParameterTypes29);
1084    
1085                            MethodHandler methodHandler = new MethodHandler(methodKey, teamId,
1086                                            userIds);
1087    
1088                            try {
1089                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1090                            }
1091                            catch (Exception e) {
1092                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1093                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1094                                    }
1095    
1096                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1097                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1098                                    }
1099    
1100                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1101                            }
1102                    }
1103                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1104                            _log.error(se, se);
1105    
1106                            throw se;
1107                    }
1108            }
1109    
1110            public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1111                    long userGroupId, long[] userIds)
1112                    throws com.liferay.portal.kernel.exception.PortalException,
1113                            com.liferay.portal.kernel.exception.SystemException {
1114                    try {
1115                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1116                                            "unsetUserGroupUsers", _unsetUserGroupUsersParameterTypes30);
1117    
1118                            MethodHandler methodHandler = new MethodHandler(methodKey,
1119                                            userGroupId, userIds);
1120    
1121                            try {
1122                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1123                            }
1124                            catch (Exception e) {
1125                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1126                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1127                                    }
1128    
1129                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1130                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1131                                    }
1132    
1133                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1134                            }
1135                    }
1136                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1137                            _log.error(se, se);
1138    
1139                            throw se;
1140                    }
1141            }
1142    
1143            public static com.liferay.portal.model.User updateActive(
1144                    HttpPrincipal httpPrincipal, long userId, boolean active)
1145                    throws com.liferay.portal.kernel.exception.PortalException,
1146                            com.liferay.portal.kernel.exception.SystemException {
1147                    try {
1148                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1149                                            "updateActive", _updateActiveParameterTypes31);
1150    
1151                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1152                                            active);
1153    
1154                            Object returnObj = null;
1155    
1156                            try {
1157                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1158                            }
1159                            catch (Exception e) {
1160                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1161                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1162                                    }
1163    
1164                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1165                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1166                                    }
1167    
1168                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1169                            }
1170    
1171                            return (com.liferay.portal.model.User)returnObj;
1172                    }
1173                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1174                            _log.error(se, se);
1175    
1176                            throw se;
1177                    }
1178            }
1179    
1180            public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1181                    HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1182                    throws com.liferay.portal.kernel.exception.PortalException,
1183                            com.liferay.portal.kernel.exception.SystemException {
1184                    try {
1185                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1186                                            "updateAgreedToTermsOfUse",
1187                                            _updateAgreedToTermsOfUseParameterTypes32);
1188    
1189                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1190                                            agreedToTermsOfUse);
1191    
1192                            Object returnObj = null;
1193    
1194                            try {
1195                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1196                            }
1197                            catch (Exception e) {
1198                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1199                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1200                                    }
1201    
1202                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1203                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1204                                    }
1205    
1206                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1207                            }
1208    
1209                            return (com.liferay.portal.model.User)returnObj;
1210                    }
1211                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1212                            _log.error(se, se);
1213    
1214                            throw se;
1215                    }
1216            }
1217    
1218            public static void updateEmailAddress(HttpPrincipal httpPrincipal,
1219                    long userId, java.lang.String password, java.lang.String emailAddress1,
1220                    java.lang.String emailAddress2)
1221                    throws com.liferay.portal.kernel.exception.PortalException,
1222                            com.liferay.portal.kernel.exception.SystemException {
1223                    try {
1224                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1225                                            "updateEmailAddress", _updateEmailAddressParameterTypes33);
1226    
1227                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1228                                            password, emailAddress1, emailAddress2);
1229    
1230                            try {
1231                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1232                            }
1233                            catch (Exception e) {
1234                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1235                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1236                                    }
1237    
1238                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1239                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1240                                    }
1241    
1242                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1243                            }
1244                    }
1245                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1246                            _log.error(se, se);
1247    
1248                            throw se;
1249                    }
1250            }
1251    
1252            public static com.liferay.portal.model.User updateLockout(
1253                    HttpPrincipal httpPrincipal, long userId, boolean lockout)
1254                    throws com.liferay.portal.kernel.exception.PortalException,
1255                            com.liferay.portal.kernel.exception.SystemException {
1256                    try {
1257                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1258                                            "updateLockout", _updateLockoutParameterTypes34);
1259    
1260                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1261                                            lockout);
1262    
1263                            Object returnObj = null;
1264    
1265                            try {
1266                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1267                            }
1268                            catch (Exception e) {
1269                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1270                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1271                                    }
1272    
1273                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1274                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1275                                    }
1276    
1277                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1278                            }
1279    
1280                            return (com.liferay.portal.model.User)returnObj;
1281                    }
1282                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1283                            _log.error(se, se);
1284    
1285                            throw se;
1286                    }
1287            }
1288    
1289            public static void updateOpenId(HttpPrincipal httpPrincipal, long userId,
1290                    java.lang.String openId)
1291                    throws com.liferay.portal.kernel.exception.PortalException,
1292                            com.liferay.portal.kernel.exception.SystemException {
1293                    try {
1294                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1295                                            "updateOpenId", _updateOpenIdParameterTypes35);
1296    
1297                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1298                                            openId);
1299    
1300                            try {
1301                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1302                            }
1303                            catch (Exception e) {
1304                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1305                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1306                                    }
1307    
1308                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1309                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1310                                    }
1311    
1312                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1313                            }
1314                    }
1315                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1316                            _log.error(se, se);
1317    
1318                            throw se;
1319                    }
1320            }
1321    
1322            public static void updateOrganizations(HttpPrincipal httpPrincipal,
1323                    long userId, long[] organizationIds)
1324                    throws com.liferay.portal.kernel.exception.PortalException,
1325                            com.liferay.portal.kernel.exception.SystemException {
1326                    try {
1327                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1328                                            "updateOrganizations", _updateOrganizationsParameterTypes36);
1329    
1330                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1331                                            organizationIds);
1332    
1333                            try {
1334                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1335                            }
1336                            catch (Exception e) {
1337                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1338                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1339                                    }
1340    
1341                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1342                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1343                                    }
1344    
1345                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1346                            }
1347                    }
1348                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1349                            _log.error(se, se);
1350    
1351                            throw se;
1352                    }
1353            }
1354    
1355            public static com.liferay.portal.model.User updatePassword(
1356                    HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1357                    java.lang.String password2, boolean passwordReset)
1358                    throws com.liferay.portal.kernel.exception.PortalException,
1359                            com.liferay.portal.kernel.exception.SystemException {
1360                    try {
1361                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1362                                            "updatePassword", _updatePasswordParameterTypes37);
1363    
1364                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1365                                            password1, password2, passwordReset);
1366    
1367                            Object returnObj = null;
1368    
1369                            try {
1370                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1371                            }
1372                            catch (Exception e) {
1373                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1374                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1375                                    }
1376    
1377                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1378                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1379                                    }
1380    
1381                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1382                            }
1383    
1384                            return (com.liferay.portal.model.User)returnObj;
1385                    }
1386                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1387                            _log.error(se, se);
1388    
1389                            throw se;
1390                    }
1391            }
1392    
1393            public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1394                    byte[] bytes)
1395                    throws com.liferay.portal.kernel.exception.PortalException,
1396                            com.liferay.portal.kernel.exception.SystemException {
1397                    try {
1398                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1399                                            "updatePortrait", _updatePortraitParameterTypes38);
1400    
1401                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1402                                            bytes);
1403    
1404                            try {
1405                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1406                            }
1407                            catch (Exception e) {
1408                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1409                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1410                                    }
1411    
1412                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1413                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1414                                    }
1415    
1416                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1417                            }
1418                    }
1419                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1420                            _log.error(se, se);
1421    
1422                            throw se;
1423                    }
1424            }
1425    
1426            public static void updateReminderQuery(HttpPrincipal httpPrincipal,
1427                    long userId, java.lang.String question, java.lang.String answer)
1428                    throws com.liferay.portal.kernel.exception.PortalException,
1429                            com.liferay.portal.kernel.exception.SystemException {
1430                    try {
1431                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1432                                            "updateReminderQuery", _updateReminderQueryParameterTypes39);
1433    
1434                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1435                                            question, answer);
1436    
1437                            try {
1438                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1439                            }
1440                            catch (Exception e) {
1441                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1442                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1443                                    }
1444    
1445                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1446                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1447                                    }
1448    
1449                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1450                            }
1451                    }
1452                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1453                            _log.error(se, se);
1454    
1455                            throw se;
1456                    }
1457            }
1458    
1459            public static void updateScreenName(HttpPrincipal httpPrincipal,
1460                    long userId, java.lang.String screenName)
1461                    throws com.liferay.portal.kernel.exception.PortalException,
1462                            com.liferay.portal.kernel.exception.SystemException {
1463                    try {
1464                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1465                                            "updateScreenName", _updateScreenNameParameterTypes40);
1466    
1467                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1468                                            screenName);
1469    
1470                            try {
1471                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1472                            }
1473                            catch (Exception e) {
1474                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1475                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1476                                    }
1477    
1478                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1479                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1480                                    }
1481    
1482                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1483                            }
1484                    }
1485                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1486                            _log.error(se, se);
1487    
1488                            throw se;
1489                    }
1490            }
1491    
1492            public static com.liferay.portal.model.User updateUser(
1493                    HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1494                    java.lang.String newPassword1, java.lang.String newPassword2,
1495                    boolean passwordReset, java.lang.String reminderQueryQuestion,
1496                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1497                    java.lang.String emailAddress, long facebookId,
1498                    java.lang.String openId, java.lang.String languageId,
1499                    java.lang.String timeZoneId, java.lang.String greeting,
1500                    java.lang.String comments, java.lang.String firstName,
1501                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1502                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1503                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1504                    java.lang.String facebookSn, java.lang.String icqSn,
1505                    java.lang.String jabberSn, java.lang.String msnSn,
1506                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1507                    java.lang.String twitterSn, java.lang.String ymSn,
1508                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1509                    long[] roleIds,
1510                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1511                    long[] userGroupIds,
1512                    com.liferay.portal.service.ServiceContext serviceContext)
1513                    throws com.liferay.portal.kernel.exception.PortalException,
1514                            com.liferay.portal.kernel.exception.SystemException {
1515                    try {
1516                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1517                                            "updateUser", _updateUserParameterTypes41);
1518    
1519                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1520                                            oldPassword, newPassword1, newPassword2, passwordReset,
1521                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
1522                                            emailAddress, facebookId, openId, languageId, timeZoneId,
1523                                            greeting, comments, firstName, middleName, lastName,
1524                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
1525                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
1526                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
1527                                            groupIds, organizationIds, roleIds, userGroupRoles,
1528                                            userGroupIds, serviceContext);
1529    
1530                            Object returnObj = null;
1531    
1532                            try {
1533                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1534                            }
1535                            catch (Exception e) {
1536                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1537                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1538                                    }
1539    
1540                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1541                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1542                                    }
1543    
1544                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1545                            }
1546    
1547                            return (com.liferay.portal.model.User)returnObj;
1548                    }
1549                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1550                            _log.error(se, se);
1551    
1552                            throw se;
1553                    }
1554            }
1555    
1556            public static com.liferay.portal.model.User updateUser(
1557                    HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1558                    java.lang.String newPassword1, java.lang.String newPassword2,
1559                    boolean passwordReset, java.lang.String reminderQueryQuestion,
1560                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1561                    java.lang.String emailAddress, long facebookId,
1562                    java.lang.String openId, java.lang.String languageId,
1563                    java.lang.String timeZoneId, java.lang.String greeting,
1564                    java.lang.String comments, java.lang.String firstName,
1565                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1566                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1567                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1568                    java.lang.String facebookSn, java.lang.String icqSn,
1569                    java.lang.String jabberSn, java.lang.String msnSn,
1570                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1571                    java.lang.String twitterSn, java.lang.String ymSn,
1572                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1573                    long[] roleIds,
1574                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1575                    long[] userGroupIds,
1576                    java.util.List<com.liferay.portal.model.Address> addresses,
1577                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
1578                    java.util.List<com.liferay.portal.model.Phone> phones,
1579                    java.util.List<com.liferay.portal.model.Website> websites,
1580                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
1581                    com.liferay.portal.service.ServiceContext serviceContext)
1582                    throws com.liferay.portal.kernel.exception.PortalException,
1583                            com.liferay.portal.kernel.exception.SystemException {
1584                    try {
1585                            MethodKey methodKey = new MethodKey(UserServiceUtil.class.getName(),
1586                                            "updateUser", _updateUserParameterTypes42);
1587    
1588                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1589                                            oldPassword, newPassword1, newPassword2, passwordReset,
1590                                            reminderQueryQuestion, reminderQueryAnswer, screenName,
1591                                            emailAddress, facebookId, openId, languageId, timeZoneId,
1592                                            greeting, comments, firstName, middleName, lastName,
1593                                            prefixId, suffixId, male, birthdayMonth, birthdayDay,
1594                                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn,
1595                                            msnSn, mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle,
1596                                            groupIds, organizationIds, roleIds, userGroupRoles,
1597                                            userGroupIds, addresses, emailAddresses, phones, websites,
1598                                            announcementsDelivers, serviceContext);
1599    
1600                            Object returnObj = null;
1601    
1602                            try {
1603                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1604                            }
1605                            catch (Exception e) {
1606                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1607                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1608                                    }
1609    
1610                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1611                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1612                                    }
1613    
1614                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1615                            }
1616    
1617                            return (com.liferay.portal.model.User)returnObj;
1618                    }
1619                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1620                            _log.error(se, se);
1621    
1622                            throw se;
1623                    }
1624            }
1625    
1626            private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
1627            private static final Class<?>[] _addGroupUsersParameterTypes0 = new Class[] {
1628                            long.class, long[].class
1629                    };
1630            private static final Class<?>[] _addOrganizationUsersParameterTypes1 = new Class[] {
1631                            long.class, long[].class
1632                    };
1633            private static final Class<?>[] _addPasswordPolicyUsersParameterTypes2 = new Class[] {
1634                            long.class, long[].class
1635                    };
1636            private static final Class<?>[] _addRoleUsersParameterTypes3 = new Class[] {
1637                            long.class, long[].class
1638                    };
1639            private static final Class<?>[] _addTeamUsersParameterTypes4 = new Class[] {
1640                            long.class, long[].class
1641                    };
1642            private static final Class<?>[] _addUserGroupUsersParameterTypes5 = new Class[] {
1643                            long.class, long[].class
1644                    };
1645            private static final Class<?>[] _addUserParameterTypes6 = new Class[] {
1646                            long.class, boolean.class, java.lang.String.class,
1647                            java.lang.String.class, boolean.class, java.lang.String.class,
1648                            java.lang.String.class, long.class, java.lang.String.class,
1649                            java.util.Locale.class, java.lang.String.class,
1650                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1651                            boolean.class, int.class, int.class, int.class,
1652                            java.lang.String.class, long[].class, long[].class, long[].class,
1653                            long[].class, boolean.class,
1654                            com.liferay.portal.service.ServiceContext.class
1655                    };
1656            private static final Class<?>[] _addUserParameterTypes7 = new Class[] {
1657                            long.class, boolean.class, java.lang.String.class,
1658                            java.lang.String.class, boolean.class, java.lang.String.class,
1659                            java.lang.String.class, long.class, java.lang.String.class,
1660                            java.util.Locale.class, java.lang.String.class,
1661                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1662                            boolean.class, int.class, int.class, int.class,
1663                            java.lang.String.class, long[].class, long[].class, long[].class,
1664                            long[].class, boolean.class, java.util.List.class,
1665                            java.util.List.class, java.util.List.class, java.util.List.class,
1666                            java.util.List.class,
1667                            com.liferay.portal.service.ServiceContext.class
1668                    };
1669            private static final Class<?>[] _deletePortraitParameterTypes8 = new Class[] {
1670                            long.class
1671                    };
1672            private static final Class<?>[] _deleteRoleUserParameterTypes9 = new Class[] {
1673                            long.class, long.class
1674                    };
1675            private static final Class<?>[] _deleteUserParameterTypes10 = new Class[] {
1676                            long.class
1677                    };
1678            private static final Class<?>[] _getDefaultUserIdParameterTypes11 = new Class[] {
1679                            long.class
1680                    };
1681            private static final Class<?>[] _getGroupUserIdsParameterTypes12 = new Class[] {
1682                            long.class
1683                    };
1684            private static final Class<?>[] _getOrganizationUserIdsParameterTypes13 = new Class[] {
1685                            long.class
1686                    };
1687            private static final Class<?>[] _getRoleUserIdsParameterTypes14 = new Class[] {
1688                            long.class
1689                    };
1690            private static final Class<?>[] _getUserByEmailAddressParameterTypes15 = new Class[] {
1691                            long.class, java.lang.String.class
1692                    };
1693            private static final Class<?>[] _getUserByIdParameterTypes16 = new Class[] {
1694                            long.class
1695                    };
1696            private static final Class<?>[] _getUserByScreenNameParameterTypes17 = new Class[] {
1697                            long.class, java.lang.String.class
1698                    };
1699            private static final Class<?>[] _getUserIdByEmailAddressParameterTypes18 = new Class[] {
1700                            long.class, java.lang.String.class
1701                    };
1702            private static final Class<?>[] _getUserIdByScreenNameParameterTypes19 = new Class[] {
1703                            long.class, java.lang.String.class
1704                    };
1705            private static final Class<?>[] _hasGroupUserParameterTypes20 = new Class[] {
1706                            long.class, long.class
1707                    };
1708            private static final Class<?>[] _hasRoleUserParameterTypes21 = new Class[] {
1709                            long.class, long.class
1710                    };
1711            private static final Class<?>[] _hasRoleUserParameterTypes22 = new Class[] {
1712                            long.class, java.lang.String.class, long.class, boolean.class
1713                    };
1714            private static final Class<?>[] _setRoleUsersParameterTypes23 = new Class[] {
1715                            long.class, long[].class
1716                    };
1717            private static final Class<?>[] _setUserGroupUsersParameterTypes24 = new Class[] {
1718                            long.class, long[].class
1719                    };
1720            private static final Class<?>[] _unsetGroupUsersParameterTypes25 = new Class[] {
1721                            long.class, long[].class
1722                    };
1723            private static final Class<?>[] _unsetOrganizationUsersParameterTypes26 = new Class[] {
1724                            long.class, long[].class
1725                    };
1726            private static final Class<?>[] _unsetPasswordPolicyUsersParameterTypes27 = new Class[] {
1727                            long.class, long[].class
1728                    };
1729            private static final Class<?>[] _unsetRoleUsersParameterTypes28 = new Class[] {
1730                            long.class, long[].class
1731                    };
1732            private static final Class<?>[] _unsetTeamUsersParameterTypes29 = new Class[] {
1733                            long.class, long[].class
1734                    };
1735            private static final Class<?>[] _unsetUserGroupUsersParameterTypes30 = new Class[] {
1736                            long.class, long[].class
1737                    };
1738            private static final Class<?>[] _updateActiveParameterTypes31 = new Class[] {
1739                            long.class, boolean.class
1740                    };
1741            private static final Class<?>[] _updateAgreedToTermsOfUseParameterTypes32 = new Class[] {
1742                            long.class, boolean.class
1743                    };
1744            private static final Class<?>[] _updateEmailAddressParameterTypes33 = new Class[] {
1745                            long.class, java.lang.String.class, java.lang.String.class,
1746                            java.lang.String.class
1747                    };
1748            private static final Class<?>[] _updateLockoutParameterTypes34 = new Class[] {
1749                            long.class, boolean.class
1750                    };
1751            private static final Class<?>[] _updateOpenIdParameterTypes35 = new Class[] {
1752                            long.class, java.lang.String.class
1753                    };
1754            private static final Class<?>[] _updateOrganizationsParameterTypes36 = new Class[] {
1755                            long.class, long[].class
1756                    };
1757            private static final Class<?>[] _updatePasswordParameterTypes37 = new Class[] {
1758                            long.class, java.lang.String.class, java.lang.String.class,
1759                            boolean.class
1760                    };
1761            private static final Class<?>[] _updatePortraitParameterTypes38 = new Class[] {
1762                            long.class, byte[].class
1763                    };
1764            private static final Class<?>[] _updateReminderQueryParameterTypes39 = new Class[] {
1765                            long.class, java.lang.String.class, java.lang.String.class
1766                    };
1767            private static final Class<?>[] _updateScreenNameParameterTypes40 = new Class[] {
1768                            long.class, java.lang.String.class
1769                    };
1770            private static final Class<?>[] _updateUserParameterTypes41 = new Class[] {
1771                            long.class, java.lang.String.class, java.lang.String.class,
1772                            java.lang.String.class, boolean.class, java.lang.String.class,
1773                            java.lang.String.class, java.lang.String.class,
1774                            java.lang.String.class, long.class, java.lang.String.class,
1775                            java.lang.String.class, java.lang.String.class,
1776                            java.lang.String.class, java.lang.String.class,
1777                            java.lang.String.class, java.lang.String.class,
1778                            java.lang.String.class, int.class, int.class, boolean.class,
1779                            int.class, int.class, int.class, java.lang.String.class,
1780                            java.lang.String.class, java.lang.String.class,
1781                            java.lang.String.class, java.lang.String.class,
1782                            java.lang.String.class, java.lang.String.class,
1783                            java.lang.String.class, java.lang.String.class,
1784                            java.lang.String.class, java.lang.String.class, long[].class,
1785                            long[].class, long[].class, java.util.List.class, long[].class,
1786                            com.liferay.portal.service.ServiceContext.class
1787                    };
1788            private static final Class<?>[] _updateUserParameterTypes42 = new Class[] {
1789                            long.class, java.lang.String.class, java.lang.String.class,
1790                            java.lang.String.class, boolean.class, java.lang.String.class,
1791                            java.lang.String.class, java.lang.String.class,
1792                            java.lang.String.class, long.class, java.lang.String.class,
1793                            java.lang.String.class, java.lang.String.class,
1794                            java.lang.String.class, java.lang.String.class,
1795                            java.lang.String.class, java.lang.String.class,
1796                            java.lang.String.class, int.class, int.class, boolean.class,
1797                            int.class, int.class, int.class, java.lang.String.class,
1798                            java.lang.String.class, java.lang.String.class,
1799                            java.lang.String.class, java.lang.String.class,
1800                            java.lang.String.class, java.lang.String.class,
1801                            java.lang.String.class, java.lang.String.class,
1802                            java.lang.String.class, java.lang.String.class, long[].class,
1803                            long[].class, long[].class, java.util.List.class, long[].class,
1804                            java.util.List.class, java.util.List.class, java.util.List.class,
1805                            java.util.List.class, java.util.List.class,
1806                            com.liferay.portal.service.ServiceContext.class
1807                    };
1808    }