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