1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="UserLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portal.service.impl.UserLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       UserLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface UserLocalService {
50      public com.liferay.portal.model.User addUser(
51          com.liferay.portal.model.User user)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.User createUser(long userId);
55  
56      public void deleteUser(long userId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteUser(com.liferay.portal.model.User user)
61          throws com.liferay.portal.SystemException;
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      @SuppressWarnings("rawtypes")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      @SuppressWarnings("rawtypes")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public int dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public com.liferay.portal.model.User getUser(long userId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portal.model.User> getUsers(int start,
91          int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getUsersCount() throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.User updateUser(
97          com.liferay.portal.model.User user)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portal.model.User updateUser(
101         com.liferay.portal.model.User user, boolean merge)
102         throws com.liferay.portal.SystemException;
103 
104     public void addDefaultGroups(long userId)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException;
107 
108     public void addDefaultRoles(long userId)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException;
111 
112     public void addDefaultUserGroups(long userId)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public void addGroupUsers(long groupId, long[] userIds)
117         throws com.liferay.portal.SystemException;
118 
119     public void addOrganizationUsers(long organizationId, long[] userIds)
120         throws com.liferay.portal.SystemException;
121 
122     public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
123         throws com.liferay.portal.SystemException;
124 
125     public void addRoleUsers(long roleId, long[] userIds)
126         throws com.liferay.portal.SystemException;
127 
128     public void addUserGroupUsers(long userGroupId, long[] userIds)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public com.liferay.portal.model.User addUser(long creatorUserId,
133         long companyId, boolean autoPassword, java.lang.String password1,
134         java.lang.String password2, boolean autoScreenName,
135         java.lang.String screenName, java.lang.String emailAddress,
136         java.lang.String openId, java.util.Locale locale,
137         java.lang.String firstName, java.lang.String middleName,
138         java.lang.String lastName, int prefixId, int suffixId, boolean male,
139         int birthdayMonth, int birthdayDay, int birthdayYear,
140         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
141         long[] roleIds, long[] userGroupIds, boolean sendEmail,
142         com.liferay.portal.service.ServiceContext serviceContext)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public int authenticateByEmailAddress(long companyId,
147         java.lang.String emailAddress, java.lang.String password,
148         java.util.Map<java.lang.String, java.lang.String[]> headerMap,
149         java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public int authenticateByScreenName(long companyId,
154         java.lang.String screenName, java.lang.String password,
155         java.util.Map<java.lang.String, java.lang.String[]> headerMap,
156         java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public int authenticateByUserId(long companyId, long userId,
161         java.lang.String password,
162         java.util.Map<java.lang.String, java.lang.String[]> headerMap,
163         java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public long authenticateForBasic(long companyId, java.lang.String authType,
168         java.lang.String login, java.lang.String password)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
173 
174     public void checkLockout(com.liferay.portal.model.User user)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public void checkLoginFailure(com.liferay.portal.model.User user)
179         throws com.liferay.portal.SystemException;
180 
181     public void checkLoginFailureByEmailAddress(long companyId,
182         java.lang.String emailAddress)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException;
185 
186     public void checkLoginFailureById(long userId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     public void checkLoginFailureByScreenName(long companyId,
191         java.lang.String screenName)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     public void checkPasswordExpired(com.liferay.portal.model.User user)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException;
198 
199     public void clearOrganizationUsers(long organizationId)
200         throws com.liferay.portal.SystemException;
201 
202     public void clearUserGroupUsers(long userGroupId)
203         throws com.liferay.portal.SystemException;
204 
205     public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
206         long companyId, java.lang.String name, java.lang.String password)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public void deletePasswordPolicyUser(long passwordPolicyId, long userId)
211         throws com.liferay.portal.SystemException;
212 
213     public void deletePortrait(long userId)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException;
216 
217     public void deleteRoleUser(long roleId, long userId)
218         throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portal.model.User> getCompanyUsers(
222         long companyId, int start, int end)
223         throws com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public int getCompanyUsersCount(long companyId)
227         throws com.liferay.portal.SystemException;
228 
229     public java.lang.String encryptUserId(java.lang.String name)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 
233     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234     public com.liferay.portal.model.User getDefaultUser(long companyId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public long getDefaultUserId(long companyId)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException;
242 
243     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244     public long[] getGroupUserIds(long groupId)
245         throws com.liferay.portal.SystemException;
246 
247     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248     public java.util.List<com.liferay.portal.model.User> getGroupUsers(
249         long groupId) throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public int getGroupUsersCount(long groupId)
253         throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public int getGroupUsersCount(long groupId, boolean active)
257         throws com.liferay.portal.PortalException,
258             com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
262         java.lang.String type) throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public java.util.List<com.liferay.portal.model.User> getNoContacts()
266         throws com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public java.util.List<com.liferay.portal.model.User> getNoGroups()
270         throws com.liferay.portal.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public long[] getOrganizationUserIds(long organizationId)
274         throws com.liferay.portal.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
278         long organizationId) throws com.liferay.portal.SystemException;
279 
280     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281     public int getOrganizationUsersCount(long organizationId)
282         throws com.liferay.portal.SystemException;
283 
284     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285     public int getOrganizationUsersCount(long organizationId, boolean active)
286         throws com.liferay.portal.PortalException,
287             com.liferay.portal.SystemException;
288 
289     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290     public long[] getRoleUserIds(long roleId)
291         throws com.liferay.portal.SystemException;
292 
293     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294     public java.util.List<com.liferay.portal.model.User> getRoleUsers(
295         long roleId) throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public java.util.List<com.liferay.portal.model.User> getRoleUsers(
299         long roleId, int start, int end)
300         throws com.liferay.portal.SystemException;
301 
302     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303     public int getRoleUsersCount(long roleId)
304         throws com.liferay.portal.SystemException;
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public int getRoleUsersCount(long roleId, boolean active)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException;
310 
311     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
313         long userId, int start, int end,
314         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.PortalException,
316             com.liferay.portal.SystemException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
320         long userId, int type, int start, int end,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.PortalException,
323             com.liferay.portal.SystemException;
324 
325     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
327         long userId1, long userId2, int start, int end,
328         com.liferay.portal.kernel.util.OrderByComparator obc)
329         throws com.liferay.portal.PortalException,
330             com.liferay.portal.SystemException;
331 
332     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
334         long userId1, long userId2, int type, int start, int end,
335         com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException;
338 
339     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340     public int getSocialUsersCount(long userId)
341         throws com.liferay.portal.PortalException,
342             com.liferay.portal.SystemException;
343 
344     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345     public int getSocialUsersCount(long userId, int type)
346         throws com.liferay.portal.PortalException,
347             com.liferay.portal.SystemException;
348 
349     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350     public int getSocialUsersCount(long userId1, long userId2)
351         throws com.liferay.portal.PortalException,
352             com.liferay.portal.SystemException;
353 
354     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355     public int getSocialUsersCount(long userId1, long userId2, int type)
356         throws com.liferay.portal.PortalException,
357             com.liferay.portal.SystemException;
358 
359     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360     public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
361         long userGroupId) throws com.liferay.portal.SystemException;
362 
363     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364     public int getUserGroupUsersCount(long userGroupId)
365         throws com.liferay.portal.SystemException;
366 
367     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368     public int getUserGroupUsersCount(long userGroupId, boolean active)
369         throws com.liferay.portal.PortalException,
370             com.liferay.portal.SystemException;
371 
372     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373     public com.liferay.portal.model.User getUserByContactId(long contactId)
374         throws com.liferay.portal.PortalException,
375             com.liferay.portal.SystemException;
376 
377     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378     public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
379         java.lang.String emailAddress)
380         throws com.liferay.portal.PortalException,
381             com.liferay.portal.SystemException;
382 
383     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384     public com.liferay.portal.model.User getUserById(long userId)
385         throws com.liferay.portal.PortalException,
386             com.liferay.portal.SystemException;
387 
388     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389     public com.liferay.portal.model.User getUserById(long companyId, long userId)
390         throws com.liferay.portal.PortalException,
391             com.liferay.portal.SystemException;
392 
393     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394     public com.liferay.portal.model.User getUserByOpenId(
395         java.lang.String openId)
396         throws com.liferay.portal.PortalException,
397             com.liferay.portal.SystemException;
398 
399     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400     public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
401         throws com.liferay.portal.PortalException,
402             com.liferay.portal.SystemException;
403 
404     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405     public com.liferay.portal.model.User getUserByScreenName(long companyId,
406         java.lang.String screenName)
407         throws com.liferay.portal.PortalException,
408             com.liferay.portal.SystemException;
409 
410     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411     public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
412         throws com.liferay.portal.PortalException,
413             com.liferay.portal.SystemException;
414 
415     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416     public long getUserIdByEmailAddress(long companyId,
417         java.lang.String emailAddress)
418         throws com.liferay.portal.PortalException,
419             com.liferay.portal.SystemException;
420 
421     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422     public long getUserIdByScreenName(long companyId,
423         java.lang.String screenName)
424         throws com.liferay.portal.PortalException,
425             com.liferay.portal.SystemException;
426 
427     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428     public boolean hasGroupUser(long groupId, long userId)
429         throws com.liferay.portal.SystemException;
430 
431     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432     public boolean hasOrganizationUser(long organizationId, long userId)
433         throws com.liferay.portal.SystemException;
434 
435     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436     public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
437         throws com.liferay.portal.SystemException;
438 
439     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440     public boolean hasRoleUser(long roleId, long userId)
441         throws com.liferay.portal.SystemException;
442 
443     /**
444     * Returns true if the user has the role.
445     *
446     * @return true if the user has the role
447     */
448     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449     public boolean hasRoleUser(long companyId, java.lang.String name,
450         long userId, boolean inherited)
451         throws com.liferay.portal.PortalException,
452             com.liferay.portal.SystemException;
453 
454     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455     public boolean hasUserGroupUser(long userGroupId, long userId)
456         throws com.liferay.portal.SystemException;
457 
458     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459     public boolean isPasswordExpired(com.liferay.portal.model.User user)
460         throws com.liferay.portal.PortalException,
461             com.liferay.portal.SystemException;
462 
463     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464     public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
465         throws com.liferay.portal.PortalException,
466             com.liferay.portal.SystemException;
467 
468     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469     public void reIndex(long userId) throws com.liferay.portal.SystemException;
470 
471     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472     public void reIndex(java.lang.String[] ids)
473         throws com.liferay.portal.SystemException;
474 
475     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476     public com.liferay.portal.kernel.search.Hits search(long companyId,
477         java.lang.String keywords, java.lang.Boolean active,
478         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
479         int start, int end, com.liferay.portal.kernel.search.Sort sort)
480         throws com.liferay.portal.SystemException;
481 
482     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483     public com.liferay.portal.kernel.search.Hits search(long companyId,
484         long userId, java.lang.String keywords, java.lang.Boolean active,
485         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
486         int start, int end, com.liferay.portal.kernel.search.Sort sort)
487         throws com.liferay.portal.SystemException;
488 
489     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490     public com.liferay.portal.kernel.search.Hits search(long companyId,
491         java.lang.String firstName, java.lang.String middleName,
492         java.lang.String lastName, java.lang.String screenName,
493         java.lang.String emailAddress, java.lang.Boolean active,
494         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
495         boolean andSearch, int start, int end,
496         com.liferay.portal.kernel.search.Sort sort)
497         throws com.liferay.portal.SystemException;
498 
499     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500     public com.liferay.portal.kernel.search.Hits search(long companyId,
501         long userId, java.lang.String firstName, java.lang.String middleName,
502         java.lang.String lastName, java.lang.String screenName,
503         java.lang.String emailAddress, java.lang.Boolean active,
504         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
505         boolean andSearch, int start, int end,
506         com.liferay.portal.kernel.search.Sort sort)
507         throws com.liferay.portal.SystemException;
508 
509     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510     public java.util.List<com.liferay.portal.model.User> search(
511         long companyId, java.lang.String keywords, java.lang.Boolean active,
512         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
513         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
514         throws com.liferay.portal.SystemException;
515 
516     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517     public java.util.List<com.liferay.portal.model.User> search(
518         long companyId, java.lang.String firstName,
519         java.lang.String middleName, java.lang.String lastName,
520         java.lang.String screenName, java.lang.String emailAddress,
521         java.lang.Boolean active,
522         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
523         boolean andSearch, int start, int end,
524         com.liferay.portal.kernel.util.OrderByComparator obc)
525         throws com.liferay.portal.SystemException;
526 
527     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528     public int searchCount(long companyId, java.lang.String keywords,
529         java.lang.Boolean active,
530         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
531         throws com.liferay.portal.SystemException;
532 
533     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534     public int searchCount(long companyId, java.lang.String firstName,
535         java.lang.String middleName, java.lang.String lastName,
536         java.lang.String screenName, java.lang.String emailAddress,
537         java.lang.Boolean active,
538         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
539         boolean andSearch) throws com.liferay.portal.SystemException;
540 
541     public void sendPassword(long companyId, java.lang.String emailAddress,
542         java.lang.String remoteAddr, java.lang.String remoteHost,
543         java.lang.String userAgent, java.lang.String fromName,
544         java.lang.String fromAddress, java.lang.String subject,
545         java.lang.String body)
546         throws com.liferay.portal.PortalException,
547             com.liferay.portal.SystemException;
548 
549     public void setRoleUsers(long roleId, long[] userIds)
550         throws com.liferay.portal.SystemException;
551 
552     public void setUserGroupUsers(long userGroupId, long[] userIds)
553         throws com.liferay.portal.PortalException,
554             com.liferay.portal.SystemException;
555 
556     public void unsetGroupUsers(long groupId, long[] userIds)
557         throws com.liferay.portal.SystemException;
558 
559     public void unsetOrganizationUsers(long organizationId, long[] userIds)
560         throws com.liferay.portal.PortalException,
561             com.liferay.portal.SystemException;
562 
563     public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
564         throws com.liferay.portal.SystemException;
565 
566     public void unsetRoleUsers(long roleId, long[] userIds)
567         throws com.liferay.portal.PortalException,
568             com.liferay.portal.SystemException;
569 
570     public void unsetRoleUsers(long roleId,
571         java.util.List<com.liferay.portal.model.User> users)
572         throws com.liferay.portal.PortalException,
573             com.liferay.portal.SystemException;
574 
575     public void unsetUserGroupUsers(long userGroupId, long[] userIds)
576         throws com.liferay.portal.SystemException;
577 
578     public com.liferay.portal.model.User updateActive(long userId,
579         boolean active)
580         throws com.liferay.portal.PortalException,
581             com.liferay.portal.SystemException;
582 
583     public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
584         boolean agreedToTermsOfUse)
585         throws com.liferay.portal.PortalException,
586             com.liferay.portal.SystemException;
587 
588     public com.liferay.portal.model.User updateCreateDate(long userId,
589         java.util.Date createDate)
590         throws com.liferay.portal.PortalException,
591             com.liferay.portal.SystemException;
592 
593     public com.liferay.portal.model.User updateEmailAddress(long userId,
594         java.lang.String password, java.lang.String emailAddress1,
595         java.lang.String emailAddress2)
596         throws com.liferay.portal.PortalException,
597             com.liferay.portal.SystemException;
598 
599     public void updateGroups(long userId, long[] newGroupIds)
600         throws com.liferay.portal.SystemException;
601 
602     public com.liferay.portal.model.User updateLastLogin(long userId,
603         java.lang.String loginIP)
604         throws com.liferay.portal.PortalException,
605             com.liferay.portal.SystemException;
606 
607     public com.liferay.portal.model.User updateLockout(
608         com.liferay.portal.model.User user, boolean lockout)
609         throws com.liferay.portal.PortalException,
610             com.liferay.portal.SystemException;
611 
612     public com.liferay.portal.model.User updateLockoutByEmailAddress(
613         long companyId, java.lang.String emailAddress, boolean lockout)
614         throws com.liferay.portal.PortalException,
615             com.liferay.portal.SystemException;
616 
617     public com.liferay.portal.model.User updateLockoutById(long userId,
618         boolean lockout)
619         throws com.liferay.portal.PortalException,
620             com.liferay.portal.SystemException;
621 
622     public com.liferay.portal.model.User updateLockoutByScreenName(
623         long companyId, java.lang.String screenName, boolean lockout)
624         throws com.liferay.portal.PortalException,
625             com.liferay.portal.SystemException;
626 
627     public com.liferay.portal.model.User updateModifiedDate(long userId,
628         java.util.Date modifiedDate)
629         throws com.liferay.portal.PortalException,
630             com.liferay.portal.SystemException;
631 
632     public void updateOpenId(long userId, java.lang.String openId)
633         throws com.liferay.portal.PortalException,
634             com.liferay.portal.SystemException;
635 
636     public void updateOrganizations(long userId, long[] newOrganizationIds)
637         throws com.liferay.portal.PortalException,
638             com.liferay.portal.SystemException;
639 
640     public com.liferay.portal.model.User updatePassword(long userId,
641         java.lang.String password1, java.lang.String password2,
642         boolean passwordReset)
643         throws com.liferay.portal.PortalException,
644             com.liferay.portal.SystemException;
645 
646     public com.liferay.portal.model.User updatePassword(long userId,
647         java.lang.String password1, java.lang.String password2,
648         boolean passwordReset, boolean silentUpdate)
649         throws com.liferay.portal.PortalException,
650             com.liferay.portal.SystemException;
651 
652     public com.liferay.portal.model.User updatePasswordManually(long userId,
653         java.lang.String password, boolean passwordEncrypted,
654         boolean passwordReset, java.util.Date passwordModifiedDate)
655         throws com.liferay.portal.PortalException,
656             com.liferay.portal.SystemException;
657 
658     public void updatePasswordReset(long userId, boolean passwordReset)
659         throws com.liferay.portal.PortalException,
660             com.liferay.portal.SystemException;
661 
662     public void updatePortrait(long userId, byte[] bytes)
663         throws com.liferay.portal.PortalException,
664             com.liferay.portal.SystemException;
665 
666     public void updateReminderQuery(long userId, java.lang.String question,
667         java.lang.String answer)
668         throws com.liferay.portal.PortalException,
669             com.liferay.portal.SystemException;
670 
671     public void updateScreenName(long userId, java.lang.String screenName)
672         throws com.liferay.portal.PortalException,
673             com.liferay.portal.SystemException;
674 
675     public com.liferay.portal.model.User updateUser(long userId,
676         java.lang.String oldPassword, java.lang.String newPassword1,
677         java.lang.String newPassword2, boolean passwordReset,
678         java.lang.String reminderQueryQuestion,
679         java.lang.String reminderQueryAnswer, java.lang.String screenName,
680         java.lang.String emailAddress, java.lang.String openId,
681         java.lang.String languageId, java.lang.String timeZoneId,
682         java.lang.String greeting, java.lang.String comments,
683         java.lang.String firstName, java.lang.String middleName,
684         java.lang.String lastName, int prefixId, int suffixId, boolean male,
685         int birthdayMonth, int birthdayDay, int birthdayYear,
686         java.lang.String smsSn, java.lang.String aimSn,
687         java.lang.String facebookSn, java.lang.String icqSn,
688         java.lang.String jabberSn, java.lang.String msnSn,
689         java.lang.String mySpaceSn, java.lang.String skypeSn,
690         java.lang.String twitterSn, java.lang.String ymSn,
691         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
692         long[] roleIds,
693         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
694         long[] userGroupIds,
695         com.liferay.portal.service.ServiceContext serviceContext)
696         throws com.liferay.portal.PortalException,
697             com.liferay.portal.SystemException;
698 
699     public void updateTagsAsset(long userId,
700         com.liferay.portal.model.User user, java.lang.String[] tagsEntries)
701         throws com.liferay.portal.PortalException,
702             com.liferay.portal.SystemException;
703 }