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