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