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