1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
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.kernel.exception.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.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          getService().deleteUser(userId);
54      }
55  
56      public static void deleteUser(com.liferay.portal.model.User user)
57          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.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)
81          throws com.liferay.portal.kernel.exception.SystemException {
82          return getService().getUsers(start, end);
83      }
84  
85      public static int getUsersCount()
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().getUsersCount();
88      }
89  
90      public static com.liferay.portal.model.User updateUser(
91          com.liferay.portal.model.User user)
92          throws com.liferay.portal.kernel.exception.SystemException {
93          return getService().updateUser(user);
94      }
95  
96      public static com.liferay.portal.model.User updateUser(
97          com.liferay.portal.model.User user, boolean merge)
98          throws com.liferay.portal.kernel.exception.SystemException {
99          return getService().updateUser(user, merge);
100     }
101 
102     public static void addDefaultGroups(long userId)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException {
105         getService().addDefaultGroups(userId);
106     }
107 
108     public static void addDefaultRoles(long userId)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         getService().addDefaultRoles(userId);
112     }
113 
114     public static void addDefaultUserGroups(long userId)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException {
117         getService().addDefaultUserGroups(userId);
118     }
119 
120     public static void addGroupUsers(long groupId, long[] userIds)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException {
123         getService().addGroupUsers(groupId, userIds);
124     }
125 
126     public static void addOrganizationUsers(long organizationId, long[] userIds)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         getService().addOrganizationUsers(organizationId, userIds);
130     }
131 
132     public static void addPasswordPolicyUsers(long passwordPolicyId,
133         long[] userIds)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         getService().addPasswordPolicyUsers(passwordPolicyId, userIds);
136     }
137 
138     public static void addRoleUsers(long roleId, long[] userIds)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         getService().addRoleUsers(roleId, 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.lang.String openId, java.util.Locale locale,
149         java.lang.String firstName, java.lang.String middleName,
150         java.lang.String lastName, int prefixId, int suffixId, boolean male,
151         int birthdayMonth, int birthdayDay, int birthdayYear,
152         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
153         long[] roleIds, long[] userGroupIds, boolean sendEmail,
154         com.liferay.portal.service.ServiceContext serviceContext)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException {
157         return getService()
158                    .addUser(creatorUserId, companyId, autoPassword, password1,
159             password2, autoScreenName, screenName, emailAddress, openId,
160             locale, firstName, middleName, lastName, prefixId, suffixId, male,
161             birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds,
162             organizationIds, roleIds, userGroupIds, sendEmail, serviceContext);
163     }
164 
165     public static void addUserGroupUsers(long userGroupId, long[] userIds)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException {
168         getService().addUserGroupUsers(userGroupId, userIds);
169     }
170 
171     public static int authenticateByEmailAddress(long companyId,
172         java.lang.String emailAddress, java.lang.String password,
173         java.util.Map<String, String[]> headerMap,
174         java.util.Map<String, String[]> parameterMap)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException {
177         return getService()
178                    .authenticateByEmailAddress(companyId, emailAddress,
179             password, headerMap, parameterMap);
180     }
181 
182     public static int authenticateByScreenName(long companyId,
183         java.lang.String screenName, java.lang.String password,
184         java.util.Map<String, String[]> headerMap,
185         java.util.Map<String, String[]> parameterMap)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         return getService()
189                    .authenticateByScreenName(companyId, screenName, password,
190             headerMap, parameterMap);
191     }
192 
193     public static int authenticateByUserId(long companyId, long userId,
194         java.lang.String password, java.util.Map<String, String[]> headerMap,
195         java.util.Map<String, String[]> parameterMap)
196         throws com.liferay.portal.kernel.exception.PortalException,
197             com.liferay.portal.kernel.exception.SystemException {
198         return getService()
199                    .authenticateByUserId(companyId, userId, password,
200             headerMap, parameterMap);
201     }
202 
203     public static long authenticateForBasic(long companyId,
204         java.lang.String authType, java.lang.String login,
205         java.lang.String password)
206         throws com.liferay.portal.kernel.exception.PortalException,
207             com.liferay.portal.kernel.exception.SystemException {
208         return getService()
209                    .authenticateForBasic(companyId, authType, login, password);
210     }
211 
212     public static boolean authenticateForJAAS(long userId,
213         java.lang.String encPassword) {
214         return getService().authenticateForJAAS(userId, encPassword);
215     }
216 
217     public static void checkLockout(com.liferay.portal.model.User user)
218         throws com.liferay.portal.kernel.exception.PortalException,
219             com.liferay.portal.kernel.exception.SystemException {
220         getService().checkLockout(user);
221     }
222 
223     public static void checkLoginFailure(com.liferay.portal.model.User user)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         getService().checkLoginFailure(user);
226     }
227 
228     public static void checkLoginFailureByEmailAddress(long companyId,
229         java.lang.String emailAddress)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException {
232         getService().checkLoginFailureByEmailAddress(companyId, emailAddress);
233     }
234 
235     public static void checkLoginFailureById(long userId)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException {
238         getService().checkLoginFailureById(userId);
239     }
240 
241     public static void checkLoginFailureByScreenName(long companyId,
242         java.lang.String screenName)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         getService().checkLoginFailureByScreenName(companyId, screenName);
246     }
247 
248     public static void checkPasswordExpired(com.liferay.portal.model.User user)
249         throws com.liferay.portal.kernel.exception.PortalException,
250             com.liferay.portal.kernel.exception.SystemException {
251         getService().checkPasswordExpired(user);
252     }
253 
254     public static void clearOrganizationUsers(long organizationId)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         getService().clearOrganizationUsers(organizationId);
257     }
258 
259     public static void clearUserGroupUsers(long userGroupId)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         getService().clearUserGroupUsers(userGroupId);
262     }
263 
264     public static com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
265         long companyId, java.lang.String name, java.lang.String password)
266         throws com.liferay.portal.kernel.exception.PortalException,
267             com.liferay.portal.kernel.exception.SystemException {
268         return getService().decryptUserId(companyId, name, password);
269     }
270 
271     public static void deletePasswordPolicyUser(long passwordPolicyId,
272         long userId) throws com.liferay.portal.kernel.exception.SystemException {
273         getService().deletePasswordPolicyUser(passwordPolicyId, userId);
274     }
275 
276     public static void deletePortrait(long userId)
277         throws com.liferay.portal.kernel.exception.PortalException,
278             com.liferay.portal.kernel.exception.SystemException {
279         getService().deletePortrait(userId);
280     }
281 
282     public static void deleteRoleUser(long roleId, long userId)
283         throws com.liferay.portal.kernel.exception.SystemException {
284         getService().deleteRoleUser(roleId, userId);
285     }
286 
287     public static java.lang.String encryptUserId(java.lang.String name)
288         throws com.liferay.portal.kernel.exception.PortalException,
289             com.liferay.portal.kernel.exception.SystemException {
290         return getService().encryptUserId(name);
291     }
292 
293     public static java.util.List<com.liferay.portal.model.User> getCompanyUsers(
294         long companyId, int start, int end)
295         throws com.liferay.portal.kernel.exception.SystemException {
296         return getService().getCompanyUsers(companyId, start, end);
297     }
298 
299     public static int getCompanyUsersCount(long companyId)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return getService().getCompanyUsersCount(companyId);
302     }
303 
304     public static com.liferay.portal.model.User getDefaultUser(long companyId)
305         throws com.liferay.portal.kernel.exception.PortalException,
306             com.liferay.portal.kernel.exception.SystemException {
307         return getService().getDefaultUser(companyId);
308     }
309 
310     public static long getDefaultUserId(long companyId)
311         throws com.liferay.portal.kernel.exception.PortalException,
312             com.liferay.portal.kernel.exception.SystemException {
313         return getService().getDefaultUserId(companyId);
314     }
315 
316     public static long[] getGroupUserIds(long groupId)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return getService().getGroupUserIds(groupId);
319     }
320 
321     public static java.util.List<com.liferay.portal.model.User> getGroupUsers(
322         long groupId)
323         throws com.liferay.portal.kernel.exception.SystemException {
324         return getService().getGroupUsers(groupId);
325     }
326 
327     public static int getGroupUsersCount(long groupId)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getService().getGroupUsersCount(groupId);
330     }
331 
332     public static int getGroupUsersCount(long groupId, boolean active)
333         throws com.liferay.portal.kernel.exception.PortalException,
334             com.liferay.portal.kernel.exception.SystemException {
335         return getService().getGroupUsersCount(groupId, active);
336     }
337 
338     public static java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
339         java.lang.String type)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return getService().getNoAnnouncementsDeliveries(type);
342     }
343 
344     public static java.util.List<com.liferay.portal.model.User> getNoContacts()
345         throws com.liferay.portal.kernel.exception.SystemException {
346         return getService().getNoContacts();
347     }
348 
349     public static java.util.List<com.liferay.portal.model.User> getNoGroups()
350         throws com.liferay.portal.kernel.exception.SystemException {
351         return getService().getNoGroups();
352     }
353 
354     public static long[] getOrganizationUserIds(long organizationId)
355         throws com.liferay.portal.kernel.exception.SystemException {
356         return getService().getOrganizationUserIds(organizationId);
357     }
358 
359     public static java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
360         long organizationId)
361         throws com.liferay.portal.kernel.exception.SystemException {
362         return getService().getOrganizationUsers(organizationId);
363     }
364 
365     public static int getOrganizationUsersCount(long organizationId)
366         throws com.liferay.portal.kernel.exception.SystemException {
367         return getService().getOrganizationUsersCount(organizationId);
368     }
369 
370     public static int getOrganizationUsersCount(long organizationId,
371         boolean active)
372         throws com.liferay.portal.kernel.exception.PortalException,
373             com.liferay.portal.kernel.exception.SystemException {
374         return getService().getOrganizationUsersCount(organizationId, active);
375     }
376 
377     public static long[] getRoleUserIds(long roleId)
378         throws com.liferay.portal.kernel.exception.SystemException {
379         return getService().getRoleUserIds(roleId);
380     }
381 
382     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
383         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
384         return getService().getRoleUsers(roleId);
385     }
386 
387     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
388         long roleId, int start, int end)
389         throws com.liferay.portal.kernel.exception.SystemException {
390         return getService().getRoleUsers(roleId, start, end);
391     }
392 
393     public static int getRoleUsersCount(long roleId)
394         throws com.liferay.portal.kernel.exception.SystemException {
395         return getService().getRoleUsersCount(roleId);
396     }
397 
398     public static int getRoleUsersCount(long roleId, boolean active)
399         throws com.liferay.portal.kernel.exception.PortalException,
400             com.liferay.portal.kernel.exception.SystemException {
401         return getService().getRoleUsersCount(roleId, active);
402     }
403 
404     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
405         long userId, int type, int start, int end,
406         com.liferay.portal.kernel.util.OrderByComparator obc)
407         throws com.liferay.portal.kernel.exception.PortalException,
408             com.liferay.portal.kernel.exception.SystemException {
409         return getService().getSocialUsers(userId, type, start, end, obc);
410     }
411 
412     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
413         long userId, int start, int end,
414         com.liferay.portal.kernel.util.OrderByComparator obc)
415         throws com.liferay.portal.kernel.exception.PortalException,
416             com.liferay.portal.kernel.exception.SystemException {
417         return getService().getSocialUsers(userId, start, end, obc);
418     }
419 
420     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
421         long userId1, long userId2, int type, int start, int end,
422         com.liferay.portal.kernel.util.OrderByComparator obc)
423         throws com.liferay.portal.kernel.exception.PortalException,
424             com.liferay.portal.kernel.exception.SystemException {
425         return getService()
426                    .getSocialUsers(userId1, userId2, type, start, end, obc);
427     }
428 
429     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
430         long userId1, long userId2, int start, int end,
431         com.liferay.portal.kernel.util.OrderByComparator obc)
432         throws com.liferay.portal.kernel.exception.PortalException,
433             com.liferay.portal.kernel.exception.SystemException {
434         return getService().getSocialUsers(userId1, userId2, start, end, obc);
435     }
436 
437     public static int getSocialUsersCount(long userId)
438         throws com.liferay.portal.kernel.exception.PortalException,
439             com.liferay.portal.kernel.exception.SystemException {
440         return getService().getSocialUsersCount(userId);
441     }
442 
443     public static int getSocialUsersCount(long userId, int type)
444         throws com.liferay.portal.kernel.exception.PortalException,
445             com.liferay.portal.kernel.exception.SystemException {
446         return getService().getSocialUsersCount(userId, type);
447     }
448 
449     public static int getSocialUsersCount(long userId1, long userId2)
450         throws com.liferay.portal.kernel.exception.PortalException,
451             com.liferay.portal.kernel.exception.SystemException {
452         return getService().getSocialUsersCount(userId1, userId2);
453     }
454 
455     public static int getSocialUsersCount(long userId1, long userId2, int type)
456         throws com.liferay.portal.kernel.exception.PortalException,
457             com.liferay.portal.kernel.exception.SystemException {
458         return getService().getSocialUsersCount(userId1, userId2, type);
459     }
460 
461     public static com.liferay.portal.model.User getUserByContactId(
462         long contactId)
463         throws com.liferay.portal.kernel.exception.PortalException,
464             com.liferay.portal.kernel.exception.SystemException {
465         return getService().getUserByContactId(contactId);
466     }
467 
468     public static com.liferay.portal.model.User getUserByEmailAddress(
469         long companyId, java.lang.String emailAddress)
470         throws com.liferay.portal.kernel.exception.PortalException,
471             com.liferay.portal.kernel.exception.SystemException {
472         return getService().getUserByEmailAddress(companyId, emailAddress);
473     }
474 
475     public static com.liferay.portal.model.User getUserById(long userId)
476         throws com.liferay.portal.kernel.exception.PortalException,
477             com.liferay.portal.kernel.exception.SystemException {
478         return getService().getUserById(userId);
479     }
480 
481     public static com.liferay.portal.model.User getUserById(long companyId,
482         long userId)
483         throws com.liferay.portal.kernel.exception.PortalException,
484             com.liferay.portal.kernel.exception.SystemException {
485         return getService().getUserById(companyId, userId);
486     }
487 
488     public static com.liferay.portal.model.User getUserByOpenId(
489         java.lang.String openId)
490         throws com.liferay.portal.kernel.exception.PortalException,
491             com.liferay.portal.kernel.exception.SystemException {
492         return getService().getUserByOpenId(openId);
493     }
494 
495     public static com.liferay.portal.model.User getUserByPortraitId(
496         long portraitId)
497         throws com.liferay.portal.kernel.exception.PortalException,
498             com.liferay.portal.kernel.exception.SystemException {
499         return getService().getUserByPortraitId(portraitId);
500     }
501 
502     public static com.liferay.portal.model.User getUserByScreenName(
503         long companyId, java.lang.String screenName)
504         throws com.liferay.portal.kernel.exception.PortalException,
505             com.liferay.portal.kernel.exception.SystemException {
506         return getService().getUserByScreenName(companyId, screenName);
507     }
508 
509     public static com.liferay.portal.model.User getUserByUuid(
510         java.lang.String uuid)
511         throws com.liferay.portal.kernel.exception.PortalException,
512             com.liferay.portal.kernel.exception.SystemException {
513         return getService().getUserByUuid(uuid);
514     }
515 
516     public static java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
517         long userGroupId)
518         throws com.liferay.portal.kernel.exception.SystemException {
519         return getService().getUserGroupUsers(userGroupId);
520     }
521 
522     public static int getUserGroupUsersCount(long userGroupId)
523         throws com.liferay.portal.kernel.exception.SystemException {
524         return getService().getUserGroupUsersCount(userGroupId);
525     }
526 
527     public static int getUserGroupUsersCount(long userGroupId, boolean active)
528         throws com.liferay.portal.kernel.exception.PortalException,
529             com.liferay.portal.kernel.exception.SystemException {
530         return getService().getUserGroupUsersCount(userGroupId, active);
531     }
532 
533     public static long getUserIdByEmailAddress(long companyId,
534         java.lang.String emailAddress)
535         throws com.liferay.portal.kernel.exception.PortalException,
536             com.liferay.portal.kernel.exception.SystemException {
537         return getService().getUserIdByEmailAddress(companyId, emailAddress);
538     }
539 
540     public static long getUserIdByScreenName(long companyId,
541         java.lang.String screenName)
542         throws com.liferay.portal.kernel.exception.PortalException,
543             com.liferay.portal.kernel.exception.SystemException {
544         return getService().getUserIdByScreenName(companyId, screenName);
545     }
546 
547     public static boolean hasGroupUser(long groupId, long userId)
548         throws com.liferay.portal.kernel.exception.SystemException {
549         return getService().hasGroupUser(groupId, userId);
550     }
551 
552     public static boolean hasOrganizationUser(long organizationId, long userId)
553         throws com.liferay.portal.kernel.exception.SystemException {
554         return getService().hasOrganizationUser(organizationId, userId);
555     }
556 
557     public static boolean hasPasswordPolicyUser(long passwordPolicyId,
558         long userId) throws com.liferay.portal.kernel.exception.SystemException {
559         return getService().hasPasswordPolicyUser(passwordPolicyId, userId);
560     }
561 
562     public static boolean hasRoleUser(long roleId, long userId)
563         throws com.liferay.portal.kernel.exception.SystemException {
564         return getService().hasRoleUser(roleId, userId);
565     }
566 
567     public static boolean hasRoleUser(long companyId, java.lang.String name,
568         long userId, boolean inherited)
569         throws com.liferay.portal.kernel.exception.PortalException,
570             com.liferay.portal.kernel.exception.SystemException {
571         return getService().hasRoleUser(companyId, name, userId, inherited);
572     }
573 
574     public static boolean hasUserGroupUser(long userGroupId, long userId)
575         throws com.liferay.portal.kernel.exception.SystemException {
576         return getService().hasUserGroupUser(userGroupId, userId);
577     }
578 
579     public static boolean isPasswordExpired(com.liferay.portal.model.User user)
580         throws com.liferay.portal.kernel.exception.PortalException,
581             com.liferay.portal.kernel.exception.SystemException {
582         return getService().isPasswordExpired(user);
583     }
584 
585     public static boolean isPasswordExpiringSoon(
586         com.liferay.portal.model.User user)
587         throws com.liferay.portal.kernel.exception.PortalException,
588             com.liferay.portal.kernel.exception.SystemException {
589         return getService().isPasswordExpiringSoon(user);
590     }
591 
592     public static java.util.List<com.liferay.portal.model.User> search(
593         long companyId, java.lang.String keywords, java.lang.Boolean active,
594         java.util.LinkedHashMap<String, Object> params, int start, int end,
595         com.liferay.portal.kernel.util.OrderByComparator obc)
596         throws com.liferay.portal.kernel.exception.SystemException {
597         return getService()
598                    .search(companyId, keywords, active, params, start, end, obc);
599     }
600 
601     public static com.liferay.portal.kernel.search.Hits search(long companyId,
602         java.lang.String keywords, java.lang.Boolean active,
603         java.util.LinkedHashMap<String, Object> params, int start, int end,
604         com.liferay.portal.kernel.search.Sort sort)
605         throws com.liferay.portal.kernel.exception.SystemException {
606         return getService()
607                    .search(companyId, keywords, active, params, start, end, sort);
608     }
609 
610     public static java.util.List<com.liferay.portal.model.User> search(
611         long companyId, java.lang.String firstName,
612         java.lang.String middleName, java.lang.String lastName,
613         java.lang.String screenName, java.lang.String emailAddress,
614         java.lang.Boolean active,
615         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
616         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
617         throws com.liferay.portal.kernel.exception.SystemException {
618         return getService()
619                    .search(companyId, firstName, middleName, lastName,
620             screenName, emailAddress, active, params, andSearch, start, end, obc);
621     }
622 
623     public static com.liferay.portal.kernel.search.Hits search(long companyId,
624         java.lang.String firstName, java.lang.String middleName,
625         java.lang.String lastName, java.lang.String screenName,
626         java.lang.String emailAddress, java.lang.Boolean active,
627         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
628         int start, int end, com.liferay.portal.kernel.search.Sort sort)
629         throws com.liferay.portal.kernel.exception.SystemException {
630         return getService()
631                    .search(companyId, firstName, middleName, lastName,
632             screenName, emailAddress, active, params, andSearch, start, end,
633             sort);
634     }
635 
636     public static int searchCount(long companyId, java.lang.String keywords,
637         java.lang.Boolean active, java.util.LinkedHashMap<String, Object> params)
638         throws com.liferay.portal.kernel.exception.SystemException {
639         return getService().searchCount(companyId, keywords, active, params);
640     }
641 
642     public static int searchCount(long companyId, java.lang.String firstName,
643         java.lang.String middleName, java.lang.String lastName,
644         java.lang.String screenName, java.lang.String emailAddress,
645         java.lang.Boolean active,
646         java.util.LinkedHashMap<String, Object> params, boolean andSearch)
647         throws com.liferay.portal.kernel.exception.SystemException {
648         return getService()
649                    .searchCount(companyId, firstName, middleName, lastName,
650             screenName, emailAddress, active, params, andSearch);
651     }
652 
653     public static void sendPassword(long companyId,
654         java.lang.String emailAddress, java.lang.String remoteAddr,
655         java.lang.String remoteHost, java.lang.String userAgent,
656         java.lang.String fromName, java.lang.String fromAddress,
657         java.lang.String subject, java.lang.String body)
658         throws com.liferay.portal.kernel.exception.PortalException,
659             com.liferay.portal.kernel.exception.SystemException {
660         getService()
661             .sendPassword(companyId, emailAddress, remoteAddr, remoteHost,
662             userAgent, fromName, fromAddress, subject, body);
663     }
664 
665     public static void setRoleUsers(long roleId, long[] userIds)
666         throws com.liferay.portal.kernel.exception.PortalException,
667             com.liferay.portal.kernel.exception.SystemException {
668         getService().setRoleUsers(roleId, userIds);
669     }
670 
671     public static void setUserGroupUsers(long userGroupId, long[] userIds)
672         throws com.liferay.portal.kernel.exception.PortalException,
673             com.liferay.portal.kernel.exception.SystemException {
674         getService().setUserGroupUsers(userGroupId, userIds);
675     }
676 
677     public static void unsetGroupUsers(long groupId, long[] userIds)
678         throws com.liferay.portal.kernel.exception.PortalException,
679             com.liferay.portal.kernel.exception.SystemException {
680         getService().unsetGroupUsers(groupId, userIds);
681     }
682 
683     public static void unsetOrganizationUsers(long organizationId,
684         long[] userIds)
685         throws com.liferay.portal.kernel.exception.PortalException,
686             com.liferay.portal.kernel.exception.SystemException {
687         getService().unsetOrganizationUsers(organizationId, userIds);
688     }
689 
690     public static void unsetPasswordPolicyUsers(long passwordPolicyId,
691         long[] userIds)
692         throws com.liferay.portal.kernel.exception.SystemException {
693         getService().unsetPasswordPolicyUsers(passwordPolicyId, userIds);
694     }
695 
696     public static void unsetRoleUsers(long roleId,
697         java.util.List<com.liferay.portal.model.User> users)
698         throws com.liferay.portal.kernel.exception.PortalException,
699             com.liferay.portal.kernel.exception.SystemException {
700         getService().unsetRoleUsers(roleId, users);
701     }
702 
703     public static void unsetRoleUsers(long roleId, long[] userIds)
704         throws com.liferay.portal.kernel.exception.PortalException,
705             com.liferay.portal.kernel.exception.SystemException {
706         getService().unsetRoleUsers(roleId, userIds);
707     }
708 
709     public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
710         throws com.liferay.portal.kernel.exception.PortalException,
711             com.liferay.portal.kernel.exception.SystemException {
712         getService().unsetUserGroupUsers(userGroupId, userIds);
713     }
714 
715     public static com.liferay.portal.model.User updateActive(long userId,
716         boolean active)
717         throws com.liferay.portal.kernel.exception.PortalException,
718             com.liferay.portal.kernel.exception.SystemException {
719         return getService().updateActive(userId, active);
720     }
721 
722     public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
723         long userId, boolean agreedToTermsOfUse)
724         throws com.liferay.portal.kernel.exception.PortalException,
725             com.liferay.portal.kernel.exception.SystemException {
726         return getService().updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
727     }
728 
729     public static void updateAsset(long userId,
730         com.liferay.portal.model.User user, long[] assetCategoryIds,
731         java.lang.String[] assetTagNames)
732         throws com.liferay.portal.kernel.exception.PortalException,
733             com.liferay.portal.kernel.exception.SystemException {
734         getService().updateAsset(userId, user, assetCategoryIds, assetTagNames);
735     }
736 
737     public static com.liferay.portal.model.User updateCreateDate(long userId,
738         java.util.Date createDate)
739         throws com.liferay.portal.kernel.exception.PortalException,
740             com.liferay.portal.kernel.exception.SystemException {
741         return getService().updateCreateDate(userId, createDate);
742     }
743 
744     public static com.liferay.portal.model.User updateEmailAddress(
745         long userId, java.lang.String password, java.lang.String emailAddress1,
746         java.lang.String emailAddress2)
747         throws com.liferay.portal.kernel.exception.PortalException,
748             com.liferay.portal.kernel.exception.SystemException {
749         return getService()
750                    .updateEmailAddress(userId, password, emailAddress1,
751             emailAddress2);
752     }
753 
754     public static void updateGroups(long userId, long[] newGroupIds)
755         throws com.liferay.portal.kernel.exception.PortalException,
756             com.liferay.portal.kernel.exception.SystemException {
757         getService().updateGroups(userId, newGroupIds);
758     }
759 
760     public static com.liferay.portal.model.User updateLastLogin(long userId,
761         java.lang.String loginIP)
762         throws com.liferay.portal.kernel.exception.PortalException,
763             com.liferay.portal.kernel.exception.SystemException {
764         return getService().updateLastLogin(userId, loginIP);
765     }
766 
767     public static com.liferay.portal.model.User updateLockout(
768         com.liferay.portal.model.User user, boolean lockout)
769         throws com.liferay.portal.kernel.exception.PortalException,
770             com.liferay.portal.kernel.exception.SystemException {
771         return getService().updateLockout(user, lockout);
772     }
773 
774     public static com.liferay.portal.model.User updateLockoutByEmailAddress(
775         long companyId, java.lang.String emailAddress, boolean lockout)
776         throws com.liferay.portal.kernel.exception.PortalException,
777             com.liferay.portal.kernel.exception.SystemException {
778         return getService()
779                    .updateLockoutByEmailAddress(companyId, emailAddress, lockout);
780     }
781 
782     public static com.liferay.portal.model.User updateLockoutById(long userId,
783         boolean lockout)
784         throws com.liferay.portal.kernel.exception.PortalException,
785             com.liferay.portal.kernel.exception.SystemException {
786         return getService().updateLockoutById(userId, lockout);
787     }
788 
789     public static com.liferay.portal.model.User updateLockoutByScreenName(
790         long companyId, java.lang.String screenName, boolean lockout)
791         throws com.liferay.portal.kernel.exception.PortalException,
792             com.liferay.portal.kernel.exception.SystemException {
793         return getService()
794                    .updateLockoutByScreenName(companyId, screenName, lockout);
795     }
796 
797     public static com.liferay.portal.model.User updateModifiedDate(
798         long userId, java.util.Date modifiedDate)
799         throws com.liferay.portal.kernel.exception.PortalException,
800             com.liferay.portal.kernel.exception.SystemException {
801         return getService().updateModifiedDate(userId, modifiedDate);
802     }
803 
804     public static void updateOpenId(long userId, java.lang.String openId)
805         throws com.liferay.portal.kernel.exception.PortalException,
806             com.liferay.portal.kernel.exception.SystemException {
807         getService().updateOpenId(userId, openId);
808     }
809 
810     public static void updateOrganizations(long userId,
811         long[] newOrganizationIds)
812         throws com.liferay.portal.kernel.exception.PortalException,
813             com.liferay.portal.kernel.exception.SystemException {
814         getService().updateOrganizations(userId, newOrganizationIds);
815     }
816 
817     public static com.liferay.portal.model.User updatePassword(long userId,
818         java.lang.String password1, java.lang.String password2,
819         boolean passwordReset)
820         throws com.liferay.portal.kernel.exception.PortalException,
821             com.liferay.portal.kernel.exception.SystemException {
822         return getService()
823                    .updatePassword(userId, password1, password2, passwordReset);
824     }
825 
826     public static com.liferay.portal.model.User updatePassword(long userId,
827         java.lang.String password1, java.lang.String password2,
828         boolean passwordReset, boolean silentUpdate)
829         throws com.liferay.portal.kernel.exception.PortalException,
830             com.liferay.portal.kernel.exception.SystemException {
831         return getService()
832                    .updatePassword(userId, password1, password2, passwordReset,
833             silentUpdate);
834     }
835 
836     public static com.liferay.portal.model.User updatePasswordManually(
837         long userId, java.lang.String password, boolean passwordEncrypted,
838         boolean passwordReset, java.util.Date passwordModifiedDate)
839         throws com.liferay.portal.kernel.exception.PortalException,
840             com.liferay.portal.kernel.exception.SystemException {
841         return getService()
842                    .updatePasswordManually(userId, password, passwordEncrypted,
843             passwordReset, passwordModifiedDate);
844     }
845 
846     public static void updatePasswordReset(long userId, boolean passwordReset)
847         throws com.liferay.portal.kernel.exception.PortalException,
848             com.liferay.portal.kernel.exception.SystemException {
849         getService().updatePasswordReset(userId, passwordReset);
850     }
851 
852     public static void updatePortrait(long userId, byte[] bytes)
853         throws com.liferay.portal.kernel.exception.PortalException,
854             com.liferay.portal.kernel.exception.SystemException {
855         getService().updatePortrait(userId, bytes);
856     }
857 
858     public static void updateReminderQuery(long userId,
859         java.lang.String question, java.lang.String answer)
860         throws com.liferay.portal.kernel.exception.PortalException,
861             com.liferay.portal.kernel.exception.SystemException {
862         getService().updateReminderQuery(userId, question, answer);
863     }
864 
865     public static void updateScreenName(long userId, java.lang.String screenName)
866         throws com.liferay.portal.kernel.exception.PortalException,
867             com.liferay.portal.kernel.exception.SystemException {
868         getService().updateScreenName(userId, screenName);
869     }
870 
871     public static com.liferay.portal.model.User updateUser(long userId,
872         java.lang.String oldPassword, java.lang.String newPassword1,
873         java.lang.String newPassword2, boolean passwordReset,
874         java.lang.String reminderQueryQuestion,
875         java.lang.String reminderQueryAnswer, java.lang.String screenName,
876         java.lang.String emailAddress, java.lang.String openId,
877         java.lang.String languageId, java.lang.String timeZoneId,
878         java.lang.String greeting, java.lang.String comments,
879         java.lang.String firstName, java.lang.String middleName,
880         java.lang.String lastName, int prefixId, int suffixId, boolean male,
881         int birthdayMonth, int birthdayDay, int birthdayYear,
882         java.lang.String smsSn, java.lang.String aimSn,
883         java.lang.String facebookSn, java.lang.String icqSn,
884         java.lang.String jabberSn, java.lang.String msnSn,
885         java.lang.String mySpaceSn, java.lang.String skypeSn,
886         java.lang.String twitterSn, java.lang.String ymSn,
887         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
888         long[] roleIds,
889         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
890         long[] userGroupIds,
891         com.liferay.portal.service.ServiceContext serviceContext)
892         throws com.liferay.portal.kernel.exception.PortalException,
893             com.liferay.portal.kernel.exception.SystemException {
894         return getService()
895                    .updateUser(userId, oldPassword, newPassword1, newPassword2,
896             passwordReset, reminderQueryQuestion, reminderQueryAnswer,
897             screenName, emailAddress, openId, languageId, timeZoneId, greeting,
898             comments, firstName, middleName, lastName, prefixId, suffixId,
899             male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
900             facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn,
901             ymSn, jobTitle, groupIds, organizationIds, roleIds, userGroupRoles,
902             userGroupIds, serviceContext);
903     }
904 
905     public static UserLocalService getService() {
906         if (_service == null) {
907             _service = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName());
908         }
909 
910         return _service;
911     }
912 
913     public void setService(UserLocalService service) {
914         _service = service;
915     }
916 
917     private static UserLocalService _service;
918 }