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