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