1   /**
2    * Copyright (c) 2000-2008 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.util.Locale locale, java.lang.String firstName,
117         java.lang.String middleName, java.lang.String lastName, int prefixId,
118         int suffixId, boolean male, int birthdayMonth, int birthdayDay,
119         int birthdayYear, java.lang.String jobTitle, long[] organizationIds,
120         boolean sendEmail)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public int authenticateByEmailAddress(long companyId,
125         java.lang.String emailAddress, java.lang.String password,
126         java.util.Map<String, String[]> headerMap,
127         java.util.Map<String, String[]> parameterMap)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public int authenticateByScreenName(long companyId,
132         java.lang.String screenName, java.lang.String password,
133         java.util.Map<String, String[]> headerMap,
134         java.util.Map<String, String[]> parameterMap)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public int authenticateByUserId(long companyId, long userId,
139         java.lang.String password, java.util.Map<String, String[]> headerMap,
140         java.util.Map<String, String[]> parameterMap)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public long authenticateForBasic(long companyId, java.lang.String authType,
145         java.lang.String login, java.lang.String password)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
150 
151     public void checkLockout(com.liferay.portal.model.User user)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void checkLoginFailure(com.liferay.portal.model.User user)
156         throws com.liferay.portal.SystemException;
157 
158     public void checkLoginFailureByEmailAddress(long companyId,
159         java.lang.String emailAddress)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void checkLoginFailureById(long userId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void checkLoginFailureByScreenName(long companyId,
168         java.lang.String screenName)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     public void checkPasswordExpired(com.liferay.portal.model.User user)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public void clearOrganizationUsers(long organizationId)
177         throws com.liferay.portal.SystemException;
178 
179     public void clearUserGroupUsers(long userGroupId)
180         throws com.liferay.portal.SystemException;
181 
182     public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
183         long companyId, java.lang.String name, java.lang.String password)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException;
186 
187     public void deletePasswordPolicyUser(long passwordPolicyId, long userId)
188         throws com.liferay.portal.SystemException;
189 
190     public void deleteRoleUser(long roleId, long userId)
191         throws com.liferay.portal.SystemException;
192 
193     public java.lang.String encryptUserId(java.lang.String name)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portal.model.User getDefaultUser(long companyId)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public long getDefaultUserId(long companyId)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portal.model.User> getGroupUsers(
209         long groupId) throws com.liferay.portal.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public int getGroupUsersCount(long groupId)
213         throws com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public int getGroupUsersCount(long groupId, boolean active)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
222         java.lang.String type) throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
226         long organizationId) throws com.liferay.portal.SystemException;
227 
228     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229     public int getOrganizationUsersCount(long organizationId)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int getOrganizationUsersCount(long organizationId, boolean active)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException;
236 
237     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238     public java.util.List<com.liferay.portal.model.User> getPermissionUsers(
239         long companyId, long groupId, java.lang.String name,
240         java.lang.String primKey, java.lang.String actionId,
241         java.lang.String firstName, java.lang.String middleName,
242         java.lang.String lastName, java.lang.String emailAddress,
243         boolean andOperator, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public int getPermissionUsersCount(long companyId, long groupId,
248         java.lang.String name, java.lang.String primKey,
249         java.lang.String actionId, java.lang.String firstName,
250         java.lang.String middleName, java.lang.String lastName,
251         java.lang.String emailAddress, boolean andOperator)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public java.util.List<com.liferay.portal.model.User> getRoleUsers(
256         long roleId) throws com.liferay.portal.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public int getRoleUsersCount(long roleId)
260         throws com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public int getRoleUsersCount(long roleId, boolean active)
264         throws com.liferay.portal.PortalException,
265             com.liferay.portal.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
269         long userId, int start, int end,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.PortalException,
272             com.liferay.portal.SystemException;
273 
274     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
276         long userId, int type, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
283         long userId1, long userId2, int start, int end,
284         com.liferay.portal.kernel.util.OrderByComparator obc)
285         throws com.liferay.portal.PortalException,
286             com.liferay.portal.SystemException;
287 
288     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289     public java.util.List<com.liferay.portal.model.User> getSocialUsers(
290         long userId1, long userId2, int type, int start, int end,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.PortalException,
293             com.liferay.portal.SystemException;
294 
295     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296     public int getSocialUsersCount(long userId)
297         throws com.liferay.portal.PortalException,
298             com.liferay.portal.SystemException;
299 
300     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301     public int getSocialUsersCount(long userId, int type)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException;
304 
305     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306     public int getSocialUsersCount(long userId1, long userId2)
307         throws com.liferay.portal.PortalException,
308             com.liferay.portal.SystemException;
309 
310     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311     public int getSocialUsersCount(long userId1, long userId2, int type)
312         throws com.liferay.portal.PortalException,
313             com.liferay.portal.SystemException;
314 
315     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316     public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
317         long userGroupId) throws com.liferay.portal.SystemException;
318 
319     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320     public int getUserGroupUsersCount(long userGroupId)
321         throws com.liferay.portal.SystemException;
322 
323     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324     public int getUserGroupUsersCount(long userGroupId, boolean active)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException;
327 
328     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329     public com.liferay.portal.model.User getUserByContactId(long contactId)
330         throws com.liferay.portal.PortalException,
331             com.liferay.portal.SystemException;
332 
333     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334     public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
335         java.lang.String emailAddress)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException;
338 
339     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340     public com.liferay.portal.model.User getUserById(long userId)
341         throws com.liferay.portal.PortalException,
342             com.liferay.portal.SystemException;
343 
344     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345     public com.liferay.portal.model.User getUserById(long companyId, long userId)
346         throws com.liferay.portal.PortalException,
347             com.liferay.portal.SystemException;
348 
349     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350     public com.liferay.portal.model.User getUserByOpenId(
351         java.lang.String openId)
352         throws com.liferay.portal.PortalException,
353             com.liferay.portal.SystemException;
354 
355     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356     public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
357         throws com.liferay.portal.PortalException,
358             com.liferay.portal.SystemException;
359 
360     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361     public com.liferay.portal.model.User getUserByScreenName(long companyId,
362         java.lang.String screenName)
363         throws com.liferay.portal.PortalException,
364             com.liferay.portal.SystemException;
365 
366     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367     public long getUserIdByEmailAddress(long companyId,
368         java.lang.String emailAddress)
369         throws com.liferay.portal.PortalException,
370             com.liferay.portal.SystemException;
371 
372     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373     public long getUserIdByScreenName(long companyId,
374         java.lang.String screenName)
375         throws com.liferay.portal.PortalException,
376             com.liferay.portal.SystemException;
377 
378     public boolean hasGroupUser(long groupId, long userId)
379         throws com.liferay.portal.SystemException;
380 
381     public boolean hasOrganizationUser(long organizationId, long userId)
382         throws com.liferay.portal.SystemException;
383 
384     public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
385         throws com.liferay.portal.SystemException;
386 
387     public boolean hasRoleUser(long roleId, long userId)
388         throws com.liferay.portal.SystemException;
389 
390     public boolean hasUserGroupUser(long userGroupId, long userId)
391         throws com.liferay.portal.SystemException;
392 
393     public boolean isPasswordExpired(com.liferay.portal.model.User user)
394         throws com.liferay.portal.PortalException,
395             com.liferay.portal.SystemException;
396 
397     public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
398         throws com.liferay.portal.PortalException,
399             com.liferay.portal.SystemException;
400 
401     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402     public java.util.List<com.liferay.portal.model.User> search(
403         long companyId, java.lang.String keywords, java.lang.Boolean active,
404         java.util.LinkedHashMap<String, Object> params, int start, int end,
405         com.liferay.portal.kernel.util.OrderByComparator obc)
406         throws com.liferay.portal.SystemException;
407 
408     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409     public java.util.List<com.liferay.portal.model.User> search(
410         long companyId, java.lang.String firstName,
411         java.lang.String middleName, java.lang.String lastName,
412         java.lang.String screenName, java.lang.String emailAddress,
413         java.lang.Boolean active,
414         java.util.LinkedHashMap<String, Object> params, boolean andSearch,
415         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
416         throws com.liferay.portal.SystemException;
417 
418     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419     public int searchCount(long companyId, java.lang.String keywords,
420         java.lang.Boolean active, java.util.LinkedHashMap<String, Object> params)
421         throws com.liferay.portal.SystemException;
422 
423     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424     public int searchCount(long companyId, java.lang.String firstName,
425         java.lang.String middleName, java.lang.String lastName,
426         java.lang.String screenName, java.lang.String emailAddress,
427         java.lang.Boolean active,
428         java.util.LinkedHashMap<String, Object> params, boolean andSearch)
429         throws com.liferay.portal.SystemException;
430 
431     public void sendPassword(long companyId, java.lang.String emailAddress,
432         java.lang.String remoteAddr, java.lang.String remoteHost,
433         java.lang.String userAgent)
434         throws com.liferay.portal.PortalException,
435             com.liferay.portal.SystemException;
436 
437     public void setRoleUsers(long roleId, long[] userIds)
438         throws com.liferay.portal.SystemException;
439 
440     public void setUserGroupUsers(long userGroupId, long[] userIds)
441         throws com.liferay.portal.PortalException,
442             com.liferay.portal.SystemException;
443 
444     public void unsetGroupUsers(long groupId, long[] userIds)
445         throws com.liferay.portal.SystemException;
446 
447     public void unsetOrganizationUsers(long organizationId, long[] userIds)
448         throws com.liferay.portal.PortalException,
449             com.liferay.portal.SystemException;
450 
451     public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
452         throws com.liferay.portal.SystemException;
453 
454     public void unsetRoleUsers(long roleId, long[] userIds)
455         throws com.liferay.portal.SystemException;
456 
457     public void unsetRoleUsers(long roleId,
458         java.util.List<com.liferay.portal.model.User> users)
459         throws com.liferay.portal.SystemException;
460 
461     public void unsetUserGroupUsers(long userGroupId, long[] userIds)
462         throws com.liferay.portal.SystemException;
463 
464     public com.liferay.portal.model.User updateActive(long userId,
465         boolean active)
466         throws com.liferay.portal.PortalException,
467             com.liferay.portal.SystemException;
468 
469     public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
470         boolean agreedToTermsOfUse)
471         throws com.liferay.portal.PortalException,
472             com.liferay.portal.SystemException;
473 
474     public com.liferay.portal.model.User updateCreateDate(long userId,
475         java.util.Date createDate)
476         throws com.liferay.portal.PortalException,
477             com.liferay.portal.SystemException;
478 
479     public com.liferay.portal.model.User updateLastLogin(long userId,
480         java.lang.String loginIP)
481         throws com.liferay.portal.PortalException,
482             com.liferay.portal.SystemException;
483 
484     public com.liferay.portal.model.User updateLockout(
485         com.liferay.portal.model.User user, boolean lockout)
486         throws com.liferay.portal.PortalException,
487             com.liferay.portal.SystemException;
488 
489     public com.liferay.portal.model.User updateLockoutByEmailAddress(
490         long companyId, java.lang.String emailAddress, boolean lockout)
491         throws com.liferay.portal.PortalException,
492             com.liferay.portal.SystemException;
493 
494     public com.liferay.portal.model.User updateLockoutById(long userId,
495         boolean lockout)
496         throws com.liferay.portal.PortalException,
497             com.liferay.portal.SystemException;
498 
499     public com.liferay.portal.model.User updateLockoutByScreenName(
500         long companyId, java.lang.String screenName, boolean lockout)
501         throws com.liferay.portal.PortalException,
502             com.liferay.portal.SystemException;
503 
504     public com.liferay.portal.model.User updateModifiedDate(long userId,
505         java.util.Date modifiedDate)
506         throws com.liferay.portal.PortalException,
507             com.liferay.portal.SystemException;
508 
509     public void updateOpenId(long userId, java.lang.String openId)
510         throws com.liferay.portal.PortalException,
511             com.liferay.portal.SystemException;
512 
513     public void updateOrganizations(long userId, long[] newOrganizationIds)
514         throws com.liferay.portal.PortalException,
515             com.liferay.portal.SystemException;
516 
517     public com.liferay.portal.model.User updatePassword(long userId,
518         java.lang.String password1, java.lang.String password2,
519         boolean passwordReset)
520         throws com.liferay.portal.PortalException,
521             com.liferay.portal.SystemException;
522 
523     public com.liferay.portal.model.User updatePassword(long userId,
524         java.lang.String password1, java.lang.String password2,
525         boolean passwordReset, boolean silentUpdate)
526         throws com.liferay.portal.PortalException,
527             com.liferay.portal.SystemException;
528 
529     public com.liferay.portal.model.User updatePasswordManually(long userId,
530         java.lang.String password, boolean passwordEncrypted,
531         boolean passwordReset, java.util.Date passwordModifiedDate)
532         throws com.liferay.portal.PortalException,
533             com.liferay.portal.SystemException;
534 
535     public void updatePasswordReset(long userId, boolean passwordReset)
536         throws com.liferay.portal.PortalException,
537             com.liferay.portal.SystemException;
538 
539     public void updatePortrait(long userId, byte[] bytes)
540         throws com.liferay.portal.PortalException,
541             com.liferay.portal.SystemException;
542 
543     public void updateScreenName(long userId, java.lang.String screenName)
544         throws com.liferay.portal.PortalException,
545             com.liferay.portal.SystemException;
546 
547     public com.liferay.portal.model.User updateUser(long userId,
548         java.lang.String oldPassword, boolean passwordReset,
549         java.lang.String screenName, java.lang.String emailAddress,
550         java.lang.String languageId, java.lang.String timeZoneId,
551         java.lang.String greeting, java.lang.String comments,
552         java.lang.String firstName, java.lang.String middleName,
553         java.lang.String lastName, int prefixId, int suffixId, boolean male,
554         int birthdayMonth, int birthdayDay, int birthdayYear,
555         java.lang.String smsSn, java.lang.String aimSn,
556         java.lang.String facebookSn, java.lang.String icqSn,
557         java.lang.String jabberSn, java.lang.String msnSn,
558         java.lang.String mySpaceSn, java.lang.String skypeSn,
559         java.lang.String twitterSn, java.lang.String ymSn,
560         java.lang.String jobTitle, long[] organizationIds)
561         throws com.liferay.portal.PortalException,
562             com.liferay.portal.SystemException;
563 
564     public com.liferay.portal.model.User updateUser(long userId,
565         java.lang.String oldPassword, java.lang.String newPassword1,
566         java.lang.String newPassword2, boolean passwordReset,
567         java.lang.String screenName, java.lang.String emailAddress,
568         java.lang.String languageId, java.lang.String timeZoneId,
569         java.lang.String greeting, java.lang.String comments,
570         java.lang.String firstName, java.lang.String middleName,
571         java.lang.String lastName, int prefixId, int suffixId, boolean male,
572         int birthdayMonth, int birthdayDay, int birthdayYear,
573         java.lang.String smsSn, java.lang.String aimSn,
574         java.lang.String facebookSn, java.lang.String icqSn,
575         java.lang.String jabberSn, java.lang.String msnSn,
576         java.lang.String mySpaceSn, java.lang.String skypeSn,
577         java.lang.String twitterSn, java.lang.String ymSn,
578         java.lang.String jobTitle, long[] organizationIds)
579         throws com.liferay.portal.PortalException,
580             com.liferay.portal.SystemException;
581 }