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