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