001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface UserLocalService extends PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.User addUser(
053 com.liferay.portal.model.User user)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.User createUser(long userId);
063
064
071 public void deleteUser(long userId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075
082 public void deleteUser(com.liferay.portal.model.User user)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086
093 @SuppressWarnings("rawtypes")
094 public java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098
111 @SuppressWarnings("rawtypes")
112 public java.util.List dynamicQuery(
113 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114 int end) throws com.liferay.portal.kernel.exception.SystemException;
115
116
130 @SuppressWarnings("rawtypes")
131 public java.util.List dynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137
144 public long dynamicQueryCount(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portal.model.User getUser(long userId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portal.model.PersistedModel getPersistedModel(
163 java.io.Serializable primaryKeyObj)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portal.model.User> getUsers(int start,
181 int end) throws com.liferay.portal.kernel.exception.SystemException;
182
183
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public int getUsersCount()
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193
200 public com.liferay.portal.model.User updateUser(
201 com.liferay.portal.model.User user)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204
212 public com.liferay.portal.model.User updateUser(
213 com.liferay.portal.model.User user, boolean merge)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216
221 public java.lang.String getBeanIdentifier();
222
223
228 public void setBeanIdentifier(java.lang.String beanIdentifier);
229
230 public void addDefaultGroups(long userId)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 public void addDefaultRoles(long userId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public void addDefaultUserGroups(long userId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void addGroupUsers(long groupId, long[] userIds)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addOrganizationUsers(long organizationId, long[] userIds)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 public void addRoleUsers(long roleId, long[] userIds)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public void addTeamUsers(long teamId, long[] userIds)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portal.model.User addUser(long creatorUserId,
262 long companyId, boolean autoPassword, java.lang.String password1,
263 java.lang.String password2, boolean autoScreenName,
264 java.lang.String screenName, java.lang.String emailAddress,
265 long facebookId, java.lang.String openId, java.util.Locale locale,
266 java.lang.String firstName, java.lang.String middleName,
267 java.lang.String lastName, int prefixId, int suffixId, boolean male,
268 int birthdayMonth, int birthdayDay, int birthdayYear,
269 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
270 long[] roleIds, long[] userGroupIds, boolean sendEmail,
271 com.liferay.portal.service.ServiceContext serviceContext)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void addUserGroupUsers(long userGroupId, long[] userIds)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public int authenticateByEmailAddress(long companyId,
280 java.lang.String emailAddress, java.lang.String password,
281 java.util.Map<java.lang.String, java.lang.String[]> headerMap,
282 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
283 java.util.Map<java.lang.String, java.lang.Object> resultsMap)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 public int authenticateByScreenName(long companyId,
288 java.lang.String screenName, java.lang.String password,
289 java.util.Map<java.lang.String, java.lang.String[]> headerMap,
290 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
291 java.util.Map<java.lang.String, java.lang.Object> resultsMap)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 public int authenticateByUserId(long companyId, long userId,
296 java.lang.String password,
297 java.util.Map<java.lang.String, java.lang.String[]> headerMap,
298 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
299 java.util.Map<java.lang.String, java.lang.Object> resultsMap)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 public long authenticateForBasic(long companyId, java.lang.String authType,
304 java.lang.String login, java.lang.String password)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 public long authenticateForDigest(long companyId,
309 java.lang.String username, java.lang.String realm,
310 java.lang.String nonce, java.lang.String method, java.lang.String uri,
311 java.lang.String response)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
316
317 public void checkLockout(com.liferay.portal.model.User user)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void checkLoginFailure(com.liferay.portal.model.User user)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public void checkLoginFailureByEmailAddress(long companyId,
325 java.lang.String emailAddress)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public void checkLoginFailureById(long userId)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void checkLoginFailureByScreenName(long companyId,
334 java.lang.String screenName)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void checkPasswordExpired(com.liferay.portal.model.User user)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public void clearOrganizationUsers(long organizationId)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 public void clearUserGroupUsers(long userGroupId)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348 public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
349 long companyId, java.lang.String name, java.lang.String password)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352
353 public void deletePortrait(long userId)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public void deleteRoleUser(long roleId, long userId)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException;
360
361 public void deleteUserGroupUser(long userGroupId, long userId)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 public java.lang.String encryptUserId(java.lang.String name)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public com.liferay.portal.model.User fetchUserByScreenName(long companyId,
371 java.lang.String screenName)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portal.model.User> getCompanyUsers(
376 long companyId, int start, int end)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public int getCompanyUsersCount(long companyId)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public com.liferay.portal.model.User getDefaultUser(long companyId)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public long getDefaultUserId(long companyId)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public long[] getGroupUserIds(long groupId)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<com.liferay.portal.model.User> getGroupUsers(
399 long groupId)
400 throws com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public int getGroupUsersCount(long groupId)
404 throws com.liferay.portal.kernel.exception.SystemException;
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public int getGroupUsersCount(long groupId, boolean active)
408 throws com.liferay.portal.kernel.exception.PortalException,
409 com.liferay.portal.kernel.exception.SystemException;
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
413 java.lang.String type)
414 throws com.liferay.portal.kernel.exception.SystemException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public java.util.List<com.liferay.portal.model.User> getNoContacts()
418 throws com.liferay.portal.kernel.exception.SystemException;
419
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public java.util.List<com.liferay.portal.model.User> getNoGroups()
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public long[] getOrganizationUserIds(long organizationId)
426 throws com.liferay.portal.kernel.exception.SystemException;
427
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
430 long organizationId)
431 throws com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public int getOrganizationUsersCount(long organizationId)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public int getOrganizationUsersCount(long organizationId, boolean active)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException;
441
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public long[] getRoleUserIds(long roleId)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public java.util.List<com.liferay.portal.model.User> getRoleUsers(
448 long roleId) throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.util.List<com.liferay.portal.model.User> getRoleUsers(
452 long roleId, int start, int end)
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public int getRoleUsersCount(long roleId)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public int getRoleUsersCount(long roleId, boolean active)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public java.util.List<com.liferay.portal.model.User> getSocialUsers(
466 long userId, int type, int start, int end,
467 com.liferay.portal.kernel.util.OrderByComparator obc)
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException;
470
471 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472 public java.util.List<com.liferay.portal.model.User> getSocialUsers(
473 long userId, int start, int end,
474 com.liferay.portal.kernel.util.OrderByComparator obc)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portal.model.User> getSocialUsers(
480 long userId1, long userId2, int type, int start, int end,
481 com.liferay.portal.kernel.util.OrderByComparator obc)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException;
484
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public java.util.List<com.liferay.portal.model.User> getSocialUsers(
487 long userId1, long userId2, int start, int end,
488 com.liferay.portal.kernel.util.OrderByComparator obc)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException;
491
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public int getSocialUsersCount(long userId)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException;
496
497 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
498 public int getSocialUsersCount(long userId, int type)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException;
501
502 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503 public int getSocialUsersCount(long userId1, long userId2)
504 throws com.liferay.portal.kernel.exception.PortalException,
505 com.liferay.portal.kernel.exception.SystemException;
506
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public int getSocialUsersCount(long userId1, long userId2, int type)
509 throws com.liferay.portal.kernel.exception.PortalException,
510 com.liferay.portal.kernel.exception.SystemException;
511
512 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513 public com.liferay.portal.model.User getUserByContactId(long contactId)
514 throws com.liferay.portal.kernel.exception.PortalException,
515 com.liferay.portal.kernel.exception.SystemException;
516
517 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518 public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
519 java.lang.String emailAddress)
520 throws com.liferay.portal.kernel.exception.PortalException,
521 com.liferay.portal.kernel.exception.SystemException;
522
523 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524 public com.liferay.portal.model.User getUserByFacebookId(long companyId,
525 long facebookId)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException;
528
529 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530 public com.liferay.portal.model.User getUserById(long userId)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException;
533
534 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535 public com.liferay.portal.model.User getUserById(long companyId, long userId)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException;
538
539 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540 public com.liferay.portal.model.User getUserByOpenId(long companyId,
541 java.lang.String openId)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException;
544
545 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546 public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public com.liferay.portal.model.User getUserByScreenName(long companyId,
552 java.lang.String screenName)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException;
555
556 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
557 public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
558 throws com.liferay.portal.kernel.exception.PortalException,
559 com.liferay.portal.kernel.exception.SystemException;
560
561 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562 public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
563 long userGroupId)
564 throws com.liferay.portal.kernel.exception.SystemException;
565
566 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
567 public int getUserGroupUsersCount(long userGroupId)
568 throws com.liferay.portal.kernel.exception.SystemException;
569
570 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571 public int getUserGroupUsersCount(long userGroupId, boolean active)
572 throws com.liferay.portal.kernel.exception.PortalException,
573 com.liferay.portal.kernel.exception.SystemException;
574
575 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576 public long getUserIdByEmailAddress(long companyId,
577 java.lang.String emailAddress)
578 throws com.liferay.portal.kernel.exception.PortalException,
579 com.liferay.portal.kernel.exception.SystemException;
580
581 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
582 public long getUserIdByScreenName(long companyId,
583 java.lang.String screenName)
584 throws com.liferay.portal.kernel.exception.PortalException,
585 com.liferay.portal.kernel.exception.SystemException;
586
587 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588 public boolean hasGroupUser(long groupId, long userId)
589 throws com.liferay.portal.kernel.exception.SystemException;
590
591 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592 public boolean hasOrganizationUser(long organizationId, long userId)
593 throws com.liferay.portal.kernel.exception.SystemException;
594
595 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
596 public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
597 throws com.liferay.portal.kernel.exception.SystemException;
598
599 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
600 public boolean hasRoleUser(long roleId, long userId)
601 throws com.liferay.portal.kernel.exception.SystemException;
602
603
608 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609 public boolean hasRoleUser(long companyId, java.lang.String name,
610 long userId, boolean inherited)
611 throws com.liferay.portal.kernel.exception.PortalException,
612 com.liferay.portal.kernel.exception.SystemException;
613
614 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
615 public boolean hasTeamUser(long teamId, long userId)
616 throws com.liferay.portal.kernel.exception.SystemException;
617
618 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
619 public boolean hasUserGroupUser(long userGroupId, long userId)
620 throws com.liferay.portal.kernel.exception.SystemException;
621
622 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
623 public boolean isPasswordExpired(com.liferay.portal.model.User user)
624 throws com.liferay.portal.kernel.exception.PortalException,
625 com.liferay.portal.kernel.exception.SystemException;
626
627 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
628 public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
629 throws com.liferay.portal.kernel.exception.PortalException,
630 com.liferay.portal.kernel.exception.SystemException;
631
632 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
633 public java.util.List<com.liferay.portal.model.User> search(
634 long companyId, java.lang.String keywords, java.lang.Boolean active,
635 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
636 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
637 throws com.liferay.portal.kernel.exception.SystemException;
638
639 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
640 public com.liferay.portal.kernel.search.Hits search(long companyId,
641 java.lang.String keywords, java.lang.Boolean active,
642 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
643 int start, int end, com.liferay.portal.kernel.search.Sort sort)
644 throws com.liferay.portal.kernel.exception.SystemException;
645
646 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
647 public java.util.List<com.liferay.portal.model.User> search(
648 long companyId, java.lang.String firstName,
649 java.lang.String middleName, java.lang.String lastName,
650 java.lang.String screenName, java.lang.String emailAddress,
651 java.lang.Boolean active,
652 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
653 boolean andSearch, int start, int end,
654 com.liferay.portal.kernel.util.OrderByComparator obc)
655 throws com.liferay.portal.kernel.exception.SystemException;
656
657 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
658 public com.liferay.portal.kernel.search.Hits search(long companyId,
659 java.lang.String firstName, java.lang.String middleName,
660 java.lang.String lastName, java.lang.String screenName,
661 java.lang.String emailAddress, java.lang.Boolean active,
662 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
663 boolean andSearch, int start, int end,
664 com.liferay.portal.kernel.search.Sort sort)
665 throws com.liferay.portal.kernel.exception.SystemException;
666
667 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
668 public int searchCount(long companyId, java.lang.String keywords,
669 java.lang.Boolean active,
670 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
671 throws com.liferay.portal.kernel.exception.SystemException;
672
673 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
674 public int searchCount(long companyId, java.lang.String firstName,
675 java.lang.String middleName, java.lang.String lastName,
676 java.lang.String screenName, java.lang.String emailAddress,
677 java.lang.Boolean active,
678 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
679 boolean andSearch)
680 throws com.liferay.portal.kernel.exception.SystemException;
681
682 public void sendPassword(long companyId, java.lang.String emailAddress,
683 java.lang.String remoteAddr, java.lang.String remoteHost,
684 java.lang.String userAgent, java.lang.String fromName,
685 java.lang.String fromAddress, java.lang.String subject,
686 java.lang.String body,
687 com.liferay.portal.service.ServiceContext serviceContext)
688 throws com.liferay.portal.kernel.exception.PortalException,
689 com.liferay.portal.kernel.exception.SystemException;
690
691 public void setRoleUsers(long roleId, long[] userIds)
692 throws com.liferay.portal.kernel.exception.PortalException,
693 com.liferay.portal.kernel.exception.SystemException;
694
695 public void setUserGroupUsers(long userGroupId, long[] userIds)
696 throws com.liferay.portal.kernel.exception.PortalException,
697 com.liferay.portal.kernel.exception.SystemException;
698
699 public void unsetGroupUsers(long groupId, long[] userIds)
700 throws com.liferay.portal.kernel.exception.PortalException,
701 com.liferay.portal.kernel.exception.SystemException;
702
703 public void unsetOrganizationUsers(long organizationId, long[] userIds)
704 throws com.liferay.portal.kernel.exception.PortalException,
705 com.liferay.portal.kernel.exception.SystemException;
706
707 public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
708 throws com.liferay.portal.kernel.exception.SystemException;
709
710 public void unsetRoleUsers(long roleId,
711 java.util.List<com.liferay.portal.model.User> users)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException;
714
715 public void unsetRoleUsers(long roleId, long[] userIds)
716 throws com.liferay.portal.kernel.exception.PortalException,
717 com.liferay.portal.kernel.exception.SystemException;
718
719 public void unsetTeamUsers(long teamId, long[] userIds)
720 throws com.liferay.portal.kernel.exception.PortalException,
721 com.liferay.portal.kernel.exception.SystemException;
722
723 public void unsetUserGroupUsers(long userGroupId, long[] userIds)
724 throws com.liferay.portal.kernel.exception.PortalException,
725 com.liferay.portal.kernel.exception.SystemException;
726
727 public com.liferay.portal.model.User updateActive(long userId,
728 boolean active)
729 throws com.liferay.portal.kernel.exception.PortalException,
730 com.liferay.portal.kernel.exception.SystemException;
731
732 public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
733 boolean agreedToTermsOfUse)
734 throws com.liferay.portal.kernel.exception.PortalException,
735 com.liferay.portal.kernel.exception.SystemException;
736
737 public void updateAsset(long userId, com.liferay.portal.model.User user,
738 long[] assetCategoryIds, java.lang.String[] assetTagNames)
739 throws com.liferay.portal.kernel.exception.PortalException,
740 com.liferay.portal.kernel.exception.SystemException;
741
742 public com.liferay.portal.model.User updateCreateDate(long userId,
743 java.util.Date createDate)
744 throws com.liferay.portal.kernel.exception.PortalException,
745 com.liferay.portal.kernel.exception.SystemException;
746
747 public com.liferay.portal.model.User updateEmailAddress(long userId,
748 java.lang.String password, java.lang.String emailAddress1,
749 java.lang.String emailAddress2)
750 throws com.liferay.portal.kernel.exception.PortalException,
751 com.liferay.portal.kernel.exception.SystemException;
752
753 public com.liferay.portal.model.User updateFacebookId(long userId,
754 long facebookId)
755 throws com.liferay.portal.kernel.exception.PortalException,
756 com.liferay.portal.kernel.exception.SystemException;
757
758 public void updateGroups(long userId, long[] newGroupIds)
759 throws com.liferay.portal.kernel.exception.PortalException,
760 com.liferay.portal.kernel.exception.SystemException;
761
762
768 public com.liferay.portal.model.User updateJobTitle(long userId,
769 java.lang.String jobTitle)
770 throws com.liferay.portal.kernel.exception.PortalException,
771 com.liferay.portal.kernel.exception.SystemException;
772
773 public com.liferay.portal.model.User updateLastLogin(long userId,
774 java.lang.String loginIP)
775 throws com.liferay.portal.kernel.exception.PortalException,
776 com.liferay.portal.kernel.exception.SystemException;
777
778 public com.liferay.portal.model.User updateLockout(
779 com.liferay.portal.model.User user, boolean lockout)
780 throws com.liferay.portal.kernel.exception.PortalException,
781 com.liferay.portal.kernel.exception.SystemException;
782
783 public com.liferay.portal.model.User updateLockoutByEmailAddress(
784 long companyId, java.lang.String emailAddress, boolean lockout)
785 throws com.liferay.portal.kernel.exception.PortalException,
786 com.liferay.portal.kernel.exception.SystemException;
787
788 public com.liferay.portal.model.User updateLockoutById(long userId,
789 boolean lockout)
790 throws com.liferay.portal.kernel.exception.PortalException,
791 com.liferay.portal.kernel.exception.SystemException;
792
793 public com.liferay.portal.model.User updateLockoutByScreenName(
794 long companyId, java.lang.String screenName, boolean lockout)
795 throws com.liferay.portal.kernel.exception.PortalException,
796 com.liferay.portal.kernel.exception.SystemException;
797
798 public com.liferay.portal.model.User updateModifiedDate(long userId,
799 java.util.Date modifiedDate)
800 throws com.liferay.portal.kernel.exception.PortalException,
801 com.liferay.portal.kernel.exception.SystemException;
802
803 public com.liferay.portal.model.User updateOpenId(long userId,
804 java.lang.String openId)
805 throws com.liferay.portal.kernel.exception.PortalException,
806 com.liferay.portal.kernel.exception.SystemException;
807
808 public void updateOrganizations(long userId, long[] newOrganizationIds)
809 throws com.liferay.portal.kernel.exception.PortalException,
810 com.liferay.portal.kernel.exception.SystemException;
811
812 public com.liferay.portal.model.User updatePassword(long userId,
813 java.lang.String password1, java.lang.String password2,
814 boolean passwordReset)
815 throws com.liferay.portal.kernel.exception.PortalException,
816 com.liferay.portal.kernel.exception.SystemException;
817
818 public 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.kernel.exception.PortalException,
822 com.liferay.portal.kernel.exception.SystemException;
823
824 public com.liferay.portal.model.User updatePasswordManually(long userId,
825 java.lang.String password, boolean passwordEncrypted,
826 boolean passwordReset, java.util.Date passwordModifiedDate)
827 throws com.liferay.portal.kernel.exception.PortalException,
828 com.liferay.portal.kernel.exception.SystemException;
829
830 public com.liferay.portal.model.User updatePasswordReset(long userId,
831 boolean passwordReset)
832 throws com.liferay.portal.kernel.exception.PortalException,
833 com.liferay.portal.kernel.exception.SystemException;
834
835 public com.liferay.portal.model.User updatePortrait(long userId,
836 byte[] bytes)
837 throws com.liferay.portal.kernel.exception.PortalException,
838 com.liferay.portal.kernel.exception.SystemException;
839
840 public com.liferay.portal.model.User updateReminderQuery(long userId,
841 java.lang.String question, java.lang.String answer)
842 throws com.liferay.portal.kernel.exception.PortalException,
843 com.liferay.portal.kernel.exception.SystemException;
844
845 public com.liferay.portal.model.User updateScreenName(long userId,
846 java.lang.String screenName)
847 throws com.liferay.portal.kernel.exception.PortalException,
848 com.liferay.portal.kernel.exception.SystemException;
849
850 public com.liferay.portal.model.User updateUser(long userId,
851 java.lang.String oldPassword, java.lang.String newPassword1,
852 java.lang.String newPassword2, boolean passwordReset,
853 java.lang.String reminderQueryQuestion,
854 java.lang.String reminderQueryAnswer, java.lang.String screenName,
855 java.lang.String emailAddress, long facebookId,
856 java.lang.String openId, java.lang.String languageId,
857 java.lang.String timeZoneId, java.lang.String greeting,
858 java.lang.String comments, java.lang.String firstName,
859 java.lang.String middleName, java.lang.String lastName, int prefixId,
860 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
861 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
862 java.lang.String facebookSn, java.lang.String icqSn,
863 java.lang.String jabberSn, java.lang.String msnSn,
864 java.lang.String mySpaceSn, java.lang.String skypeSn,
865 java.lang.String twitterSn, java.lang.String ymSn,
866 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
867 long[] roleIds,
868 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
869 long[] userGroupIds,
870 com.liferay.portal.service.ServiceContext serviceContext)
871 throws com.liferay.portal.kernel.exception.PortalException,
872 com.liferay.portal.kernel.exception.SystemException;
873 }