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