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