1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="UserLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portal.service.impl.UserLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portal.service.UserLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface UserLocalService {
57      public com.liferay.portal.model.User addUser(
58          com.liferay.portal.model.User user)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portal.model.User createUser(long userId);
62  
63      public void deleteUser(long userId)
64          throws com.liferay.portal.SystemException,
65              com.liferay.portal.PortalException;
66  
67      public void deleteUser(com.liferay.portal.model.User user)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portal.model.User getUser(long userId)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portal.PortalException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.util.List<com.liferay.portal.model.User> getUsers(int start,
85          int end) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public int getUsersCount() throws com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.User updateUser(
91          com.liferay.portal.model.User user)
92          throws com.liferay.portal.SystemException;
93  
94      public void addGroupUsers(long groupId, long[] userIds)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      public void addOrganizationUsers(long organizationId, long[] userIds)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
103         throws com.liferay.portal.SystemException;
104 
105     public void addRoleUsers(long roleId, long[] userIds)
106         throws com.liferay.portal.SystemException;
107 
108     public void addUserGroupUsers(long userGroupId, long[] userIds)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.User addUser(long creatorUserId,
113         long companyId, boolean autoPassword, java.lang.String password1,
114         java.lang.String password2, boolean autoScreenName,
115         java.lang.String screenName, java.lang.String emailAddress,
116         java.lang.String openId, java.util.Locale locale,
117         java.lang.String firstName, java.lang.String middleName,
118         java.lang.String lastName, int prefixId, int suffixId, boolean male,
119         int birthdayMonth, int birthdayDay, int birthdayYear,
120         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
121         long[] roleIds, long[] userGroupIds, boolean sendEmail,
122         com.liferay.portal.service.ServiceContext serviceContext)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public int authenticateByEmailAddress(long companyId,
127         java.lang.String emailAddress, java.lang.String password,
128         java.util.Map<String, String[]> headerMap,
129         java.util.Map<String, String[]> parameterMap)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public int authenticateByScreenName(long companyId,
134         java.lang.String screenName, java.lang.String password,
135         java.util.Map<String, String[]> headerMap,
136         java.util.Map<String, String[]> parameterMap)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public int authenticateByUserId(long companyId, long userId,
141         java.lang.String password, java.util.Map<String, String[]> headerMap,
142         java.util.Map<String, String[]> parameterMap)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public long authenticateForBasic(long companyId, java.lang.String authType,
147         java.lang.String login, java.lang.String password)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
152 
153     public void checkLockout(com.liferay.portal.model.User user)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void checkLoginFailure(com.liferay.portal.model.User user)
158         throws com.liferay.portal.SystemException;
159 
160     public void checkLoginFailureByEmailAddress(long companyId,
161         java.lang.String emailAddress)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException;
164 
165     public void checkLoginFailureById(long userId)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public void checkLoginFailureByScreenName(long companyId,
170         java.lang.String screenName)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void checkPasswordExpired(com.liferay.portal.model.User user)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public void clearOrganizationUsers(long organizationId)
179         throws com.liferay.portal.SystemException;
180 
181     public void clearUserGroupUsers(long userGroupId)
182         throws com.liferay.portal.SystemException;
183 
184     public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
185         long companyId, java.lang.String name, java.lang.String password)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     public void deletePasswordPolicyUser(long passwordPolicyId, long userId)
190         throws com.liferay.portal.SystemException;
191 
192     public void deletePortrait(long userId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException;
195 
196     public void deleteRoleUser(long roleId, long userId)
197         throws com.liferay.portal.SystemException;
198 
199     public java.lang.String encryptUserId(java.lang.String name)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portal.model.User getDefaultUser(long companyId)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public long getDefaultUserId(long companyId)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public long[] getGroupUserIds(long groupId)
215         throws com.liferay.portal.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public java.util.List<com.liferay.portal.model.User> getGroupUsers(
219         long groupId) throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public int getGroupUsersCount(long groupId)
223         throws com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public int getGroupUsersCount(long groupId, boolean active)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
232         java.lang.String type) throws com.liferay.portal.SystemException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public long[] getOrganizationUserIds(long organizationId)
236         throws com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
240         long organizationId) throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public int getOrganizationUsersCount(long organizationId)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public int getOrganizationUsersCount(long organizationId, boolean active)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public java.util.List<com.liferay.portal.model.User> getPermissionUsers(
253         long companyId, long groupId, java.lang.String name,
254         java.lang.String primKey, java.lang.String actionId,
255         java.lang.String firstName, java.lang.String middleName,
256         java.lang.String lastName, java.lang.String emailAddress,
257         boolean andOperator, int start, int end)
258         throws com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public int getPermissionUsersCount(long companyId, long groupId,
262         java.lang.String name, java.lang.String primKey,
263         java.lang.String actionId, java.lang.String firstName,
264         java.lang.String middleName, java.lang.String lastName,
265         java.lang.String emailAddress, boolean andOperator)
266         throws com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public long[] getRoleUserIds(long roleId)
270         throws com.liferay.portal.SystemException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public java.util.List<com.liferay.portal.model.User> getRoleUsers(
274         long roleId) throws com.liferay.portal.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public int getRoleUsersCount(long roleId)
278         throws com.liferay.portal.SystemException;
279 
280     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281     public int getRoleUsersCount(long roleId, boolean active)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException;
284 
285     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
287         long userId, int start, int end,
288         com.liferay.portal.kernel.util.OrderByComparator obc)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException;
291 
292     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
294         long userId, int type, int start, int end,
295         com.liferay.portal.kernel.util.OrderByComparator obc)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException;
298 
299     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
301         long userId1, long userId2, int start, int end,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException;
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
308         long userId1, long userId2, int type, int start, int end,
309         com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.PortalException,
311             com.liferay.portal.SystemException;
312 
313     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314     public int getSocialUsersCount(long userId)
315         throws com.liferay.portal.PortalException,
316             com.liferay.portal.SystemException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public int getSocialUsersCount(long userId, int type)
320         throws com.liferay.portal.PortalException,
321             com.liferay.portal.SystemException;
322 
323     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324     public int getSocialUsersCount(long userId1, long userId2)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException;
327 
328     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329     public int getSocialUsersCount(long userId1, long userId2, int type)
330         throws com.liferay.portal.PortalException,
331             com.liferay.portal.SystemException;
332 
333     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334     public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
335         long userGroupId) throws com.liferay.portal.SystemException;
336 
337     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338     public int getUserGroupUsersCount(long userGroupId)
339         throws com.liferay.portal.SystemException;
340 
341     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342     public int getUserGroupUsersCount(long userGroupId, boolean active)
343         throws com.liferay.portal.PortalException,
344             com.liferay.portal.SystemException;
345 
346     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347     public com.liferay.portal.model.User getUserByContactId(long contactId)
348         throws com.liferay.portal.PortalException,
349             com.liferay.portal.SystemException;
350 
351     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352     public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
353         java.lang.String emailAddress)
354         throws com.liferay.portal.PortalException,
355             com.liferay.portal.SystemException;
356 
357     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358     public com.liferay.portal.model.User getUserById(long userId)
359         throws com.liferay.portal.PortalException,
360             com.liferay.portal.SystemException;
361 
362     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363     public com.liferay.portal.model.User getUserById(long companyId, long userId)
364         throws com.liferay.portal.PortalException,
365             com.liferay.portal.SystemException;
366 
367     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368     public com.liferay.portal.model.User getUserByOpenId(
369         java.lang.String openId)
370         throws com.liferay.portal.PortalException,
371             com.liferay.portal.SystemException;
372 
373     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374     public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
375         throws com.liferay.portal.PortalException,
376             com.liferay.portal.SystemException;
377 
378     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379     public com.liferay.portal.model.User getUserByScreenName(long companyId,
380         java.lang.String screenName)
381         throws com.liferay.portal.PortalException,
382             com.liferay.portal.SystemException;
383 
384     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385     public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
386         throws com.liferay.portal.PortalException,
387             com.liferay.portal.SystemException;
388 
389     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390     public long getUserIdByEmailAddress(long companyId,
391         java.lang.String emailAddress)
392         throws com.liferay.portal.PortalException,
393             com.liferay.portal.SystemException;
394 
395     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396     public long getUserIdByScreenName(long companyId,
397         java.lang.String screenName)
398         throws com.liferay.portal.PortalException,
399             com.liferay.portal.SystemException;
400 
401     public boolean hasGroupUser(long groupId, long userId)
402         throws com.liferay.portal.SystemException;
403 
404     public boolean hasOrganizationUser(long organizationId, long userId)
405         throws com.liferay.portal.SystemException;
406 
407     public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
408         throws com.liferay.portal.SystemException;
409 
410     public boolean hasRoleUser(long roleId, long userId)
411         throws com.liferay.portal.SystemException;
412 
413     public boolean hasUserGroupUser(long userGroupId, long userId)
414         throws com.liferay.portal.SystemException;
415 
416     public boolean isPasswordExpired(com.liferay.portal.model.User user)
417         throws com.liferay.portal.PortalException,
418             com.liferay.portal.SystemException;
419 
420     public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
421         throws com.liferay.portal.PortalException,
422             com.liferay.portal.SystemException;
423 
424     public void reIndex(long userId) throws com.liferay.portal.SystemException;
425 
426     public void reIndex(java.lang.String[] ids)
427         throws com.liferay.portal.SystemException;
428 
429     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430     public com.liferay.portal.kernel.search.Hits search(long companyId,
431         java.lang.String keywords, java.lang.Boolean active,
432         java.util.LinkedHashMap<String, Object> params, int start, int end,
433         com.liferay.portal.kernel.search.Sort sort)
434         throws com.liferay.portal.SystemException;
435 
436     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437     public com.liferay.portal.kernel.search.Hits search(long companyId,
438         java.lang.String firstName, java.lang.String middleName,
439         java.lang.String lastName, java.lang.String screenName,
440         java.lang.String emailAddress, java.lang.Boolean active,
441         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
442         int start, int end, com.liferay.portal.kernel.search.Sort sort)
443         throws com.liferay.portal.SystemException;
444 
445     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446     public java.util.List<com.liferay.portal.model.User> search(
447         long companyId, java.lang.String keywords, java.lang.Boolean active,
448         java.util.LinkedHashMap<String, Object> params, int start, int end,
449         com.liferay.portal.kernel.util.OrderByComparator obc)
450         throws com.liferay.portal.SystemException;
451 
452     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453     public java.util.List<com.liferay.portal.model.User> search(
454         long companyId, java.lang.String firstName,
455         java.lang.String middleName, java.lang.String lastName,
456         java.lang.String screenName, java.lang.String emailAddress,
457         java.lang.Boolean active,
458         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
459         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
460         throws com.liferay.portal.SystemException;
461 
462     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463     public int searchCount(long companyId, java.lang.String keywords,
464         java.lang.Boolean active, java.util.LinkedHashMap<String, Object> params)
465         throws com.liferay.portal.SystemException;
466 
467     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468     public int searchCount(long companyId, java.lang.String firstName,
469         java.lang.String middleName, java.lang.String lastName,
470         java.lang.String screenName, java.lang.String emailAddress,
471         java.lang.Boolean active,
472         java.util.LinkedHashMap<String, Object> params, boolean andSearch)
473         throws com.liferay.portal.SystemException;
474 
475     public void sendPassword(long companyId, java.lang.String emailAddress,
476         java.lang.String remoteAddr, java.lang.String remoteHost,
477         java.lang.String userAgent, java.lang.String fromName,
478         java.lang.String fromAddress, java.lang.String subject,
479         java.lang.String body)
480         throws com.liferay.portal.PortalException,
481             com.liferay.portal.SystemException;
482 
483     public void setRoleUsers(long roleId, long[] userIds)
484         throws com.liferay.portal.SystemException;
485 
486     public void setUserGroupUsers(long userGroupId, long[] userIds)
487         throws com.liferay.portal.PortalException,
488             com.liferay.portal.SystemException;
489 
490     public void unsetGroupUsers(long groupId, long[] userIds)
491         throws com.liferay.portal.SystemException;
492 
493     public void unsetOrganizationUsers(long organizationId, long[] userIds)
494         throws com.liferay.portal.PortalException,
495             com.liferay.portal.SystemException;
496 
497     public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
498         throws com.liferay.portal.SystemException;
499 
500     public void unsetRoleUsers(long roleId, long[] userIds)
501         throws com.liferay.portal.PortalException,
502             com.liferay.portal.SystemException;
503 
504     public void unsetRoleUsers(long roleId,
505         java.util.List<com.liferay.portal.model.User> users)
506         throws com.liferay.portal.PortalException,
507             com.liferay.portal.SystemException;
508 
509     public void unsetUserGroupUsers(long userGroupId, long[] userIds)
510         throws com.liferay.portal.SystemException;
511 
512     public com.liferay.portal.model.User updateActive(long userId,
513         boolean active)
514         throws com.liferay.portal.PortalException,
515             com.liferay.portal.SystemException;
516 
517     public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
518         boolean agreedToTermsOfUse)
519         throws com.liferay.portal.PortalException,
520             com.liferay.portal.SystemException;
521 
522     public com.liferay.portal.model.User updateCreateDate(long userId,
523         java.util.Date createDate)
524         throws com.liferay.portal.PortalException,
525             com.liferay.portal.SystemException;
526 
527     public com.liferay.portal.model.User updateEmailAddress(long userId,
528         java.lang.String password, java.lang.String emailAddress1,
529         java.lang.String emailAddress2)
530         throws com.liferay.portal.PortalException,
531             com.liferay.portal.SystemException;
532 
533     public void updateGroups(long userId, long[] newGroupIds)
534         throws com.liferay.portal.PortalException,
535             com.liferay.portal.SystemException;
536 
537     public com.liferay.portal.model.User updateLastLogin(long userId,
538         java.lang.String loginIP)
539         throws com.liferay.portal.PortalException,
540             com.liferay.portal.SystemException;
541 
542     public com.liferay.portal.model.User updateLockout(
543         com.liferay.portal.model.User user, boolean lockout)
544         throws com.liferay.portal.PortalException,
545             com.liferay.portal.SystemException;
546 
547     public com.liferay.portal.model.User updateLockoutByEmailAddress(
548         long companyId, java.lang.String emailAddress, boolean lockout)
549         throws com.liferay.portal.PortalException,
550             com.liferay.portal.SystemException;
551 
552     public com.liferay.portal.model.User updateLockoutById(long userId,
553         boolean lockout)
554         throws com.liferay.portal.PortalException,
555             com.liferay.portal.SystemException;
556 
557     public com.liferay.portal.model.User updateLockoutByScreenName(
558         long companyId, java.lang.String screenName, boolean lockout)
559         throws com.liferay.portal.PortalException,
560             com.liferay.portal.SystemException;
561 
562     public com.liferay.portal.model.User updateModifiedDate(long userId,
563         java.util.Date modifiedDate)
564         throws com.liferay.portal.PortalException,
565             com.liferay.portal.SystemException;
566 
567     public void updateOpenId(long userId, java.lang.String openId)
568         throws com.liferay.portal.PortalException,
569             com.liferay.portal.SystemException;
570 
571     public void updateOrganizations(long userId, long[] newOrganizationIds)
572         throws com.liferay.portal.PortalException,
573             com.liferay.portal.SystemException;
574 
575     public com.liferay.portal.model.User updatePassword(long userId,
576         java.lang.String password1, java.lang.String password2,
577         boolean passwordReset)
578         throws com.liferay.portal.PortalException,
579             com.liferay.portal.SystemException;
580 
581     public com.liferay.portal.model.User updatePassword(long userId,
582         java.lang.String password1, java.lang.String password2,
583         boolean passwordReset, boolean silentUpdate)
584         throws com.liferay.portal.PortalException,
585             com.liferay.portal.SystemException;
586 
587     public com.liferay.portal.model.User updatePasswordManually(long userId,
588         java.lang.String password, boolean passwordEncrypted,
589         boolean passwordReset, java.util.Date passwordModifiedDate)
590         throws com.liferay.portal.PortalException,
591             com.liferay.portal.SystemException;
592 
593     public void updatePasswordReset(long userId, boolean passwordReset)
594         throws com.liferay.portal.PortalException,
595             com.liferay.portal.SystemException;
596 
597     public void updatePortrait(long userId, byte[] bytes)
598         throws com.liferay.portal.PortalException,
599             com.liferay.portal.SystemException;
600 
601     public void updateReminderQuery(long userId, java.lang.String question,
602         java.lang.String answer)
603         throws com.liferay.portal.PortalException,
604             com.liferay.portal.SystemException;
605 
606     public void updateScreenName(long userId, java.lang.String screenName)
607         throws com.liferay.portal.PortalException,
608             com.liferay.portal.SystemException;
609 
610     public com.liferay.portal.model.User updateUser(long userId,
611         java.lang.String oldPassword, java.lang.String newPassword1,
612         java.lang.String newPassword2, boolean passwordReset,
613         java.lang.String reminderQueryQuestion,
614         java.lang.String reminderQueryAnswer, java.lang.String screenName,
615         java.lang.String emailAddress, java.lang.String openId,
616         java.lang.String languageId, java.lang.String timeZoneId,
617         java.lang.String greeting, java.lang.String comments,
618         java.lang.String firstName, java.lang.String middleName,
619         java.lang.String lastName, int prefixId, int suffixId, boolean male,
620         int birthdayMonth, int birthdayDay, int birthdayYear,
621         java.lang.String smsSn, java.lang.String aimSn,
622         java.lang.String facebookSn, java.lang.String icqSn,
623         java.lang.String jabberSn, java.lang.String msnSn,
624         java.lang.String mySpaceSn, java.lang.String skypeSn,
625         java.lang.String twitterSn, java.lang.String ymSn,
626         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
627         long[] roleIds,
628         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
629         long[] userGroupIds,
630         com.liferay.portal.service.ServiceContext serviceContext)
631         throws com.liferay.portal.PortalException,
632             com.liferay.portal.SystemException;
633 }