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