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