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