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