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