1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.PortalException,
68              com.liferay.portal.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.PortalException) {
86                      throw (com.liferay.portal.PortalException)e;
87                  }
88  
89                  if (e instanceof com.liferay.portal.SystemException) {
90                      throw (com.liferay.portal.SystemException)e;
91                  }
92  
93                  throw new com.liferay.portal.SystemException(e);
94              }
95          }
96          catch (com.liferay.portal.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.PortalException,
106             com.liferay.portal.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.PortalException) {
125                     throw (com.liferay.portal.PortalException)e;
126                 }
127 
128                 if (e instanceof com.liferay.portal.SystemException) {
129                     throw (com.liferay.portal.SystemException)e;
130                 }
131 
132                 throw new com.liferay.portal.SystemException(e);
133             }
134         }
135         catch (com.liferay.portal.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.PortalException,
145             com.liferay.portal.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.PortalException) {
164                     throw (com.liferay.portal.PortalException)e;
165                 }
166 
167                 if (e instanceof com.liferay.portal.SystemException) {
168                     throw (com.liferay.portal.SystemException)e;
169                 }
170 
171                 throw new com.liferay.portal.SystemException(e);
172             }
173         }
174         catch (com.liferay.portal.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.PortalException,
184             com.liferay.portal.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.PortalException) {
202                     throw (com.liferay.portal.PortalException)e;
203                 }
204 
205                 if (e instanceof com.liferay.portal.SystemException) {
206                     throw (com.liferay.portal.SystemException)e;
207                 }
208 
209                 throw new com.liferay.portal.SystemException(e);
210             }
211         }
212         catch (com.liferay.portal.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.PortalException,
222             com.liferay.portal.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.PortalException) {
240                     throw (com.liferay.portal.PortalException)e;
241                 }
242 
243                 if (e instanceof com.liferay.portal.SystemException) {
244                     throw (com.liferay.portal.SystemException)e;
245                 }
246 
247                 throw new com.liferay.portal.SystemException(e);
248             }
249         }
250         catch (com.liferay.portal.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.PortalException,
270             com.liferay.portal.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.PortalException) {
401                     throw (com.liferay.portal.PortalException)e;
402                 }
403 
404                 if (e instanceof com.liferay.portal.SystemException) {
405                     throw (com.liferay.portal.SystemException)e;
406                 }
407 
408                 throw new com.liferay.portal.SystemException(e);
409             }
410 
411             return (com.liferay.portal.model.User)returnObj;
412         }
413         catch (com.liferay.portal.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.PortalException,
438             com.liferay.portal.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.PortalException) {
600                     throw (com.liferay.portal.PortalException)e;
601                 }
602 
603                 if (e instanceof com.liferay.portal.SystemException) {
604                     throw (com.liferay.portal.SystemException)e;
605                 }
606 
607                 throw new com.liferay.portal.SystemException(e);
608             }
609 
610             return (com.liferay.portal.model.User)returnObj;
611         }
612         catch (com.liferay.portal.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.PortalException,
621             com.liferay.portal.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.PortalException) {
633                     throw (com.liferay.portal.PortalException)e;
634                 }
635 
636                 if (e instanceof com.liferay.portal.SystemException) {
637                     throw (com.liferay.portal.SystemException)e;
638                 }
639 
640                 throw new com.liferay.portal.SystemException(e);
641             }
642         }
643         catch (com.liferay.portal.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.PortalException,
653             com.liferay.portal.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.PortalException) {
667                     throw (com.liferay.portal.PortalException)e;
668                 }
669 
670                 if (e instanceof com.liferay.portal.SystemException) {
671                     throw (com.liferay.portal.SystemException)e;
672                 }
673 
674                 throw new com.liferay.portal.SystemException(e);
675             }
676         }
677         catch (com.liferay.portal.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.PortalException,
686             com.liferay.portal.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.PortalException) {
698                     throw (com.liferay.portal.PortalException)e;
699                 }
700 
701                 if (e instanceof com.liferay.portal.SystemException) {
702                     throw (com.liferay.portal.SystemException)e;
703                 }
704 
705                 throw new com.liferay.portal.SystemException(e);
706             }
707         }
708         catch (com.liferay.portal.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.PortalException,
718             com.liferay.portal.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.PortalException) {
732                     throw (com.liferay.portal.PortalException)e;
733                 }
734 
735                 if (e instanceof com.liferay.portal.SystemException) {
736                     throw (com.liferay.portal.SystemException)e;
737                 }
738 
739                 throw new com.liferay.portal.SystemException(e);
740             }
741 
742             return ((Long)returnObj).longValue();
743         }
744         catch (com.liferay.portal.SystemException se) {
745             _log.error(se, se);
746 
747             throw se;
748         }
749     }
750 
751     public static long[] getGroupUserIds(HttpPrincipal httpPrincipal,
752         long groupId) throws com.liferay.portal.SystemException {
753         try {
754             Object paramObj0 = new LongWrapper(groupId);
755 
756             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
757                     "getGroupUserIds", new Object[] { paramObj0 });
758 
759             Object returnObj = null;
760 
761             try {
762                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
763             }
764             catch (Exception e) {
765                 if (e instanceof com.liferay.portal.SystemException) {
766                     throw (com.liferay.portal.SystemException)e;
767                 }
768 
769                 throw new com.liferay.portal.SystemException(e);
770             }
771 
772             return (long[])returnObj;
773         }
774         catch (com.liferay.portal.SystemException se) {
775             _log.error(se, se);
776 
777             throw se;
778         }
779     }
780 
781     public static long[] getOrganizationUserIds(HttpPrincipal httpPrincipal,
782         long organizationId) throws com.liferay.portal.SystemException {
783         try {
784             Object paramObj0 = new LongWrapper(organizationId);
785 
786             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
787                     "getOrganizationUserIds", new Object[] { paramObj0 });
788 
789             Object returnObj = null;
790 
791             try {
792                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
793             }
794             catch (Exception e) {
795                 if (e instanceof com.liferay.portal.SystemException) {
796                     throw (com.liferay.portal.SystemException)e;
797                 }
798 
799                 throw new com.liferay.portal.SystemException(e);
800             }
801 
802             return (long[])returnObj;
803         }
804         catch (com.liferay.portal.SystemException se) {
805             _log.error(se, se);
806 
807             throw se;
808         }
809     }
810 
811     public static long[] getRoleUserIds(HttpPrincipal httpPrincipal, long roleId)
812         throws com.liferay.portal.SystemException {
813         try {
814             Object paramObj0 = new LongWrapper(roleId);
815 
816             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
817                     "getRoleUserIds", new Object[] { paramObj0 });
818 
819             Object returnObj = null;
820 
821             try {
822                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
823             }
824             catch (Exception e) {
825                 if (e instanceof com.liferay.portal.SystemException) {
826                     throw (com.liferay.portal.SystemException)e;
827                 }
828 
829                 throw new com.liferay.portal.SystemException(e);
830             }
831 
832             return (long[])returnObj;
833         }
834         catch (com.liferay.portal.SystemException se) {
835             _log.error(se, se);
836 
837             throw se;
838         }
839     }
840 
841     public static com.liferay.portal.model.User getUserByEmailAddress(
842         HttpPrincipal httpPrincipal, long companyId,
843         java.lang.String emailAddress)
844         throws com.liferay.portal.PortalException,
845             com.liferay.portal.SystemException {
846         try {
847             Object paramObj0 = new LongWrapper(companyId);
848 
849             Object paramObj1 = emailAddress;
850 
851             if (emailAddress == null) {
852                 paramObj1 = new NullWrapper("java.lang.String");
853             }
854 
855             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
856                     "getUserByEmailAddress",
857                     new Object[] { paramObj0, paramObj1 });
858 
859             Object returnObj = null;
860 
861             try {
862                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
863             }
864             catch (Exception e) {
865                 if (e instanceof com.liferay.portal.PortalException) {
866                     throw (com.liferay.portal.PortalException)e;
867                 }
868 
869                 if (e instanceof com.liferay.portal.SystemException) {
870                     throw (com.liferay.portal.SystemException)e;
871                 }
872 
873                 throw new com.liferay.portal.SystemException(e);
874             }
875 
876             return (com.liferay.portal.model.User)returnObj;
877         }
878         catch (com.liferay.portal.SystemException se) {
879             _log.error(se, se);
880 
881             throw se;
882         }
883     }
884 
885     public static com.liferay.portal.model.User getUserById(
886         HttpPrincipal httpPrincipal, long userId)
887         throws com.liferay.portal.PortalException,
888             com.liferay.portal.SystemException {
889         try {
890             Object paramObj0 = new LongWrapper(userId);
891 
892             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
893                     "getUserById", new Object[] { paramObj0 });
894 
895             Object returnObj = null;
896 
897             try {
898                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
899             }
900             catch (Exception e) {
901                 if (e instanceof com.liferay.portal.PortalException) {
902                     throw (com.liferay.portal.PortalException)e;
903                 }
904 
905                 if (e instanceof com.liferay.portal.SystemException) {
906                     throw (com.liferay.portal.SystemException)e;
907                 }
908 
909                 throw new com.liferay.portal.SystemException(e);
910             }
911 
912             return (com.liferay.portal.model.User)returnObj;
913         }
914         catch (com.liferay.portal.SystemException se) {
915             _log.error(se, se);
916 
917             throw se;
918         }
919     }
920 
921     public static com.liferay.portal.model.User getUserByScreenName(
922         HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
923         throws com.liferay.portal.PortalException,
924             com.liferay.portal.SystemException {
925         try {
926             Object paramObj0 = new LongWrapper(companyId);
927 
928             Object paramObj1 = screenName;
929 
930             if (screenName == null) {
931                 paramObj1 = new NullWrapper("java.lang.String");
932             }
933 
934             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
935                     "getUserByScreenName", new Object[] { paramObj0, paramObj1 });
936 
937             Object returnObj = null;
938 
939             try {
940                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
941             }
942             catch (Exception e) {
943                 if (e instanceof com.liferay.portal.PortalException) {
944                     throw (com.liferay.portal.PortalException)e;
945                 }
946 
947                 if (e instanceof com.liferay.portal.SystemException) {
948                     throw (com.liferay.portal.SystemException)e;
949                 }
950 
951                 throw new com.liferay.portal.SystemException(e);
952             }
953 
954             return (com.liferay.portal.model.User)returnObj;
955         }
956         catch (com.liferay.portal.SystemException se) {
957             _log.error(se, se);
958 
959             throw se;
960         }
961     }
962 
963     public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
964         long companyId, java.lang.String emailAddress)
965         throws com.liferay.portal.PortalException,
966             com.liferay.portal.SystemException {
967         try {
968             Object paramObj0 = new LongWrapper(companyId);
969 
970             Object paramObj1 = emailAddress;
971 
972             if (emailAddress == null) {
973                 paramObj1 = new NullWrapper("java.lang.String");
974             }
975 
976             MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
977                     "getUserIdByEmailAddress",
978                     new Object[] { paramObj0, paramObj1 });
979 
980             Object returnObj = null;
981 
982             try {
983                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
984             }
985             catch (Exception e) {
986                 if (e instanceof com.liferay.portal.PortalException) {
987                     throw (com.liferay.portal.PortalException)e;
988                 }
989 
990                 if (e instanceof com.liferay.portal.SystemException) {
991                     throw (com.liferay.portal.SystemException)e;
992                 }
993 
994                 throw new com.liferay.portal.SystemException(e);
995             }
996 
997             return ((Long)returnObj).longValue();
998         }
999         catch (com.liferay.portal.SystemException se) {
1000            _log.error(se, se);
1001
1002            throw se;
1003        }
1004    }
1005
1006    public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
1007        long companyId, java.lang.String screenName)
1008        throws com.liferay.portal.PortalException,
1009            com.liferay.portal.SystemException {
1010        try {
1011            Object paramObj0 = new LongWrapper(companyId);
1012
1013            Object paramObj1 = screenName;
1014
1015            if (screenName == null) {
1016                paramObj1 = new NullWrapper("java.lang.String");
1017            }
1018
1019            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1020                    "getUserIdByScreenName",
1021                    new Object[] { paramObj0, paramObj1 });
1022
1023            Object returnObj = null;
1024
1025            try {
1026                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1027            }
1028            catch (Exception e) {
1029                if (e instanceof com.liferay.portal.PortalException) {
1030                    throw (com.liferay.portal.PortalException)e;
1031                }
1032
1033                if (e instanceof com.liferay.portal.SystemException) {
1034                    throw (com.liferay.portal.SystemException)e;
1035                }
1036
1037                throw new com.liferay.portal.SystemException(e);
1038            }
1039
1040            return ((Long)returnObj).longValue();
1041        }
1042        catch (com.liferay.portal.SystemException se) {
1043            _log.error(se, se);
1044
1045            throw se;
1046        }
1047    }
1048
1049    public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
1050        long groupId, long userId) throws com.liferay.portal.SystemException {
1051        try {
1052            Object paramObj0 = new LongWrapper(groupId);
1053
1054            Object paramObj1 = new LongWrapper(userId);
1055
1056            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1057                    "hasGroupUser", new Object[] { paramObj0, paramObj1 });
1058
1059            Object returnObj = null;
1060
1061            try {
1062                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1063            }
1064            catch (Exception e) {
1065                if (e instanceof com.liferay.portal.SystemException) {
1066                    throw (com.liferay.portal.SystemException)e;
1067                }
1068
1069                throw new com.liferay.portal.SystemException(e);
1070            }
1071
1072            return ((Boolean)returnObj).booleanValue();
1073        }
1074        catch (com.liferay.portal.SystemException se) {
1075            _log.error(se, se);
1076
1077            throw se;
1078        }
1079    }
1080
1081    public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
1082        long userId) throws com.liferay.portal.SystemException {
1083        try {
1084            Object paramObj0 = new LongWrapper(roleId);
1085
1086            Object paramObj1 = new LongWrapper(userId);
1087
1088            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1089                    "hasRoleUser", new Object[] { paramObj0, paramObj1 });
1090
1091            Object returnObj = null;
1092
1093            try {
1094                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1095            }
1096            catch (Exception e) {
1097                if (e instanceof com.liferay.portal.SystemException) {
1098                    throw (com.liferay.portal.SystemException)e;
1099                }
1100
1101                throw new com.liferay.portal.SystemException(e);
1102            }
1103
1104            return ((Boolean)returnObj).booleanValue();
1105        }
1106        catch (com.liferay.portal.SystemException se) {
1107            _log.error(se, se);
1108
1109            throw se;
1110        }
1111    }
1112
1113    public static boolean hasRoleUser(HttpPrincipal httpPrincipal,
1114        long companyId, java.lang.String name, long userId, boolean inherited)
1115        throws com.liferay.portal.PortalException,
1116            com.liferay.portal.SystemException {
1117        try {
1118            Object paramObj0 = new LongWrapper(companyId);
1119
1120            Object paramObj1 = name;
1121
1122            if (name == null) {
1123                paramObj1 = new NullWrapper("java.lang.String");
1124            }
1125
1126            Object paramObj2 = new LongWrapper(userId);
1127
1128            Object paramObj3 = new BooleanWrapper(inherited);
1129
1130            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1131                    "hasRoleUser",
1132                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1133
1134            Object returnObj = null;
1135
1136            try {
1137                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1138            }
1139            catch (Exception e) {
1140                if (e instanceof com.liferay.portal.PortalException) {
1141                    throw (com.liferay.portal.PortalException)e;
1142                }
1143
1144                if (e instanceof com.liferay.portal.SystemException) {
1145                    throw (com.liferay.portal.SystemException)e;
1146                }
1147
1148                throw new com.liferay.portal.SystemException(e);
1149            }
1150
1151            return ((Boolean)returnObj).booleanValue();
1152        }
1153        catch (com.liferay.portal.SystemException se) {
1154            _log.error(se, se);
1155
1156            throw se;
1157        }
1158    }
1159
1160    public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1161        long[] userIds)
1162        throws com.liferay.portal.PortalException,
1163            com.liferay.portal.SystemException {
1164        try {
1165            Object paramObj0 = new LongWrapper(roleId);
1166
1167            Object paramObj1 = userIds;
1168
1169            if (userIds == null) {
1170                paramObj1 = new NullWrapper("[J");
1171            }
1172
1173            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1174                    "setRoleUsers", new Object[] { paramObj0, paramObj1 });
1175
1176            try {
1177                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1178            }
1179            catch (Exception e) {
1180                if (e instanceof com.liferay.portal.PortalException) {
1181                    throw (com.liferay.portal.PortalException)e;
1182                }
1183
1184                if (e instanceof com.liferay.portal.SystemException) {
1185                    throw (com.liferay.portal.SystemException)e;
1186                }
1187
1188                throw new com.liferay.portal.SystemException(e);
1189            }
1190        }
1191        catch (com.liferay.portal.SystemException se) {
1192            _log.error(se, se);
1193
1194            throw se;
1195        }
1196    }
1197
1198    public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
1199        long userGroupId, long[] userIds)
1200        throws com.liferay.portal.PortalException,
1201            com.liferay.portal.SystemException {
1202        try {
1203            Object paramObj0 = new LongWrapper(userGroupId);
1204
1205            Object paramObj1 = userIds;
1206
1207            if (userIds == null) {
1208                paramObj1 = new NullWrapper("[J");
1209            }
1210
1211            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1212                    "setUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1213
1214            try {
1215                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1216            }
1217            catch (Exception e) {
1218                if (e instanceof com.liferay.portal.PortalException) {
1219                    throw (com.liferay.portal.PortalException)e;
1220                }
1221
1222                if (e instanceof com.liferay.portal.SystemException) {
1223                    throw (com.liferay.portal.SystemException)e;
1224                }
1225
1226                throw new com.liferay.portal.SystemException(e);
1227            }
1228        }
1229        catch (com.liferay.portal.SystemException se) {
1230            _log.error(se, se);
1231
1232            throw se;
1233        }
1234    }
1235
1236    public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
1237        long groupId, long[] userIds)
1238        throws com.liferay.portal.PortalException,
1239            com.liferay.portal.SystemException {
1240        try {
1241            Object paramObj0 = new LongWrapper(groupId);
1242
1243            Object paramObj1 = userIds;
1244
1245            if (userIds == null) {
1246                paramObj1 = new NullWrapper("[J");
1247            }
1248
1249            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1250                    "unsetGroupUsers", new Object[] { paramObj0, paramObj1 });
1251
1252            try {
1253                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1254            }
1255            catch (Exception e) {
1256                if (e instanceof com.liferay.portal.PortalException) {
1257                    throw (com.liferay.portal.PortalException)e;
1258                }
1259
1260                if (e instanceof com.liferay.portal.SystemException) {
1261                    throw (com.liferay.portal.SystemException)e;
1262                }
1263
1264                throw new com.liferay.portal.SystemException(e);
1265            }
1266        }
1267        catch (com.liferay.portal.SystemException se) {
1268            _log.error(se, se);
1269
1270            throw se;
1271        }
1272    }
1273
1274    public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
1275        long organizationId, long[] userIds)
1276        throws com.liferay.portal.PortalException,
1277            com.liferay.portal.SystemException {
1278        try {
1279            Object paramObj0 = new LongWrapper(organizationId);
1280
1281            Object paramObj1 = userIds;
1282
1283            if (userIds == null) {
1284                paramObj1 = new NullWrapper("[J");
1285            }
1286
1287            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1288                    "unsetOrganizationUsers",
1289                    new Object[] { paramObj0, paramObj1 });
1290
1291            try {
1292                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1293            }
1294            catch (Exception e) {
1295                if (e instanceof com.liferay.portal.PortalException) {
1296                    throw (com.liferay.portal.PortalException)e;
1297                }
1298
1299                if (e instanceof com.liferay.portal.SystemException) {
1300                    throw (com.liferay.portal.SystemException)e;
1301                }
1302
1303                throw new com.liferay.portal.SystemException(e);
1304            }
1305        }
1306        catch (com.liferay.portal.SystemException se) {
1307            _log.error(se, se);
1308
1309            throw se;
1310        }
1311    }
1312
1313    public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1314        long passwordPolicyId, long[] userIds)
1315        throws com.liferay.portal.PortalException,
1316            com.liferay.portal.SystemException {
1317        try {
1318            Object paramObj0 = new LongWrapper(passwordPolicyId);
1319
1320            Object paramObj1 = userIds;
1321
1322            if (userIds == null) {
1323                paramObj1 = new NullWrapper("[J");
1324            }
1325
1326            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1327                    "unsetPasswordPolicyUsers",
1328                    new Object[] { paramObj0, paramObj1 });
1329
1330            try {
1331                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1332            }
1333            catch (Exception e) {
1334                if (e instanceof com.liferay.portal.PortalException) {
1335                    throw (com.liferay.portal.PortalException)e;
1336                }
1337
1338                if (e instanceof com.liferay.portal.SystemException) {
1339                    throw (com.liferay.portal.SystemException)e;
1340                }
1341
1342                throw new com.liferay.portal.SystemException(e);
1343            }
1344        }
1345        catch (com.liferay.portal.SystemException se) {
1346            _log.error(se, se);
1347
1348            throw se;
1349        }
1350    }
1351
1352    public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1353        long[] userIds)
1354        throws com.liferay.portal.PortalException,
1355            com.liferay.portal.SystemException {
1356        try {
1357            Object paramObj0 = new LongWrapper(roleId);
1358
1359            Object paramObj1 = userIds;
1360
1361            if (userIds == null) {
1362                paramObj1 = new NullWrapper("[J");
1363            }
1364
1365            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1366                    "unsetRoleUsers", new Object[] { paramObj0, paramObj1 });
1367
1368            try {
1369                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1370            }
1371            catch (Exception e) {
1372                if (e instanceof com.liferay.portal.PortalException) {
1373                    throw (com.liferay.portal.PortalException)e;
1374                }
1375
1376                if (e instanceof com.liferay.portal.SystemException) {
1377                    throw (com.liferay.portal.SystemException)e;
1378                }
1379
1380                throw new com.liferay.portal.SystemException(e);
1381            }
1382        }
1383        catch (com.liferay.portal.SystemException se) {
1384            _log.error(se, se);
1385
1386            throw se;
1387        }
1388    }
1389
1390    public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1391        long userGroupId, long[] userIds)
1392        throws com.liferay.portal.PortalException,
1393            com.liferay.portal.SystemException {
1394        try {
1395            Object paramObj0 = new LongWrapper(userGroupId);
1396
1397            Object paramObj1 = userIds;
1398
1399            if (userIds == null) {
1400                paramObj1 = new NullWrapper("[J");
1401            }
1402
1403            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1404                    "unsetUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1405
1406            try {
1407                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1408            }
1409            catch (Exception e) {
1410                if (e instanceof com.liferay.portal.PortalException) {
1411                    throw (com.liferay.portal.PortalException)e;
1412                }
1413
1414                if (e instanceof com.liferay.portal.SystemException) {
1415                    throw (com.liferay.portal.SystemException)e;
1416                }
1417
1418                throw new com.liferay.portal.SystemException(e);
1419            }
1420        }
1421        catch (com.liferay.portal.SystemException se) {
1422            _log.error(se, se);
1423
1424            throw se;
1425        }
1426    }
1427
1428    public static com.liferay.portal.model.User updateActive(
1429        HttpPrincipal httpPrincipal, long userId, boolean active)
1430        throws com.liferay.portal.PortalException,
1431            com.liferay.portal.SystemException {
1432        try {
1433            Object paramObj0 = new LongWrapper(userId);
1434
1435            Object paramObj1 = new BooleanWrapper(active);
1436
1437            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1438                    "updateActive", new Object[] { paramObj0, paramObj1 });
1439
1440            Object returnObj = null;
1441
1442            try {
1443                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1444            }
1445            catch (Exception e) {
1446                if (e instanceof com.liferay.portal.PortalException) {
1447                    throw (com.liferay.portal.PortalException)e;
1448                }
1449
1450                if (e instanceof com.liferay.portal.SystemException) {
1451                    throw (com.liferay.portal.SystemException)e;
1452                }
1453
1454                throw new com.liferay.portal.SystemException(e);
1455            }
1456
1457            return (com.liferay.portal.model.User)returnObj;
1458        }
1459        catch (com.liferay.portal.SystemException se) {
1460            _log.error(se, se);
1461
1462            throw se;
1463        }
1464    }
1465
1466    public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1467        HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1468        throws com.liferay.portal.PortalException,
1469            com.liferay.portal.SystemException {
1470        try {
1471            Object paramObj0 = new LongWrapper(userId);
1472
1473            Object paramObj1 = new BooleanWrapper(agreedToTermsOfUse);
1474
1475            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1476                    "updateAgreedToTermsOfUse",
1477                    new Object[] { paramObj0, paramObj1 });
1478
1479            Object returnObj = null;
1480
1481            try {
1482                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1483            }
1484            catch (Exception e) {
1485                if (e instanceof com.liferay.portal.PortalException) {
1486                    throw (com.liferay.portal.PortalException)e;
1487                }
1488
1489                if (e instanceof com.liferay.portal.SystemException) {
1490                    throw (com.liferay.portal.SystemException)e;
1491                }
1492
1493                throw new com.liferay.portal.SystemException(e);
1494            }
1495
1496            return (com.liferay.portal.model.User)returnObj;
1497        }
1498        catch (com.liferay.portal.SystemException se) {
1499            _log.error(se, se);
1500
1501            throw se;
1502        }
1503    }
1504
1505    public static void updateEmailAddress(HttpPrincipal httpPrincipal,
1506        long userId, java.lang.String password, java.lang.String emailAddress1,
1507        java.lang.String emailAddress2)
1508        throws com.liferay.portal.PortalException,
1509            com.liferay.portal.SystemException {
1510        try {
1511            Object paramObj0 = new LongWrapper(userId);
1512
1513            Object paramObj1 = password;
1514
1515            if (password == null) {
1516                paramObj1 = new NullWrapper("java.lang.String");
1517            }
1518
1519            Object paramObj2 = emailAddress1;
1520
1521            if (emailAddress1 == null) {
1522                paramObj2 = new NullWrapper("java.lang.String");
1523            }
1524
1525            Object paramObj3 = emailAddress2;
1526
1527            if (emailAddress2 == null) {
1528                paramObj3 = new NullWrapper("java.lang.String");
1529            }
1530
1531            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1532                    "updateEmailAddress",
1533                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1534
1535            try {
1536                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1537            }
1538            catch (Exception e) {
1539                if (e instanceof com.liferay.portal.PortalException) {
1540                    throw (com.liferay.portal.PortalException)e;
1541                }
1542
1543                if (e instanceof com.liferay.portal.SystemException) {
1544                    throw (com.liferay.portal.SystemException)e;
1545                }
1546
1547                throw new com.liferay.portal.SystemException(e);
1548            }
1549        }
1550        catch (com.liferay.portal.SystemException se) {
1551            _log.error(se, se);
1552
1553            throw se;
1554        }
1555    }
1556
1557    public static com.liferay.portal.model.User updateLockout(
1558        HttpPrincipal httpPrincipal, long userId, boolean lockout)
1559        throws com.liferay.portal.PortalException,
1560            com.liferay.portal.SystemException {
1561        try {
1562            Object paramObj0 = new LongWrapper(userId);
1563
1564            Object paramObj1 = new BooleanWrapper(lockout);
1565
1566            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1567                    "updateLockout", new Object[] { paramObj0, paramObj1 });
1568
1569            Object returnObj = null;
1570
1571            try {
1572                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1573            }
1574            catch (Exception e) {
1575                if (e instanceof com.liferay.portal.PortalException) {
1576                    throw (com.liferay.portal.PortalException)e;
1577                }
1578
1579                if (e instanceof com.liferay.portal.SystemException) {
1580                    throw (com.liferay.portal.SystemException)e;
1581                }
1582
1583                throw new com.liferay.portal.SystemException(e);
1584            }
1585
1586            return (com.liferay.portal.model.User)returnObj;
1587        }
1588        catch (com.liferay.portal.SystemException se) {
1589            _log.error(se, se);
1590
1591            throw se;
1592        }
1593    }
1594
1595    public static void updateOpenId(HttpPrincipal httpPrincipal, long userId,
1596        java.lang.String openId)
1597        throws com.liferay.portal.PortalException,
1598            com.liferay.portal.SystemException {
1599        try {
1600            Object paramObj0 = new LongWrapper(userId);
1601
1602            Object paramObj1 = openId;
1603
1604            if (openId == null) {
1605                paramObj1 = new NullWrapper("java.lang.String");
1606            }
1607
1608            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1609                    "updateOpenId", new Object[] { paramObj0, paramObj1 });
1610
1611            try {
1612                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1613            }
1614            catch (Exception e) {
1615                if (e instanceof com.liferay.portal.PortalException) {
1616                    throw (com.liferay.portal.PortalException)e;
1617                }
1618
1619                if (e instanceof com.liferay.portal.SystemException) {
1620                    throw (com.liferay.portal.SystemException)e;
1621                }
1622
1623                throw new com.liferay.portal.SystemException(e);
1624            }
1625        }
1626        catch (com.liferay.portal.SystemException se) {
1627            _log.error(se, se);
1628
1629            throw se;
1630        }
1631    }
1632
1633    public static void updateOrganizations(HttpPrincipal httpPrincipal,
1634        long userId, long[] organizationIds)
1635        throws com.liferay.portal.PortalException,
1636            com.liferay.portal.SystemException {
1637        try {
1638            Object paramObj0 = new LongWrapper(userId);
1639
1640            Object paramObj1 = organizationIds;
1641
1642            if (organizationIds == null) {
1643                paramObj1 = new NullWrapper("[J");
1644            }
1645
1646            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1647                    "updateOrganizations", new Object[] { paramObj0, paramObj1 });
1648
1649            try {
1650                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1651            }
1652            catch (Exception e) {
1653                if (e instanceof com.liferay.portal.PortalException) {
1654                    throw (com.liferay.portal.PortalException)e;
1655                }
1656
1657                if (e instanceof com.liferay.portal.SystemException) {
1658                    throw (com.liferay.portal.SystemException)e;
1659                }
1660
1661                throw new com.liferay.portal.SystemException(e);
1662            }
1663        }
1664        catch (com.liferay.portal.SystemException se) {
1665            _log.error(se, se);
1666
1667            throw se;
1668        }
1669    }
1670
1671    public static com.liferay.portal.model.User updatePassword(
1672        HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1673        java.lang.String password2, boolean passwordReset)
1674        throws com.liferay.portal.PortalException,
1675            com.liferay.portal.SystemException {
1676        try {
1677            Object paramObj0 = new LongWrapper(userId);
1678
1679            Object paramObj1 = password1;
1680
1681            if (password1 == null) {
1682                paramObj1 = new NullWrapper("java.lang.String");
1683            }
1684
1685            Object paramObj2 = password2;
1686
1687            if (password2 == null) {
1688                paramObj2 = new NullWrapper("java.lang.String");
1689            }
1690
1691            Object paramObj3 = new BooleanWrapper(passwordReset);
1692
1693            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1694                    "updatePassword",
1695                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1696
1697            Object returnObj = null;
1698
1699            try {
1700                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1701            }
1702            catch (Exception e) {
1703                if (e instanceof com.liferay.portal.PortalException) {
1704                    throw (com.liferay.portal.PortalException)e;
1705                }
1706
1707                if (e instanceof com.liferay.portal.SystemException) {
1708                    throw (com.liferay.portal.SystemException)e;
1709                }
1710
1711                throw new com.liferay.portal.SystemException(e);
1712            }
1713
1714            return (com.liferay.portal.model.User)returnObj;
1715        }
1716        catch (com.liferay.portal.SystemException se) {
1717            _log.error(se, se);
1718
1719            throw se;
1720        }
1721    }
1722
1723    public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1724        byte[] bytes)
1725        throws com.liferay.portal.PortalException,
1726            com.liferay.portal.SystemException {
1727        try {
1728            Object paramObj0 = new LongWrapper(userId);
1729
1730            Object paramObj1 = bytes;
1731
1732            if (bytes == null) {
1733                paramObj1 = new NullWrapper("[B");
1734            }
1735
1736            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1737                    "updatePortrait", new Object[] { paramObj0, paramObj1 });
1738
1739            try {
1740                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1741            }
1742            catch (Exception e) {
1743                if (e instanceof com.liferay.portal.PortalException) {
1744                    throw (com.liferay.portal.PortalException)e;
1745                }
1746
1747                if (e instanceof com.liferay.portal.SystemException) {
1748                    throw (com.liferay.portal.SystemException)e;
1749                }
1750
1751                throw new com.liferay.portal.SystemException(e);
1752            }
1753        }
1754        catch (com.liferay.portal.SystemException se) {
1755            _log.error(se, se);
1756
1757            throw se;
1758        }
1759    }
1760
1761    public static void updateReminderQuery(HttpPrincipal httpPrincipal,
1762        long userId, java.lang.String question, java.lang.String answer)
1763        throws com.liferay.portal.PortalException,
1764            com.liferay.portal.SystemException {
1765        try {
1766            Object paramObj0 = new LongWrapper(userId);
1767
1768            Object paramObj1 = question;
1769
1770            if (question == null) {
1771                paramObj1 = new NullWrapper("java.lang.String");
1772            }
1773
1774            Object paramObj2 = answer;
1775
1776            if (answer == null) {
1777                paramObj2 = new NullWrapper("java.lang.String");
1778            }
1779
1780            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1781                    "updateReminderQuery",
1782                    new Object[] { paramObj0, paramObj1, paramObj2 });
1783
1784            try {
1785                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1786            }
1787            catch (Exception e) {
1788                if (e instanceof com.liferay.portal.PortalException) {
1789                    throw (com.liferay.portal.PortalException)e;
1790                }
1791
1792                if (e instanceof com.liferay.portal.SystemException) {
1793                    throw (com.liferay.portal.SystemException)e;
1794                }
1795
1796                throw new com.liferay.portal.SystemException(e);
1797            }
1798        }
1799        catch (com.liferay.portal.SystemException se) {
1800            _log.error(se, se);
1801
1802            throw se;
1803        }
1804    }
1805
1806    public static void updateScreenName(HttpPrincipal httpPrincipal,
1807        long userId, java.lang.String screenName)
1808        throws com.liferay.portal.PortalException,
1809            com.liferay.portal.SystemException {
1810        try {
1811            Object paramObj0 = new LongWrapper(userId);
1812
1813            Object paramObj1 = screenName;
1814
1815            if (screenName == null) {
1816                paramObj1 = new NullWrapper("java.lang.String");
1817            }
1818
1819            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1820                    "updateScreenName", new Object[] { paramObj0, paramObj1 });
1821
1822            try {
1823                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1824            }
1825            catch (Exception e) {
1826                if (e instanceof com.liferay.portal.PortalException) {
1827                    throw (com.liferay.portal.PortalException)e;
1828                }
1829
1830                if (e instanceof com.liferay.portal.SystemException) {
1831                    throw (com.liferay.portal.SystemException)e;
1832                }
1833
1834                throw new com.liferay.portal.SystemException(e);
1835            }
1836        }
1837        catch (com.liferay.portal.SystemException se) {
1838            _log.error(se, se);
1839
1840            throw se;
1841        }
1842    }
1843
1844    public static com.liferay.portal.model.User updateUser(
1845        HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1846        java.lang.String newPassword1, java.lang.String newPassword2,
1847        boolean passwordReset, java.lang.String reminderQueryQuestion,
1848        java.lang.String reminderQueryAnswer, java.lang.String screenName,
1849        java.lang.String emailAddress, java.lang.String openId,
1850        java.lang.String languageId, java.lang.String timeZoneId,
1851        java.lang.String greeting, java.lang.String comments,
1852        java.lang.String firstName, java.lang.String middleName,
1853        java.lang.String lastName, int prefixId, int suffixId, boolean male,
1854        int birthdayMonth, int birthdayDay, int birthdayYear,
1855        java.lang.String smsSn, java.lang.String aimSn,
1856        java.lang.String facebookSn, java.lang.String icqSn,
1857        java.lang.String jabberSn, java.lang.String msnSn,
1858        java.lang.String mySpaceSn, java.lang.String skypeSn,
1859        java.lang.String twitterSn, java.lang.String ymSn,
1860        java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1861        long[] roleIds,
1862        java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1863        long[] userGroupIds,
1864        com.liferay.portal.service.ServiceContext serviceContext)
1865        throws com.liferay.portal.PortalException,
1866            com.liferay.portal.SystemException {
1867        try {
1868            Object paramObj0 = new LongWrapper(userId);
1869
1870            Object paramObj1 = oldPassword;
1871
1872            if (oldPassword == null) {
1873                paramObj1 = new NullWrapper("java.lang.String");
1874            }
1875
1876            Object paramObj2 = newPassword1;
1877
1878            if (newPassword1 == null) {
1879                paramObj2 = new NullWrapper("java.lang.String");
1880            }
1881
1882            Object paramObj3 = newPassword2;
1883
1884            if (newPassword2 == null) {
1885                paramObj3 = new NullWrapper("java.lang.String");
1886            }
1887
1888            Object paramObj4 = new BooleanWrapper(passwordReset);
1889
1890            Object paramObj5 = reminderQueryQuestion;
1891
1892            if (reminderQueryQuestion == null) {
1893                paramObj5 = new NullWrapper("java.lang.String");
1894            }
1895
1896            Object paramObj6 = reminderQueryAnswer;
1897
1898            if (reminderQueryAnswer == null) {
1899                paramObj6 = new NullWrapper("java.lang.String");
1900            }
1901
1902            Object paramObj7 = screenName;
1903
1904            if (screenName == null) {
1905                paramObj7 = new NullWrapper("java.lang.String");
1906            }
1907
1908            Object paramObj8 = emailAddress;
1909
1910            if (emailAddress == null) {
1911                paramObj8 = new NullWrapper("java.lang.String");
1912            }
1913
1914            Object paramObj9 = openId;
1915
1916            if (openId == null) {
1917                paramObj9 = new NullWrapper("java.lang.String");
1918            }
1919
1920            Object paramObj10 = languageId;
1921
1922            if (languageId == null) {
1923                paramObj10 = new NullWrapper("java.lang.String");
1924            }
1925
1926            Object paramObj11 = timeZoneId;
1927
1928            if (timeZoneId == null) {
1929                paramObj11 = new NullWrapper("java.lang.String");
1930            }
1931
1932            Object paramObj12 = greeting;
1933
1934            if (greeting == null) {
1935                paramObj12 = new NullWrapper("java.lang.String");
1936            }
1937
1938            Object paramObj13 = comments;
1939
1940            if (comments == null) {
1941                paramObj13 = new NullWrapper("java.lang.String");
1942            }
1943
1944            Object paramObj14 = firstName;
1945
1946            if (firstName == null) {
1947                paramObj14 = new NullWrapper("java.lang.String");
1948            }
1949
1950            Object paramObj15 = middleName;
1951
1952            if (middleName == null) {
1953                paramObj15 = new NullWrapper("java.lang.String");
1954            }
1955
1956            Object paramObj16 = lastName;
1957
1958            if (lastName == null) {
1959                paramObj16 = new NullWrapper("java.lang.String");
1960            }
1961
1962            Object paramObj17 = new IntegerWrapper(prefixId);
1963
1964            Object paramObj18 = new IntegerWrapper(suffixId);
1965
1966            Object paramObj19 = new BooleanWrapper(male);
1967
1968            Object paramObj20 = new IntegerWrapper(birthdayMonth);
1969
1970            Object paramObj21 = new IntegerWrapper(birthdayDay);
1971
1972            Object paramObj22 = new IntegerWrapper(birthdayYear);
1973
1974            Object paramObj23 = smsSn;
1975
1976            if (smsSn == null) {
1977                paramObj23 = new NullWrapper("java.lang.String");
1978            }
1979
1980            Object paramObj24 = aimSn;
1981
1982            if (aimSn == null) {
1983                paramObj24 = new NullWrapper("java.lang.String");
1984            }
1985
1986            Object paramObj25 = facebookSn;
1987
1988            if (facebookSn == null) {
1989                paramObj25 = new NullWrapper("java.lang.String");
1990            }
1991
1992            Object paramObj26 = icqSn;
1993
1994            if (icqSn == null) {
1995                paramObj26 = new NullWrapper("java.lang.String");
1996            }
1997
1998            Object paramObj27 = jabberSn;
1999
2000            if (jabberSn == null) {
2001                paramObj27 = new NullWrapper("java.lang.String");
2002            }
2003
2004            Object paramObj28 = msnSn;
2005
2006            if (msnSn == null) {
2007                paramObj28 = new NullWrapper("java.lang.String");
2008            }
2009
2010            Object paramObj29 = mySpaceSn;
2011
2012            if (mySpaceSn == null) {
2013                paramObj29 = new NullWrapper("java.lang.String");
2014            }
2015
2016            Object paramObj30 = skypeSn;
2017
2018            if (skypeSn == null) {
2019                paramObj30 = new NullWrapper("java.lang.String");
2020            }
2021
2022            Object paramObj31 = twitterSn;
2023
2024            if (twitterSn == null) {
2025                paramObj31 = new NullWrapper("java.lang.String");
2026            }
2027
2028            Object paramObj32 = ymSn;
2029
2030            if (ymSn == null) {
2031                paramObj32 = new NullWrapper("java.lang.String");
2032            }
2033
2034            Object paramObj33 = jobTitle;
2035
2036            if (jobTitle == null) {
2037                paramObj33 = new NullWrapper("java.lang.String");
2038            }
2039
2040            Object paramObj34 = groupIds;
2041
2042            if (groupIds == null) {
2043                paramObj34 = new NullWrapper("[J");
2044            }
2045
2046            Object paramObj35 = organizationIds;
2047
2048            if (organizationIds == null) {
2049                paramObj35 = new NullWrapper("[J");
2050            }
2051
2052            Object paramObj36 = roleIds;
2053
2054            if (roleIds == null) {
2055                paramObj36 = new NullWrapper("[J");
2056            }
2057
2058            Object paramObj37 = userGroupRoles;
2059
2060            if (userGroupRoles == null) {
2061                paramObj37 = new NullWrapper("java.util.List");
2062            }
2063
2064            Object paramObj38 = userGroupIds;
2065
2066            if (userGroupIds == null) {
2067                paramObj38 = new NullWrapper("[J");
2068            }
2069
2070            Object paramObj39 = serviceContext;
2071
2072            if (serviceContext == null) {
2073                paramObj39 = new NullWrapper(
2074                        "com.liferay.portal.service.ServiceContext");
2075            }
2076
2077            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2078                    "updateUser",
2079                    new Object[] {
2080                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2081                        paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2082                        paramObj10, paramObj11, paramObj12, paramObj13,
2083                        paramObj14, paramObj15, paramObj16, paramObj17,
2084                        paramObj18, paramObj19, paramObj20, paramObj21,
2085                        paramObj22, paramObj23, paramObj24, paramObj25,
2086                        paramObj26, paramObj27, paramObj28, paramObj29,
2087                        paramObj30, paramObj31, paramObj32, paramObj33,
2088                        paramObj34, paramObj35, paramObj36, paramObj37,
2089                        paramObj38, paramObj39
2090                    });
2091
2092            Object returnObj = null;
2093
2094            try {
2095                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2096            }
2097            catch (Exception e) {
2098                if (e instanceof com.liferay.portal.PortalException) {
2099                    throw (com.liferay.portal.PortalException)e;
2100                }
2101
2102                if (e instanceof com.liferay.portal.SystemException) {
2103                    throw (com.liferay.portal.SystemException)e;
2104                }
2105
2106                throw new com.liferay.portal.SystemException(e);
2107            }
2108
2109            return (com.liferay.portal.model.User)returnObj;
2110        }
2111        catch (com.liferay.portal.SystemException se) {
2112            _log.error(se, se);
2113
2114            throw se;
2115        }
2116    }
2117
2118    public static com.liferay.portal.model.User updateUser(
2119        HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
2120        java.lang.String newPassword1, java.lang.String newPassword2,
2121        boolean passwordReset, java.lang.String reminderQueryQuestion,
2122        java.lang.String reminderQueryAnswer, java.lang.String screenName,
2123        java.lang.String emailAddress, java.lang.String openId,
2124        java.lang.String languageId, java.lang.String timeZoneId,
2125        java.lang.String greeting, java.lang.String comments,
2126        java.lang.String firstName, java.lang.String middleName,
2127        java.lang.String lastName, int prefixId, int suffixId, boolean male,
2128        int birthdayMonth, int birthdayDay, int birthdayYear,
2129        java.lang.String smsSn, java.lang.String aimSn,
2130        java.lang.String facebookSn, java.lang.String icqSn,
2131        java.lang.String jabberSn, java.lang.String msnSn,
2132        java.lang.String mySpaceSn, java.lang.String skypeSn,
2133        java.lang.String twitterSn, java.lang.String ymSn,
2134        java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
2135        long[] roleIds,
2136        java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
2137        long[] userGroupIds,
2138        java.util.List<com.liferay.portal.model.Address> addresses,
2139        java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
2140        java.util.List<com.liferay.portal.model.Phone> phones,
2141        java.util.List<com.liferay.portal.model.Website> websites,
2142        java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
2143        com.liferay.portal.service.ServiceContext serviceContext)
2144        throws com.liferay.portal.PortalException,
2145            com.liferay.portal.SystemException {
2146        try {
2147            Object paramObj0 = new LongWrapper(userId);
2148
2149            Object paramObj1 = oldPassword;
2150
2151            if (oldPassword == null) {
2152                paramObj1 = new NullWrapper("java.lang.String");
2153            }
2154
2155            Object paramObj2 = newPassword1;
2156
2157            if (newPassword1 == null) {
2158                paramObj2 = new NullWrapper("java.lang.String");
2159            }
2160
2161            Object paramObj3 = newPassword2;
2162
2163            if (newPassword2 == null) {
2164                paramObj3 = new NullWrapper("java.lang.String");
2165            }
2166
2167            Object paramObj4 = new BooleanWrapper(passwordReset);
2168
2169            Object paramObj5 = reminderQueryQuestion;
2170
2171            if (reminderQueryQuestion == null) {
2172                paramObj5 = new NullWrapper("java.lang.String");
2173            }
2174
2175            Object paramObj6 = reminderQueryAnswer;
2176
2177            if (reminderQueryAnswer == null) {
2178                paramObj6 = new NullWrapper("java.lang.String");
2179            }
2180
2181            Object paramObj7 = screenName;
2182
2183            if (screenName == null) {
2184                paramObj7 = new NullWrapper("java.lang.String");
2185            }
2186
2187            Object paramObj8 = emailAddress;
2188
2189            if (emailAddress == null) {
2190                paramObj8 = new NullWrapper("java.lang.String");
2191            }
2192
2193            Object paramObj9 = openId;
2194
2195            if (openId == null) {
2196                paramObj9 = new NullWrapper("java.lang.String");
2197            }
2198
2199            Object paramObj10 = languageId;
2200
2201            if (languageId == null) {
2202                paramObj10 = new NullWrapper("java.lang.String");
2203            }
2204
2205            Object paramObj11 = timeZoneId;
2206
2207            if (timeZoneId == null) {
2208                paramObj11 = new NullWrapper("java.lang.String");
2209            }
2210
2211            Object paramObj12 = greeting;
2212
2213            if (greeting == null) {
2214                paramObj12 = new NullWrapper("java.lang.String");
2215            }
2216
2217            Object paramObj13 = comments;
2218
2219            if (comments == null) {
2220                paramObj13 = new NullWrapper("java.lang.String");
2221            }
2222
2223            Object paramObj14 = firstName;
2224
2225            if (firstName == null) {
2226                paramObj14 = new NullWrapper("java.lang.String");
2227            }
2228
2229            Object paramObj15 = middleName;
2230
2231            if (middleName == null) {
2232                paramObj15 = new NullWrapper("java.lang.String");
2233            }
2234
2235            Object paramObj16 = lastName;
2236
2237            if (lastName == null) {
2238                paramObj16 = new NullWrapper("java.lang.String");
2239            }
2240
2241            Object paramObj17 = new IntegerWrapper(prefixId);
2242
2243            Object paramObj18 = new IntegerWrapper(suffixId);
2244
2245            Object paramObj19 = new BooleanWrapper(male);
2246
2247            Object paramObj20 = new IntegerWrapper(birthdayMonth);
2248
2249            Object paramObj21 = new IntegerWrapper(birthdayDay);
2250
2251            Object paramObj22 = new IntegerWrapper(birthdayYear);
2252
2253            Object paramObj23 = smsSn;
2254
2255            if (smsSn == null) {
2256                paramObj23 = new NullWrapper("java.lang.String");
2257            }
2258
2259            Object paramObj24 = aimSn;
2260
2261            if (aimSn == null) {
2262                paramObj24 = new NullWrapper("java.lang.String");
2263            }
2264
2265            Object paramObj25 = facebookSn;
2266
2267            if (facebookSn == null) {
2268                paramObj25 = new NullWrapper("java.lang.String");
2269            }
2270
2271            Object paramObj26 = icqSn;
2272
2273            if (icqSn == null) {
2274                paramObj26 = new NullWrapper("java.lang.String");
2275            }
2276
2277            Object paramObj27 = jabberSn;
2278
2279            if (jabberSn == null) {
2280                paramObj27 = new NullWrapper("java.lang.String");
2281            }
2282
2283            Object paramObj28 = msnSn;
2284
2285            if (msnSn == null) {
2286                paramObj28 = new NullWrapper("java.lang.String");
2287            }
2288
2289            Object paramObj29 = mySpaceSn;
2290
2291            if (mySpaceSn == null) {
2292                paramObj29 = new NullWrapper("java.lang.String");
2293            }
2294
2295            Object paramObj30 = skypeSn;
2296
2297            if (skypeSn == null) {
2298                paramObj30 = new NullWrapper("java.lang.String");
2299            }
2300
2301            Object paramObj31 = twitterSn;
2302
2303            if (twitterSn == null) {
2304                paramObj31 = new NullWrapper("java.lang.String");
2305            }
2306
2307            Object paramObj32 = ymSn;
2308
2309            if (ymSn == null) {
2310                paramObj32 = new NullWrapper("java.lang.String");
2311            }
2312
2313            Object paramObj33 = jobTitle;
2314
2315            if (jobTitle == null) {
2316                paramObj33 = new NullWrapper("java.lang.String");
2317            }
2318
2319            Object paramObj34 = groupIds;
2320
2321            if (groupIds == null) {
2322                paramObj34 = new NullWrapper("[J");
2323            }
2324
2325            Object paramObj35 = organizationIds;
2326
2327            if (organizationIds == null) {
2328                paramObj35 = new NullWrapper("[J");
2329            }
2330
2331            Object paramObj36 = roleIds;
2332
2333            if (roleIds == null) {
2334                paramObj36 = new NullWrapper("[J");
2335            }
2336
2337            Object paramObj37 = userGroupRoles;
2338
2339            if (userGroupRoles == null) {
2340                paramObj37 = new NullWrapper("java.util.List");
2341            }
2342
2343            Object paramObj38 = userGroupIds;
2344
2345            if (userGroupIds == null) {
2346                paramObj38 = new NullWrapper("[J");
2347            }
2348
2349            Object paramObj39 = addresses;
2350
2351            if (addresses == null) {
2352                paramObj39 = new NullWrapper("java.util.List");
2353            }
2354
2355            Object paramObj40 = emailAddresses;
2356
2357            if (emailAddresses == null) {
2358                paramObj40 = new NullWrapper("java.util.List");
2359            }
2360
2361            Object paramObj41 = phones;
2362
2363            if (phones == null) {
2364                paramObj41 = new NullWrapper("java.util.List");
2365            }
2366
2367            Object paramObj42 = websites;
2368
2369            if (websites == null) {
2370                paramObj42 = new NullWrapper("java.util.List");
2371            }
2372
2373            Object paramObj43 = announcementsDelivers;
2374
2375            if (announcementsDelivers == null) {
2376                paramObj43 = new NullWrapper("java.util.List");
2377            }
2378
2379            Object paramObj44 = serviceContext;
2380
2381            if (serviceContext == null) {
2382                paramObj44 = new NullWrapper(
2383                        "com.liferay.portal.service.ServiceContext");
2384            }
2385
2386            MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2387                    "updateUser",
2388                    new Object[] {
2389                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2390                        paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2391                        paramObj10, paramObj11, paramObj12, paramObj13,
2392                        paramObj14, paramObj15, paramObj16, paramObj17,
2393                        paramObj18, paramObj19, paramObj20, paramObj21,
2394                        paramObj22, paramObj23, paramObj24, paramObj25,
2395                        paramObj26, paramObj27, paramObj28, paramObj29,
2396                        paramObj30, paramObj31, paramObj32, paramObj33,
2397                        paramObj34, paramObj35, paramObj36, paramObj37,
2398                        paramObj38, paramObj39, paramObj40, paramObj41,
2399                        paramObj42, paramObj43, paramObj44
2400                    });
2401
2402            Object returnObj = null;
2403
2404            try {
2405                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2406            }
2407            catch (Exception e) {
2408                if (e instanceof com.liferay.portal.PortalException) {
2409                    throw (com.liferay.portal.PortalException)e;
2410                }
2411
2412                if (e instanceof com.liferay.portal.SystemException) {
2413                    throw (com.liferay.portal.SystemException)e;
2414                }
2415
2416                throw new com.liferay.portal.SystemException(e);
2417            }
2418
2419            return (com.liferay.portal.model.User)returnObj;
2420        }
2421        catch (com.liferay.portal.SystemException se) {
2422            _log.error(se, se);
2423
2424            throw se;
2425        }
2426    }
2427
2428    private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
2429}