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