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