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