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