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;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="UserLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link UserLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       UserLocalService
37   * @generated
38   */
39  public class UserLocalServiceUtil {
40      public static com.liferay.portal.model.User addUser(
41          com.liferay.portal.model.User user)
42          throws com.liferay.portal.SystemException {
43          return getService().addUser(user);
44      }
45  
46      public static com.liferay.portal.model.User createUser(long userId) {
47          return getService().createUser(userId);
48      }
49  
50      public static void deleteUser(long userId)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          getService().deleteUser(userId);
54      }
55  
56      public static void deleteUser(com.liferay.portal.model.User user)
57          throws com.liferay.portal.SystemException {
58          getService().deleteUser(user);
59      }
60  
61      public static java.util.List<Object> dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.SystemException {
64          return getService().dynamicQuery(dynamicQuery);
65      }
66  
67      public static java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException {
70          return getService().dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      public static com.liferay.portal.model.User getUser(long userId)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException {
76          return getService().getUser(userId);
77      }
78  
79      public static java.util.List<com.liferay.portal.model.User> getUsers(
80          int start, int end) throws com.liferay.portal.SystemException {
81          return getService().getUsers(start, end);
82      }
83  
84      public static int getUsersCount() throws com.liferay.portal.SystemException {
85          return getService().getUsersCount();
86      }
87  
88      public static com.liferay.portal.model.User updateUser(
89          com.liferay.portal.model.User user)
90          throws com.liferay.portal.SystemException {
91          return getService().updateUser(user);
92      }
93  
94      public static com.liferay.portal.model.User updateUser(
95          com.liferay.portal.model.User user, boolean merge)
96          throws com.liferay.portal.SystemException {
97          return getService().updateUser(user, merge);
98      }
99  
100     public static void addDefaultGroups(long userId)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException {
103         getService().addDefaultGroups(userId);
104     }
105 
106     public static void addDefaultRoles(long userId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         getService().addDefaultRoles(userId);
110     }
111 
112     public static void addDefaultUserGroups(long userId)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         getService().addDefaultUserGroups(userId);
116     }
117 
118     public static void addGroupUsers(long groupId, long[] userIds)
119         throws com.liferay.portal.SystemException {
120         getService().addGroupUsers(groupId, userIds);
121     }
122 
123     public static void addOrganizationUsers(long organizationId, long[] userIds)
124         throws com.liferay.portal.SystemException {
125         getService().addOrganizationUsers(organizationId, userIds);
126     }
127 
128     public static void addPasswordPolicyUsers(long passwordPolicyId,
129         long[] userIds) throws com.liferay.portal.SystemException {
130         getService().addPasswordPolicyUsers(passwordPolicyId, userIds);
131     }
132 
133     public static void addRoleUsers(long roleId, long[] userIds)
134         throws com.liferay.portal.SystemException {
135         getService().addRoleUsers(roleId, userIds);
136     }
137 
138     public static void addUserGroupUsers(long userGroupId, long[] userIds)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         getService().addUserGroupUsers(userGroupId, userIds);
142     }
143 
144     public static com.liferay.portal.model.User addUser(long creatorUserId,
145         long companyId, boolean autoPassword, java.lang.String password1,
146         java.lang.String password2, boolean autoScreenName,
147         java.lang.String screenName, java.lang.String emailAddress,
148         java.util.Locale locale, java.lang.String firstName,
149         java.lang.String middleName, java.lang.String lastName, int prefixId,
150         int suffixId, boolean male, int birthdayMonth, int birthdayDay,
151         int birthdayYear, java.lang.String jobTitle, long[] organizationIds,
152         boolean sendEmail)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException {
155         return getService()
156                    .addUser(creatorUserId, companyId, autoPassword, password1,
157             password2, autoScreenName, screenName, emailAddress, locale,
158             firstName, middleName, lastName, prefixId, suffixId, male,
159             birthdayMonth, birthdayDay, birthdayYear, jobTitle,
160             organizationIds, sendEmail);
161     }
162 
163     public static int authenticateByEmailAddress(long companyId,
164         java.lang.String emailAddress, java.lang.String password,
165         java.util.Map<String, String[]> headerMap,
166         java.util.Map<String, String[]> parameterMap)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         return getService()
170                    .authenticateByEmailAddress(companyId, emailAddress,
171             password, headerMap, parameterMap);
172     }
173 
174     public static int authenticateByScreenName(long companyId,
175         java.lang.String screenName, java.lang.String password,
176         java.util.Map<String, String[]> headerMap,
177         java.util.Map<String, String[]> parameterMap)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException {
180         return getService()
181                    .authenticateByScreenName(companyId, screenName, password,
182             headerMap, parameterMap);
183     }
184 
185     public static int authenticateByUserId(long companyId, long userId,
186         java.lang.String password, java.util.Map<String, String[]> headerMap,
187         java.util.Map<String, String[]> parameterMap)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         return getService()
191                    .authenticateByUserId(companyId, userId, password,
192             headerMap, parameterMap);
193     }
194 
195     public static long authenticateForBasic(long companyId,
196         java.lang.String authType, java.lang.String login,
197         java.lang.String password)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException {
200         return getService()
201                    .authenticateForBasic(companyId, authType, login, password);
202     }
203 
204     public static boolean authenticateForJAAS(long userId,
205         java.lang.String encPassword) {
206         return getService().authenticateForJAAS(userId, encPassword);
207     }
208 
209     public static void checkLockout(com.liferay.portal.model.User user)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException {
212         getService().checkLockout(user);
213     }
214 
215     public static void checkLoginFailure(com.liferay.portal.model.User user)
216         throws com.liferay.portal.SystemException {
217         getService().checkLoginFailure(user);
218     }
219 
220     public static void checkLoginFailureByEmailAddress(long companyId,
221         java.lang.String emailAddress)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         getService().checkLoginFailureByEmailAddress(companyId, emailAddress);
225     }
226 
227     public static void checkLoginFailureById(long userId)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         getService().checkLoginFailureById(userId);
231     }
232 
233     public static void checkLoginFailureByScreenName(long companyId,
234         java.lang.String screenName)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         getService().checkLoginFailureByScreenName(companyId, screenName);
238     }
239 
240     public static void checkPasswordExpired(com.liferay.portal.model.User user)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException {
243         getService().checkPasswordExpired(user);
244     }
245 
246     public static void clearOrganizationUsers(long organizationId)
247         throws com.liferay.portal.SystemException {
248         getService().clearOrganizationUsers(organizationId);
249     }
250 
251     public static void clearUserGroupUsers(long userGroupId)
252         throws com.liferay.portal.SystemException {
253         getService().clearUserGroupUsers(userGroupId);
254     }
255 
256     public static com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
257         long companyId, java.lang.String name, java.lang.String password)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return getService().decryptUserId(companyId, name, password);
261     }
262 
263     public static void deletePasswordPolicyUser(long passwordPolicyId,
264         long userId) throws com.liferay.portal.SystemException {
265         getService().deletePasswordPolicyUser(passwordPolicyId, userId);
266     }
267 
268     public static void deleteRoleUser(long roleId, long userId)
269         throws com.liferay.portal.SystemException {
270         getService().deleteRoleUser(roleId, userId);
271     }
272 
273     public static java.lang.String encryptUserId(java.lang.String name)
274         throws com.liferay.portal.PortalException,
275             com.liferay.portal.SystemException {
276         return getService().encryptUserId(name);
277     }
278 
279     public static com.liferay.portal.model.User getDefaultUser(long companyId)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         return getService().getDefaultUser(companyId);
283     }
284 
285     public static long getDefaultUserId(long companyId)
286         throws com.liferay.portal.PortalException,
287             com.liferay.portal.SystemException {
288         return getService().getDefaultUserId(companyId);
289     }
290 
291     public static long[] getGroupUserIds(long groupId)
292         throws com.liferay.portal.SystemException {
293         return getService().getGroupUserIds(groupId);
294     }
295 
296     public static java.util.List<com.liferay.portal.model.User> getGroupUsers(
297         long groupId) throws com.liferay.portal.SystemException {
298         return getService().getGroupUsers(groupId);
299     }
300 
301     public static int getGroupUsersCount(long groupId)
302         throws com.liferay.portal.SystemException {
303         return getService().getGroupUsersCount(groupId);
304     }
305 
306     public static int getGroupUsersCount(long groupId, boolean active)
307         throws com.liferay.portal.PortalException,
308             com.liferay.portal.SystemException {
309         return getService().getGroupUsersCount(groupId, active);
310     }
311 
312     public static java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
313         java.lang.String type) throws com.liferay.portal.SystemException {
314         return getService().getNoAnnouncementsDeliveries(type);
315     }
316 
317     public static java.util.List<com.liferay.portal.model.User> getNoContacts()
318         throws com.liferay.portal.SystemException {
319         return getService().getNoContacts();
320     }
321 
322     public static java.util.List<com.liferay.portal.model.User> getNoGroups()
323         throws com.liferay.portal.SystemException {
324         return getService().getNoGroups();
325     }
326 
327     public static long[] getOrganizationUserIds(long organizationId)
328         throws com.liferay.portal.SystemException {
329         return getService().getOrganizationUserIds(organizationId);
330     }
331 
332     public static java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
333         long organizationId) throws com.liferay.portal.SystemException {
334         return getService().getOrganizationUsers(organizationId);
335     }
336 
337     public static int getOrganizationUsersCount(long organizationId)
338         throws com.liferay.portal.SystemException {
339         return getService().getOrganizationUsersCount(organizationId);
340     }
341 
342     public static int getOrganizationUsersCount(long organizationId,
343         boolean active)
344         throws com.liferay.portal.PortalException,
345             com.liferay.portal.SystemException {
346         return getService().getOrganizationUsersCount(organizationId, active);
347     }
348 
349     public static long[] getRoleUserIds(long roleId)
350         throws com.liferay.portal.SystemException {
351         return getService().getRoleUserIds(roleId);
352     }
353 
354     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
355         long roleId) throws com.liferay.portal.SystemException {
356         return getService().getRoleUsers(roleId);
357     }
358 
359     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
360         long roleId, int start, int end)
361         throws com.liferay.portal.SystemException {
362         return getService().getRoleUsers(roleId, start, end);
363     }
364 
365     public static int getRoleUsersCount(long roleId)
366         throws com.liferay.portal.SystemException {
367         return getService().getRoleUsersCount(roleId);
368     }
369 
370     public static int getRoleUsersCount(long roleId, boolean active)
371         throws com.liferay.portal.PortalException,
372             com.liferay.portal.SystemException {
373         return getService().getRoleUsersCount(roleId, active);
374     }
375 
376     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
377         long userId, int start, int end,
378         com.liferay.portal.kernel.util.OrderByComparator obc)
379         throws com.liferay.portal.PortalException,
380             com.liferay.portal.SystemException {
381         return getService().getSocialUsers(userId, start, end, obc);
382     }
383 
384     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
385         long userId, int type, int start, int end,
386         com.liferay.portal.kernel.util.OrderByComparator obc)
387         throws com.liferay.portal.PortalException,
388             com.liferay.portal.SystemException {
389         return getService().getSocialUsers(userId, type, start, end, obc);
390     }
391 
392     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
393         long userId1, long userId2, int start, int end,
394         com.liferay.portal.kernel.util.OrderByComparator obc)
395         throws com.liferay.portal.PortalException,
396             com.liferay.portal.SystemException {
397         return getService().getSocialUsers(userId1, userId2, start, end, obc);
398     }
399 
400     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
401         long userId1, long userId2, int type, int start, int end,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.PortalException,
404             com.liferay.portal.SystemException {
405         return getService()
406                    .getSocialUsers(userId1, userId2, type, start, end, obc);
407     }
408 
409     public static int getSocialUsersCount(long userId)
410         throws com.liferay.portal.PortalException,
411             com.liferay.portal.SystemException {
412         return getService().getSocialUsersCount(userId);
413     }
414 
415     public static int getSocialUsersCount(long userId, int type)
416         throws com.liferay.portal.PortalException,
417             com.liferay.portal.SystemException {
418         return getService().getSocialUsersCount(userId, type);
419     }
420 
421     public static int getSocialUsersCount(long userId1, long userId2)
422         throws com.liferay.portal.PortalException,
423             com.liferay.portal.SystemException {
424         return getService().getSocialUsersCount(userId1, userId2);
425     }
426 
427     public static int getSocialUsersCount(long userId1, long userId2, int type)
428         throws com.liferay.portal.PortalException,
429             com.liferay.portal.SystemException {
430         return getService().getSocialUsersCount(userId1, userId2, type);
431     }
432 
433     public static java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
434         long userGroupId) throws com.liferay.portal.SystemException {
435         return getService().getUserGroupUsers(userGroupId);
436     }
437 
438     public static int getUserGroupUsersCount(long userGroupId)
439         throws com.liferay.portal.SystemException {
440         return getService().getUserGroupUsersCount(userGroupId);
441     }
442 
443     public static int getUserGroupUsersCount(long userGroupId, boolean active)
444         throws com.liferay.portal.PortalException,
445             com.liferay.portal.SystemException {
446         return getService().getUserGroupUsersCount(userGroupId, active);
447     }
448 
449     public static com.liferay.portal.model.User getUserByContactId(
450         long contactId)
451         throws com.liferay.portal.PortalException,
452             com.liferay.portal.SystemException {
453         return getService().getUserByContactId(contactId);
454     }
455 
456     public static com.liferay.portal.model.User getUserByEmailAddress(
457         long companyId, java.lang.String emailAddress)
458         throws com.liferay.portal.PortalException,
459             com.liferay.portal.SystemException {
460         return getService().getUserByEmailAddress(companyId, emailAddress);
461     }
462 
463     public static com.liferay.portal.model.User getUserById(long userId)
464         throws com.liferay.portal.PortalException,
465             com.liferay.portal.SystemException {
466         return getService().getUserById(userId);
467     }
468 
469     public static com.liferay.portal.model.User getUserById(long companyId,
470         long userId)
471         throws com.liferay.portal.PortalException,
472             com.liferay.portal.SystemException {
473         return getService().getUserById(companyId, userId);
474     }
475 
476     public static com.liferay.portal.model.User getUserByOpenId(
477         java.lang.String openId)
478         throws com.liferay.portal.PortalException,
479             com.liferay.portal.SystemException {
480         return getService().getUserByOpenId(openId);
481     }
482 
483     public static com.liferay.portal.model.User getUserByPortraitId(
484         long portraitId)
485         throws com.liferay.portal.PortalException,
486             com.liferay.portal.SystemException {
487         return getService().getUserByPortraitId(portraitId);
488     }
489 
490     public static com.liferay.portal.model.User getUserByScreenName(
491         long companyId, java.lang.String screenName)
492         throws com.liferay.portal.PortalException,
493             com.liferay.portal.SystemException {
494         return getService().getUserByScreenName(companyId, screenName);
495     }
496 
497     public static long getUserIdByEmailAddress(long companyId,
498         java.lang.String emailAddress)
499         throws com.liferay.portal.PortalException,
500             com.liferay.portal.SystemException {
501         return getService().getUserIdByEmailAddress(companyId, emailAddress);
502     }
503 
504     public static long getUserIdByScreenName(long companyId,
505         java.lang.String screenName)
506         throws com.liferay.portal.PortalException,
507             com.liferay.portal.SystemException {
508         return getService().getUserIdByScreenName(companyId, screenName);
509     }
510 
511     public static boolean hasGroupUser(long groupId, long userId)
512         throws com.liferay.portal.SystemException {
513         return getService().hasGroupUser(groupId, userId);
514     }
515 
516     public static boolean hasOrganizationUser(long organizationId, long userId)
517         throws com.liferay.portal.SystemException {
518         return getService().hasOrganizationUser(organizationId, userId);
519     }
520 
521     public static boolean hasPasswordPolicyUser(long passwordPolicyId,
522         long userId) throws com.liferay.portal.SystemException {
523         return getService().hasPasswordPolicyUser(passwordPolicyId, userId);
524     }
525 
526     public static boolean hasRoleUser(long roleId, long userId)
527         throws com.liferay.portal.SystemException {
528         return getService().hasRoleUser(roleId, userId);
529     }
530 
531     public static boolean hasRoleUser(long companyId, java.lang.String name,
532         long userId, boolean inherited)
533         throws com.liferay.portal.PortalException,
534             com.liferay.portal.SystemException {
535         return getService().hasRoleUser(companyId, name, userId, inherited);
536     }
537 
538     public static boolean hasUserGroupUser(long userGroupId, long userId)
539         throws com.liferay.portal.SystemException {
540         return getService().hasUserGroupUser(userGroupId, userId);
541     }
542 
543     public static boolean isPasswordExpired(com.liferay.portal.model.User user)
544         throws com.liferay.portal.PortalException,
545             com.liferay.portal.SystemException {
546         return getService().isPasswordExpired(user);
547     }
548 
549     public static boolean isPasswordExpiringSoon(
550         com.liferay.portal.model.User user)
551         throws com.liferay.portal.PortalException,
552             com.liferay.portal.SystemException {
553         return getService().isPasswordExpiringSoon(user);
554     }
555 
556     public static java.util.List<com.liferay.portal.model.User> search(
557         long companyId, java.lang.String keywords, java.lang.Boolean active,
558         java.util.LinkedHashMap<String, Object> params, int start, int end,
559         com.liferay.portal.kernel.util.OrderByComparator obc)
560         throws com.liferay.portal.SystemException {
561         return getService()
562                    .search(companyId, keywords, active, params, start, end, obc);
563     }
564 
565     public static java.util.List<com.liferay.portal.model.User> search(
566         long companyId, java.lang.String firstName,
567         java.lang.String middleName, java.lang.String lastName,
568         java.lang.String screenName, java.lang.String emailAddress,
569         java.lang.Boolean active,
570         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
571         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
572         throws com.liferay.portal.SystemException {
573         return getService()
574                    .search(companyId, firstName, middleName, lastName,
575             screenName, emailAddress, active, params, andSearch, start, end, obc);
576     }
577 
578     public static int searchCount(long companyId, java.lang.String keywords,
579         java.lang.Boolean active, java.util.LinkedHashMap<String, Object> params)
580         throws com.liferay.portal.SystemException {
581         return getService().searchCount(companyId, keywords, active, params);
582     }
583 
584     public static int searchCount(long companyId, java.lang.String firstName,
585         java.lang.String middleName, java.lang.String lastName,
586         java.lang.String screenName, java.lang.String emailAddress,
587         java.lang.Boolean active,
588         java.util.LinkedHashMap<String, Object> params, boolean andSearch)
589         throws com.liferay.portal.SystemException {
590         return getService()
591                    .searchCount(companyId, firstName, middleName, lastName,
592             screenName, emailAddress, active, params, andSearch);
593     }
594 
595     public static void sendPassword(long companyId,
596         java.lang.String emailAddress, java.lang.String remoteAddr,
597         java.lang.String remoteHost, java.lang.String userAgent)
598         throws com.liferay.portal.PortalException,
599             com.liferay.portal.SystemException {
600         getService()
601             .sendPassword(companyId, emailAddress, remoteAddr, remoteHost,
602             userAgent);
603     }
604 
605     public static void setRoleUsers(long roleId, long[] userIds)
606         throws com.liferay.portal.SystemException {
607         getService().setRoleUsers(roleId, userIds);
608     }
609 
610     public static void setUserGroupUsers(long userGroupId, long[] userIds)
611         throws com.liferay.portal.PortalException,
612             com.liferay.portal.SystemException {
613         getService().setUserGroupUsers(userGroupId, userIds);
614     }
615 
616     public static void unsetGroupUsers(long groupId, long[] userIds)
617         throws com.liferay.portal.SystemException {
618         getService().unsetGroupUsers(groupId, userIds);
619     }
620 
621     public static void unsetOrganizationUsers(long organizationId,
622         long[] userIds)
623         throws com.liferay.portal.PortalException,
624             com.liferay.portal.SystemException {
625         getService().unsetOrganizationUsers(organizationId, userIds);
626     }
627 
628     public static void unsetPasswordPolicyUsers(long passwordPolicyId,
629         long[] userIds) throws com.liferay.portal.SystemException {
630         getService().unsetPasswordPolicyUsers(passwordPolicyId, userIds);
631     }
632 
633     public static void unsetRoleUsers(long roleId, long[] userIds)
634         throws com.liferay.portal.SystemException {
635         getService().unsetRoleUsers(roleId, userIds);
636     }
637 
638     public static void unsetRoleUsers(long roleId,
639         java.util.List<com.liferay.portal.model.User> users)
640         throws com.liferay.portal.SystemException {
641         getService().unsetRoleUsers(roleId, users);
642     }
643 
644     public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
645         throws com.liferay.portal.SystemException {
646         getService().unsetUserGroupUsers(userGroupId, userIds);
647     }
648 
649     public static com.liferay.portal.model.User updateActive(long userId,
650         boolean active)
651         throws com.liferay.portal.PortalException,
652             com.liferay.portal.SystemException {
653         return getService().updateActive(userId, active);
654     }
655 
656     public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
657         long userId, boolean agreedToTermsOfUse)
658         throws com.liferay.portal.PortalException,
659             com.liferay.portal.SystemException {
660         return getService().updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
661     }
662 
663     public static com.liferay.portal.model.User updateCreateDate(long userId,
664         java.util.Date createDate)
665         throws com.liferay.portal.PortalException,
666             com.liferay.portal.SystemException {
667         return getService().updateCreateDate(userId, createDate);
668     }
669 
670     public static com.liferay.portal.model.User updateLastLogin(long userId,
671         java.lang.String loginIP)
672         throws com.liferay.portal.PortalException,
673             com.liferay.portal.SystemException {
674         return getService().updateLastLogin(userId, loginIP);
675     }
676 
677     public static com.liferay.portal.model.User updateLockout(
678         com.liferay.portal.model.User user, boolean lockout)
679         throws com.liferay.portal.PortalException,
680             com.liferay.portal.SystemException {
681         return getService().updateLockout(user, lockout);
682     }
683 
684     public static com.liferay.portal.model.User updateLockoutByEmailAddress(
685         long companyId, java.lang.String emailAddress, boolean lockout)
686         throws com.liferay.portal.PortalException,
687             com.liferay.portal.SystemException {
688         return getService()
689                    .updateLockoutByEmailAddress(companyId, emailAddress, lockout);
690     }
691 
692     public static com.liferay.portal.model.User updateLockoutById(long userId,
693         boolean lockout)
694         throws com.liferay.portal.PortalException,
695             com.liferay.portal.SystemException {
696         return getService().updateLockoutById(userId, lockout);
697     }
698 
699     public static com.liferay.portal.model.User updateLockoutByScreenName(
700         long companyId, java.lang.String screenName, boolean lockout)
701         throws com.liferay.portal.PortalException,
702             com.liferay.portal.SystemException {
703         return getService()
704                    .updateLockoutByScreenName(companyId, screenName, lockout);
705     }
706 
707     public static com.liferay.portal.model.User updateModifiedDate(
708         long userId, java.util.Date modifiedDate)
709         throws com.liferay.portal.PortalException,
710             com.liferay.portal.SystemException {
711         return getService().updateModifiedDate(userId, modifiedDate);
712     }
713 
714     public static void updateOpenId(long userId, java.lang.String openId)
715         throws com.liferay.portal.PortalException,
716             com.liferay.portal.SystemException {
717         getService().updateOpenId(userId, openId);
718     }
719 
720     public static void updateOrganizations(long userId,
721         long[] newOrganizationIds)
722         throws com.liferay.portal.PortalException,
723             com.liferay.portal.SystemException {
724         getService().updateOrganizations(userId, newOrganizationIds);
725     }
726 
727     public static com.liferay.portal.model.User updatePassword(long userId,
728         java.lang.String password1, java.lang.String password2,
729         boolean passwordReset)
730         throws com.liferay.portal.PortalException,
731             com.liferay.portal.SystemException {
732         return getService()
733                    .updatePassword(userId, password1, password2, passwordReset);
734     }
735 
736     public static com.liferay.portal.model.User updatePassword(long userId,
737         java.lang.String password1, java.lang.String password2,
738         boolean passwordReset, boolean silentUpdate)
739         throws com.liferay.portal.PortalException,
740             com.liferay.portal.SystemException {
741         return getService()
742                    .updatePassword(userId, password1, password2, passwordReset,
743             silentUpdate);
744     }
745 
746     public static com.liferay.portal.model.User updatePasswordManually(
747         long userId, java.lang.String password, boolean passwordEncrypted,
748         boolean passwordReset, java.util.Date passwordModifiedDate)
749         throws com.liferay.portal.PortalException,
750             com.liferay.portal.SystemException {
751         return getService()
752                    .updatePasswordManually(userId, password, passwordEncrypted,
753             passwordReset, passwordModifiedDate);
754     }
755 
756     public static void updatePasswordReset(long userId, boolean passwordReset)
757         throws com.liferay.portal.PortalException,
758             com.liferay.portal.SystemException {
759         getService().updatePasswordReset(userId, passwordReset);
760     }
761 
762     public static void updatePortrait(long userId, byte[] bytes)
763         throws com.liferay.portal.PortalException,
764             com.liferay.portal.SystemException {
765         getService().updatePortrait(userId, bytes);
766     }
767 
768     public static void updateScreenName(long userId, java.lang.String screenName)
769         throws com.liferay.portal.PortalException,
770             com.liferay.portal.SystemException {
771         getService().updateScreenName(userId, screenName);
772     }
773 
774     public static com.liferay.portal.model.User updateUser(long userId,
775         java.lang.String oldPassword, boolean passwordReset,
776         java.lang.String screenName, java.lang.String emailAddress,
777         java.lang.String languageId, java.lang.String timeZoneId,
778         java.lang.String greeting, java.lang.String comments,
779         java.lang.String firstName, java.lang.String middleName,
780         java.lang.String lastName, int prefixId, int suffixId, boolean male,
781         int birthdayMonth, int birthdayDay, int birthdayYear,
782         java.lang.String smsSn, java.lang.String aimSn,
783         java.lang.String facebookSn, java.lang.String icqSn,
784         java.lang.String jabberSn, java.lang.String msnSn,
785         java.lang.String mySpaceSn, java.lang.String skypeSn,
786         java.lang.String twitterSn, java.lang.String ymSn,
787         java.lang.String jobTitle, long[] organizationIds)
788         throws com.liferay.portal.PortalException,
789             com.liferay.portal.SystemException {
790         return getService()
791                    .updateUser(userId, oldPassword, passwordReset, screenName,
792             emailAddress, languageId, timeZoneId, greeting, comments,
793             firstName, middleName, lastName, prefixId, suffixId, male,
794             birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn, facebookSn,
795             icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn, ymSn,
796             jobTitle, organizationIds);
797     }
798 
799     public static com.liferay.portal.model.User updateUser(long userId,
800         java.lang.String oldPassword, java.lang.String newPassword1,
801         java.lang.String newPassword2, boolean passwordReset,
802         java.lang.String screenName, java.lang.String emailAddress,
803         java.lang.String languageId, java.lang.String timeZoneId,
804         java.lang.String greeting, java.lang.String comments,
805         java.lang.String firstName, java.lang.String middleName,
806         java.lang.String lastName, int prefixId, int suffixId, boolean male,
807         int birthdayMonth, int birthdayDay, int birthdayYear,
808         java.lang.String smsSn, java.lang.String aimSn,
809         java.lang.String facebookSn, java.lang.String icqSn,
810         java.lang.String jabberSn, java.lang.String msnSn,
811         java.lang.String mySpaceSn, java.lang.String skypeSn,
812         java.lang.String twitterSn, java.lang.String ymSn,
813         java.lang.String jobTitle, long[] organizationIds)
814         throws com.liferay.portal.PortalException,
815             com.liferay.portal.SystemException {
816         return getService()
817                    .updateUser(userId, oldPassword, newPassword1, newPassword2,
818             passwordReset, screenName, emailAddress, languageId, timeZoneId,
819             greeting, comments, firstName, middleName, lastName, prefixId,
820             suffixId, male, birthdayMonth, birthdayDay, birthdayYear, smsSn,
821             aimSn, facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn,
822             twitterSn, ymSn, jobTitle, organizationIds);
823     }
824 
825     public static UserLocalService getService() {
826         if (_service == null) {
827             _service = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName());
828         }
829 
830         return _service;
831     }
832 
833     public void setService(UserLocalService service) {
834         _service = service;
835     }
836 
837     private static UserLocalService _service;
838 }