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