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