1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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 java.util.List<com.liferay.portal.model.User> getNoContacts()
318         throws com.liferay.portal.SystemException {
319         return getService().getNoContacts();
320     }
321 
322     public static java.util.List<com.liferay.portal.model.User> getNoGroups()
323         throws com.liferay.portal.SystemException {
324         return getService().getNoGroups();
325     }
326 
327     public static long[] getOrganizationUserIds(long organizationId)
328         throws com.liferay.portal.SystemException {
329         return getService().getOrganizationUserIds(organizationId);
330     }
331 
332     public static java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
333         long organizationId) throws com.liferay.portal.SystemException {
334         return getService().getOrganizationUsers(organizationId);
335     }
336 
337     public static int getOrganizationUsersCount(long organizationId)
338         throws com.liferay.portal.SystemException {
339         return getService().getOrganizationUsersCount(organizationId);
340     }
341 
342     public static int getOrganizationUsersCount(long organizationId,
343         boolean active)
344         throws com.liferay.portal.PortalException,
345             com.liferay.portal.SystemException {
346         return getService().getOrganizationUsersCount(organizationId, active);
347     }
348 
349     public static java.util.List<com.liferay.portal.model.User> getPermissionUsers(
350         long companyId, long groupId, java.lang.String name,
351         java.lang.String primKey, java.lang.String actionId,
352         java.lang.String firstName, java.lang.String middleName,
353         java.lang.String lastName, java.lang.String emailAddress,
354         boolean andOperator, int start, int end)
355         throws com.liferay.portal.SystemException {
356         return getService()
357                    .getPermissionUsers(companyId, groupId, name, primKey,
358             actionId, firstName, middleName, lastName, emailAddress,
359             andOperator, start, end);
360     }
361 
362     public static int getPermissionUsersCount(long companyId, long groupId,
363         java.lang.String name, java.lang.String primKey,
364         java.lang.String actionId, java.lang.String firstName,
365         java.lang.String middleName, java.lang.String lastName,
366         java.lang.String emailAddress, boolean andOperator)
367         throws com.liferay.portal.SystemException {
368         return getService()
369                    .getPermissionUsersCount(companyId, groupId, name, primKey,
370             actionId, firstName, middleName, lastName, emailAddress, andOperator);
371     }
372 
373     public static long[] getRoleUserIds(long roleId)
374         throws com.liferay.portal.SystemException {
375         return getService().getRoleUserIds(roleId);
376     }
377 
378     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
379         long roleId) throws com.liferay.portal.SystemException {
380         return getService().getRoleUsers(roleId);
381     }
382 
383     public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
384         long roleId, int start, int end)
385         throws com.liferay.portal.SystemException {
386         return getService().getRoleUsers(roleId, start, end);
387     }
388 
389     public static int getRoleUsersCount(long roleId)
390         throws com.liferay.portal.SystemException {
391         return getService().getRoleUsersCount(roleId);
392     }
393 
394     public static int getRoleUsersCount(long roleId, boolean active)
395         throws com.liferay.portal.PortalException,
396             com.liferay.portal.SystemException {
397         return getService().getRoleUsersCount(roleId, active);
398     }
399 
400     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
401         long userId, 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(userId, start, end, obc);
406     }
407 
408     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
409         long userId, 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().getSocialUsers(userId, type, start, end, obc);
414     }
415 
416     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
417         long userId1, long userId2, int start, int end,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.PortalException,
420             com.liferay.portal.SystemException {
421         return getService().getSocialUsers(userId1, userId2, start, end, obc);
422     }
423 
424     public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
425         long userId1, long userId2, int type, int start, int end,
426         com.liferay.portal.kernel.util.OrderByComparator obc)
427         throws com.liferay.portal.PortalException,
428             com.liferay.portal.SystemException {
429         return getService()
430                    .getSocialUsers(userId1, userId2, type, start, end, obc);
431     }
432 
433     public static int getSocialUsersCount(long userId)
434         throws com.liferay.portal.PortalException,
435             com.liferay.portal.SystemException {
436         return getService().getSocialUsersCount(userId);
437     }
438 
439     public static int getSocialUsersCount(long userId, int type)
440         throws com.liferay.portal.PortalException,
441             com.liferay.portal.SystemException {
442         return getService().getSocialUsersCount(userId, type);
443     }
444 
445     public static int getSocialUsersCount(long userId1, long userId2)
446         throws com.liferay.portal.PortalException,
447             com.liferay.portal.SystemException {
448         return getService().getSocialUsersCount(userId1, userId2);
449     }
450 
451     public static int getSocialUsersCount(long userId1, long userId2, int type)
452         throws com.liferay.portal.PortalException,
453             com.liferay.portal.SystemException {
454         return getService().getSocialUsersCount(userId1, userId2, type);
455     }
456 
457     public static java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
458         long userGroupId) throws com.liferay.portal.SystemException {
459         return getService().getUserGroupUsers(userGroupId);
460     }
461 
462     public static int getUserGroupUsersCount(long userGroupId)
463         throws com.liferay.portal.SystemException {
464         return getService().getUserGroupUsersCount(userGroupId);
465     }
466 
467     public static int getUserGroupUsersCount(long userGroupId, boolean active)
468         throws com.liferay.portal.PortalException,
469             com.liferay.portal.SystemException {
470         return getService().getUserGroupUsersCount(userGroupId, active);
471     }
472 
473     public static com.liferay.portal.model.User getUserByContactId(
474         long contactId)
475         throws com.liferay.portal.PortalException,
476             com.liferay.portal.SystemException {
477         return getService().getUserByContactId(contactId);
478     }
479 
480     public static com.liferay.portal.model.User getUserByEmailAddress(
481         long companyId, java.lang.String emailAddress)
482         throws com.liferay.portal.PortalException,
483             com.liferay.portal.SystemException {
484         return getService().getUserByEmailAddress(companyId, emailAddress);
485     }
486 
487     public static com.liferay.portal.model.User getUserById(long userId)
488         throws com.liferay.portal.PortalException,
489             com.liferay.portal.SystemException {
490         return getService().getUserById(userId);
491     }
492 
493     public static com.liferay.portal.model.User getUserById(long companyId,
494         long userId)
495         throws com.liferay.portal.PortalException,
496             com.liferay.portal.SystemException {
497         return getService().getUserById(companyId, userId);
498     }
499 
500     public static com.liferay.portal.model.User getUserByOpenId(
501         java.lang.String openId)
502         throws com.liferay.portal.PortalException,
503             com.liferay.portal.SystemException {
504         return getService().getUserByOpenId(openId);
505     }
506 
507     public static com.liferay.portal.model.User getUserByPortraitId(
508         long portraitId)
509         throws com.liferay.portal.PortalException,
510             com.liferay.portal.SystemException {
511         return getService().getUserByPortraitId(portraitId);
512     }
513 
514     public static com.liferay.portal.model.User getUserByScreenName(
515         long companyId, java.lang.String screenName)
516         throws com.liferay.portal.PortalException,
517             com.liferay.portal.SystemException {
518         return getService().getUserByScreenName(companyId, screenName);
519     }
520 
521     public static com.liferay.portal.model.User getUserByUuid(
522         java.lang.String uuid)
523         throws com.liferay.portal.PortalException,
524             com.liferay.portal.SystemException {
525         return getService().getUserByUuid(uuid);
526     }
527 
528     public static long getUserIdByEmailAddress(long companyId,
529         java.lang.String emailAddress)
530         throws com.liferay.portal.PortalException,
531             com.liferay.portal.SystemException {
532         return getService().getUserIdByEmailAddress(companyId, emailAddress);
533     }
534 
535     public static long getUserIdByScreenName(long companyId,
536         java.lang.String screenName)
537         throws com.liferay.portal.PortalException,
538             com.liferay.portal.SystemException {
539         return getService().getUserIdByScreenName(companyId, screenName);
540     }
541 
542     public static boolean hasGroupUser(long groupId, long userId)
543         throws com.liferay.portal.SystemException {
544         return getService().hasGroupUser(groupId, userId);
545     }
546 
547     public static boolean hasOrganizationUser(long organizationId, long userId)
548         throws com.liferay.portal.SystemException {
549         return getService().hasOrganizationUser(organizationId, userId);
550     }
551 
552     public static boolean hasPasswordPolicyUser(long passwordPolicyId,
553         long userId) throws com.liferay.portal.SystemException {
554         return getService().hasPasswordPolicyUser(passwordPolicyId, userId);
555     }
556 
557     public static boolean hasRoleUser(long roleId, long userId)
558         throws com.liferay.portal.SystemException {
559         return getService().hasRoleUser(roleId, userId);
560     }
561 
562     public static boolean hasRoleUser(long companyId, java.lang.String name,
563         long userId, boolean inherited)
564         throws com.liferay.portal.PortalException,
565             com.liferay.portal.SystemException {
566         return getService().hasRoleUser(companyId, name, userId, inherited);
567     }
568 
569     public static boolean hasUserGroupUser(long userGroupId, long userId)
570         throws com.liferay.portal.SystemException {
571         return getService().hasUserGroupUser(userGroupId, userId);
572     }
573 
574     public static boolean isPasswordExpired(com.liferay.portal.model.User user)
575         throws com.liferay.portal.PortalException,
576             com.liferay.portal.SystemException {
577         return getService().isPasswordExpired(user);
578     }
579 
580     public static boolean isPasswordExpiringSoon(
581         com.liferay.portal.model.User user)
582         throws com.liferay.portal.PortalException,
583             com.liferay.portal.SystemException {
584         return getService().isPasswordExpiringSoon(user);
585     }
586 
587     public static void reIndex(long userId)
588         throws com.liferay.portal.SystemException {
589         getService().reIndex(userId);
590     }
591 
592     public static void reIndex(java.lang.String[] ids)
593         throws com.liferay.portal.SystemException {
594         getService().reIndex(ids);
595     }
596 
597     public static com.liferay.portal.kernel.search.Hits search(long companyId,
598         java.lang.String keywords, java.lang.Boolean active,
599         java.util.LinkedHashMap<String, Object> params, int start, int end,
600         com.liferay.portal.kernel.search.Sort sort)
601         throws com.liferay.portal.SystemException {
602         return getService()
603                    .search(companyId, keywords, active, params, start, end, sort);
604     }
605 
606     public static com.liferay.portal.kernel.search.Hits search(long companyId,
607         java.lang.String firstName, java.lang.String middleName,
608         java.lang.String lastName, java.lang.String screenName,
609         java.lang.String emailAddress, java.lang.Boolean active,
610         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
611         int start, int end, com.liferay.portal.kernel.search.Sort sort)
612         throws com.liferay.portal.SystemException {
613         return getService()
614                    .search(companyId, firstName, middleName, lastName,
615             screenName, emailAddress, active, params, andSearch, start, end,
616             sort);
617     }
618 
619     public static java.util.List<com.liferay.portal.model.User> search(
620         long companyId, java.lang.String keywords, java.lang.Boolean active,
621         java.util.LinkedHashMap<String, Object> params, int start, int end,
622         com.liferay.portal.kernel.util.OrderByComparator obc)
623         throws com.liferay.portal.SystemException {
624         return getService()
625                    .search(companyId, keywords, active, params, start, end, obc);
626     }
627 
628     public static java.util.List<com.liferay.portal.model.User> search(
629         long companyId, java.lang.String firstName,
630         java.lang.String middleName, java.lang.String lastName,
631         java.lang.String screenName, java.lang.String emailAddress,
632         java.lang.Boolean active,
633         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
634         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
635         throws com.liferay.portal.SystemException {
636         return getService()
637                    .search(companyId, firstName, middleName, lastName,
638             screenName, emailAddress, active, params, andSearch, start, end, obc);
639     }
640 
641     public static int searchCount(long companyId, java.lang.String keywords,
642         java.lang.Boolean active, java.util.LinkedHashMap<String, Object> params)
643         throws com.liferay.portal.SystemException {
644         return getService().searchCount(companyId, keywords, active, params);
645     }
646 
647     public static int searchCount(long companyId, java.lang.String firstName,
648         java.lang.String middleName, java.lang.String lastName,
649         java.lang.String screenName, java.lang.String emailAddress,
650         java.lang.Boolean active,
651         java.util.LinkedHashMap<String, Object> params, boolean andSearch)
652         throws com.liferay.portal.SystemException {
653         return getService()
654                    .searchCount(companyId, firstName, middleName, lastName,
655             screenName, emailAddress, active, params, andSearch);
656     }
657 
658     public static void sendPassword(long companyId,
659         java.lang.String emailAddress, java.lang.String remoteAddr,
660         java.lang.String remoteHost, java.lang.String userAgent,
661         java.lang.String fromName, java.lang.String fromAddress,
662         java.lang.String subject, java.lang.String body)
663         throws com.liferay.portal.PortalException,
664             com.liferay.portal.SystemException {
665         getService()
666             .sendPassword(companyId, emailAddress, remoteAddr, remoteHost,
667             userAgent, fromName, fromAddress, subject, body);
668     }
669 
670     public static void setRoleUsers(long roleId, long[] userIds)
671         throws com.liferay.portal.SystemException {
672         getService().setRoleUsers(roleId, userIds);
673     }
674 
675     public static void setUserGroupUsers(long userGroupId, long[] userIds)
676         throws com.liferay.portal.PortalException,
677             com.liferay.portal.SystemException {
678         getService().setUserGroupUsers(userGroupId, userIds);
679     }
680 
681     public static void unsetGroupUsers(long groupId, long[] userIds)
682         throws com.liferay.portal.SystemException {
683         getService().unsetGroupUsers(groupId, userIds);
684     }
685 
686     public static void unsetOrganizationUsers(long organizationId,
687         long[] userIds)
688         throws com.liferay.portal.PortalException,
689             com.liferay.portal.SystemException {
690         getService().unsetOrganizationUsers(organizationId, userIds);
691     }
692 
693     public static void unsetPasswordPolicyUsers(long passwordPolicyId,
694         long[] userIds) throws com.liferay.portal.SystemException {
695         getService().unsetPasswordPolicyUsers(passwordPolicyId, userIds);
696     }
697 
698     public static void unsetRoleUsers(long roleId, long[] userIds)
699         throws com.liferay.portal.PortalException,
700             com.liferay.portal.SystemException {
701         getService().unsetRoleUsers(roleId, userIds);
702     }
703 
704     public static void unsetRoleUsers(long roleId,
705         java.util.List<com.liferay.portal.model.User> users)
706         throws com.liferay.portal.PortalException,
707             com.liferay.portal.SystemException {
708         getService().unsetRoleUsers(roleId, users);
709     }
710 
711     public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
712         throws com.liferay.portal.SystemException {
713         getService().unsetUserGroupUsers(userGroupId, userIds);
714     }
715 
716     public static com.liferay.portal.model.User updateActive(long userId,
717         boolean active)
718         throws com.liferay.portal.PortalException,
719             com.liferay.portal.SystemException {
720         return getService().updateActive(userId, active);
721     }
722 
723     public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
724         long userId, boolean agreedToTermsOfUse)
725         throws com.liferay.portal.PortalException,
726             com.liferay.portal.SystemException {
727         return getService().updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
728     }
729 
730     public static com.liferay.portal.model.User updateCreateDate(long userId,
731         java.util.Date createDate)
732         throws com.liferay.portal.PortalException,
733             com.liferay.portal.SystemException {
734         return getService().updateCreateDate(userId, createDate);
735     }
736 
737     public static com.liferay.portal.model.User updateEmailAddress(
738         long userId, java.lang.String password, java.lang.String emailAddress1,
739         java.lang.String emailAddress2)
740         throws com.liferay.portal.PortalException,
741             com.liferay.portal.SystemException {
742         return getService()
743                    .updateEmailAddress(userId, password, emailAddress1,
744             emailAddress2);
745     }
746 
747     public static void updateGroups(long userId, long[] newGroupIds)
748         throws com.liferay.portal.PortalException,
749             com.liferay.portal.SystemException {
750         getService().updateGroups(userId, newGroupIds);
751     }
752 
753     public static com.liferay.portal.model.User updateLastLogin(long userId,
754         java.lang.String loginIP)
755         throws com.liferay.portal.PortalException,
756             com.liferay.portal.SystemException {
757         return getService().updateLastLogin(userId, loginIP);
758     }
759 
760     public static com.liferay.portal.model.User updateLockout(
761         com.liferay.portal.model.User user, boolean lockout)
762         throws com.liferay.portal.PortalException,
763             com.liferay.portal.SystemException {
764         return getService().updateLockout(user, lockout);
765     }
766 
767     public static com.liferay.portal.model.User updateLockoutByEmailAddress(
768         long companyId, java.lang.String emailAddress, boolean lockout)
769         throws com.liferay.portal.PortalException,
770             com.liferay.portal.SystemException {
771         return getService()
772                    .updateLockoutByEmailAddress(companyId, emailAddress, lockout);
773     }
774 
775     public static com.liferay.portal.model.User updateLockoutById(long userId,
776         boolean lockout)
777         throws com.liferay.portal.PortalException,
778             com.liferay.portal.SystemException {
779         return getService().updateLockoutById(userId, lockout);
780     }
781 
782     public static com.liferay.portal.model.User updateLockoutByScreenName(
783         long companyId, java.lang.String screenName, boolean lockout)
784         throws com.liferay.portal.PortalException,
785             com.liferay.portal.SystemException {
786         return getService()
787                    .updateLockoutByScreenName(companyId, screenName, lockout);
788     }
789 
790     public static com.liferay.portal.model.User updateModifiedDate(
791         long userId, java.util.Date modifiedDate)
792         throws com.liferay.portal.PortalException,
793             com.liferay.portal.SystemException {
794         return getService().updateModifiedDate(userId, modifiedDate);
795     }
796 
797     public static void updateOpenId(long userId, java.lang.String openId)
798         throws com.liferay.portal.PortalException,
799             com.liferay.portal.SystemException {
800         getService().updateOpenId(userId, openId);
801     }
802 
803     public static void updateOrganizations(long userId,
804         long[] newOrganizationIds)
805         throws com.liferay.portal.PortalException,
806             com.liferay.portal.SystemException {
807         getService().updateOrganizations(userId, newOrganizationIds);
808     }
809 
810     public static com.liferay.portal.model.User updatePassword(long userId,
811         java.lang.String password1, java.lang.String password2,
812         boolean passwordReset)
813         throws com.liferay.portal.PortalException,
814             com.liferay.portal.SystemException {
815         return getService()
816                    .updatePassword(userId, password1, password2, passwordReset);
817     }
818 
819     public static com.liferay.portal.model.User updatePassword(long userId,
820         java.lang.String password1, java.lang.String password2,
821         boolean passwordReset, boolean silentUpdate)
822         throws com.liferay.portal.PortalException,
823             com.liferay.portal.SystemException {
824         return getService()
825                    .updatePassword(userId, password1, password2, passwordReset,
826             silentUpdate);
827     }
828 
829     public static com.liferay.portal.model.User updatePasswordManually(
830         long userId, java.lang.String password, boolean passwordEncrypted,
831         boolean passwordReset, java.util.Date passwordModifiedDate)
832         throws com.liferay.portal.PortalException,
833             com.liferay.portal.SystemException {
834         return getService()
835                    .updatePasswordManually(userId, password, passwordEncrypted,
836             passwordReset, passwordModifiedDate);
837     }
838 
839     public static void updatePasswordReset(long userId, boolean passwordReset)
840         throws com.liferay.portal.PortalException,
841             com.liferay.portal.SystemException {
842         getService().updatePasswordReset(userId, passwordReset);
843     }
844 
845     public static void updatePortrait(long userId, byte[] bytes)
846         throws com.liferay.portal.PortalException,
847             com.liferay.portal.SystemException {
848         getService().updatePortrait(userId, bytes);
849     }
850 
851     public static void updateReminderQuery(long userId,
852         java.lang.String question, java.lang.String answer)
853         throws com.liferay.portal.PortalException,
854             com.liferay.portal.SystemException {
855         getService().updateReminderQuery(userId, question, answer);
856     }
857 
858     public static void updateScreenName(long userId, java.lang.String screenName)
859         throws com.liferay.portal.PortalException,
860             com.liferay.portal.SystemException {
861         getService().updateScreenName(userId, screenName);
862     }
863 
864     public static com.liferay.portal.model.User updateUser(long userId,
865         java.lang.String oldPassword, java.lang.String newPassword1,
866         java.lang.String newPassword2, boolean passwordReset,
867         java.lang.String reminderQueryQuestion,
868         java.lang.String reminderQueryAnswer, java.lang.String screenName,
869         java.lang.String emailAddress, java.lang.String openId,
870         java.lang.String languageId, java.lang.String timeZoneId,
871         java.lang.String greeting, java.lang.String comments,
872         java.lang.String firstName, java.lang.String middleName,
873         java.lang.String lastName, int prefixId, int suffixId, boolean male,
874         int birthdayMonth, int birthdayDay, int birthdayYear,
875         java.lang.String smsSn, java.lang.String aimSn,
876         java.lang.String facebookSn, java.lang.String icqSn,
877         java.lang.String jabberSn, java.lang.String msnSn,
878         java.lang.String mySpaceSn, java.lang.String skypeSn,
879         java.lang.String twitterSn, java.lang.String ymSn,
880         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
881         long[] roleIds,
882         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
883         long[] userGroupIds,
884         com.liferay.portal.service.ServiceContext serviceContext)
885         throws com.liferay.portal.PortalException,
886             com.liferay.portal.SystemException {
887         return getService()
888                    .updateUser(userId, oldPassword, newPassword1, newPassword2,
889             passwordReset, reminderQueryQuestion, reminderQueryAnswer,
890             screenName, emailAddress, openId, languageId, timeZoneId, greeting,
891             comments, firstName, middleName, lastName, prefixId, suffixId,
892             male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
893             facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn,
894             ymSn, jobTitle, groupIds, organizationIds, roleIds, userGroupRoles,
895             userGroupIds, serviceContext);
896     }
897 
898     public static void updateTagsAsset(long userId,
899         com.liferay.portal.model.User user, java.lang.String[] tagsEntries)
900         throws com.liferay.portal.PortalException,
901             com.liferay.portal.SystemException {
902         getService().updateTagsAsset(userId, user, tagsEntries);
903     }
904 
905     public static UserLocalService getService() {
906         if (_service == null) {
907             throw new RuntimeException("UserLocalService is not set");
908         }
909 
910         return _service;
911     }
912 
913     public void setService(UserLocalService service) {
914         _service = service;
915     }
916 
917     private static UserLocalService _service;
918 }