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