001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portal.service.impl.UserLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       UserLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface UserLocalService {
043            public com.liferay.portal.model.User addUser(
044                    com.liferay.portal.model.User user)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.User createUser(long userId);
048    
049            public void deleteUser(long userId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public void deleteUser(com.liferay.portal.model.User user)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            @SuppressWarnings("unchecked")
062            public java.util.List dynamicQuery(
063                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064                    int end) throws com.liferay.portal.kernel.exception.SystemException;
065    
066            @SuppressWarnings("unchecked")
067            public java.util.List dynamicQuery(
068                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069                    int end,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public long dynamicQueryCount(
074                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public com.liferay.portal.model.User getUser(long userId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public java.util.List<com.liferay.portal.model.User> getUsers(int start,
084                    int end) throws com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public int getUsersCount()
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portal.model.User updateUser(
091                    com.liferay.portal.model.User user)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.model.User updateUser(
095                    com.liferay.portal.model.User user, boolean merge)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public void addDefaultGroups(long userId)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public void addDefaultRoles(long userId)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public void addDefaultUserGroups(long userId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public void addGroupUsers(long groupId, long[] userIds)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public void addOrganizationUsers(long organizationId, long[] userIds)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public void addRoleUsers(long roleId, long[] userIds)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            public void addTeamUsers(long teamId, long[] userIds)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public com.liferay.portal.model.User addUser(long creatorUserId,
130                    long companyId, boolean autoPassword, java.lang.String password1,
131                    java.lang.String password2, boolean autoScreenName,
132                    java.lang.String screenName, java.lang.String emailAddress,
133                    long facebookId, java.lang.String openId, java.util.Locale locale,
134                    java.lang.String firstName, java.lang.String middleName,
135                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
136                    int birthdayMonth, int birthdayDay, int birthdayYear,
137                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
138                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public void addUserGroupUsers(long userGroupId, long[] userIds)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public int authenticateByEmailAddress(long companyId,
148                    java.lang.String emailAddress, java.lang.String password,
149                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
150                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            public int authenticateByScreenName(long companyId,
155                    java.lang.String screenName, 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 authenticateByUserId(long companyId, long userId,
162                    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 long authenticateForBasic(long companyId, java.lang.String authType,
169                    java.lang.String login, java.lang.String password)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException;
172    
173            public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
174    
175            public void checkLockout(com.liferay.portal.model.User user)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException;
178    
179            public void checkLoginFailure(com.liferay.portal.model.User user)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public void checkLoginFailureByEmailAddress(long companyId,
183                    java.lang.String emailAddress)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException;
186    
187            public void checkLoginFailureById(long userId)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            public void checkLoginFailureByScreenName(long companyId,
192                    java.lang.String screenName)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            public void checkPasswordExpired(com.liferay.portal.model.User user)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException;
199    
200            public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
201                    long companyId, java.lang.String name, java.lang.String password)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException;
204    
205            public void deletePortrait(long userId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            public void deleteRoleUser(long roleId, long userId)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException;
212    
213            public java.lang.String encryptUserId(java.lang.String name)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException;
216    
217            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218            public java.util.List<com.liferay.portal.model.User> getCompanyUsers(
219                    long companyId, int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223            public int getCompanyUsersCount(long companyId)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227            public com.liferay.portal.model.User getDefaultUser(long companyId)
228                    throws com.liferay.portal.kernel.exception.PortalException,
229                            com.liferay.portal.kernel.exception.SystemException;
230    
231            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232            public long getDefaultUserId(long companyId)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException;
235    
236            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237            public long[] getGroupUserIds(long groupId)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241            public java.util.List<com.liferay.portal.model.User> getGroupUsers(
242                    long groupId)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246            public int getGroupUsersCount(long groupId)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250            public int getGroupUsersCount(long groupId, boolean active)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException;
253    
254            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255            public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
256                    java.lang.String type)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260            public java.util.List<com.liferay.portal.model.User> getNoContacts()
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264            public java.util.List<com.liferay.portal.model.User> getNoGroups()
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268            public long[] getOrganizationUserIds(long organizationId)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
273                    long organizationId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277            public int getOrganizationUsersCount(long organizationId)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281            public int getOrganizationUsersCount(long organizationId, boolean active)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286            public long[] getRoleUserIds(long roleId)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
291                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
292    
293            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
295                    long roleId, int start, int end)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299            public int getRoleUsersCount(long roleId)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303            public int getRoleUsersCount(long roleId, boolean active)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException;
306    
307            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
309                    long userId, int type, int start, int end,
310                    com.liferay.portal.kernel.util.OrderByComparator obc)
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 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 userId1, long userId2, int type, 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 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 int getSocialUsersCount(long userId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException;
339    
340            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341            public int getSocialUsersCount(long userId, int type)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346            public int getSocialUsersCount(long userId1, long userId2)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException;
349    
350            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351            public int getSocialUsersCount(long userId1, long userId2, int type)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException;
354    
355            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356            public com.liferay.portal.model.User getUserByContactId(long contactId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException;
359    
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
362                    java.lang.String emailAddress)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException;
365    
366            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367            public com.liferay.portal.model.User getUserByFacebookId(long companyId,
368                    long facebookId)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException;
371    
372            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373            public com.liferay.portal.model.User getUserById(long userId)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException;
376    
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public com.liferay.portal.model.User getUserById(long companyId, long userId)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException;
381    
382            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383            public com.liferay.portal.model.User getUserByOpenId(long companyId,
384                    java.lang.String openId)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException;
387    
388            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389            public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException;
392    
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public com.liferay.portal.model.User getUserByScreenName(long companyId,
395                    java.lang.String screenName)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400            public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException;
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
406                    long userGroupId)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410            public int getUserGroupUsersCount(long userGroupId)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public int getUserGroupUsersCount(long userGroupId, boolean active)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException;
417    
418            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419            public long getUserIdByEmailAddress(long companyId,
420                    java.lang.String emailAddress)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public long getUserIdByScreenName(long companyId,
426                    java.lang.String screenName)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431            public boolean hasGroupUser(long groupId, long userId)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public boolean hasOrganizationUser(long organizationId, long userId)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public boolean hasRoleUser(long roleId, long userId)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Returns <code>true</code> if the user has the role.
448            *
449            * @return <code>true</code> if the user has the role
450            */
451            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452            public boolean hasRoleUser(long companyId, java.lang.String name,
453                    long userId, boolean inherited)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public boolean hasTeamUser(long teamId, long userId)
459                    throws com.liferay.portal.kernel.exception.SystemException;
460    
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public boolean hasUserGroupUser(long userGroupId, long userId)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public boolean isPasswordExpired(com.liferay.portal.model.User user)
467                    throws com.liferay.portal.kernel.exception.PortalException,
468                            com.liferay.portal.kernel.exception.SystemException;
469    
470            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471            public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException;
474    
475            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476            public java.util.List<com.liferay.portal.model.User> search(
477                    long companyId, java.lang.String keywords, java.lang.Boolean active,
478                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
479                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483            public com.liferay.portal.kernel.search.Hits search(long companyId,
484                    java.lang.String keywords, java.lang.Boolean active,
485                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
486                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490            public java.util.List<com.liferay.portal.model.User> search(
491                    long companyId, java.lang.String firstName,
492                    java.lang.String middleName, java.lang.String lastName,
493                    java.lang.String screenName, java.lang.String emailAddress,
494                    java.lang.Boolean active,
495                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
496                    boolean andSearch, int start, int end,
497                    com.liferay.portal.kernel.util.OrderByComparator obc)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501            public com.liferay.portal.kernel.search.Hits search(long companyId,
502                    java.lang.String firstName, java.lang.String middleName,
503                    java.lang.String lastName, java.lang.String screenName,
504                    java.lang.String emailAddress, java.lang.Boolean active,
505                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
506                    boolean andSearch, int start, int end,
507                    com.liferay.portal.kernel.search.Sort sort)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int searchCount(long companyId, java.lang.String keywords,
512                    java.lang.Boolean active,
513                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517            public int searchCount(long companyId, java.lang.String firstName,
518                    java.lang.String middleName, java.lang.String lastName,
519                    java.lang.String screenName, java.lang.String emailAddress,
520                    java.lang.Boolean active,
521                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
522                    boolean andSearch)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            public void sendPassword(long companyId, java.lang.String emailAddress,
526                    java.lang.String remoteAddr, java.lang.String remoteHost,
527                    java.lang.String userAgent, java.lang.String fromName,
528                    java.lang.String fromAddress, java.lang.String subject,
529                    java.lang.String body,
530                    com.liferay.portal.service.ServiceContext serviceContext)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException;
533    
534            public void setRoleUsers(long roleId, long[] userIds)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException;
537    
538            public void setUserGroupUsers(long userGroupId, long[] userIds)
539                    throws com.liferay.portal.kernel.exception.PortalException,
540                            com.liferay.portal.kernel.exception.SystemException;
541    
542            public void unsetGroupUsers(long groupId, long[] userIds)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException;
545    
546            public void unsetOrganizationUsers(long organizationId, long[] userIds)
547                    throws com.liferay.portal.kernel.exception.PortalException,
548                            com.liferay.portal.kernel.exception.SystemException;
549    
550            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            public void unsetRoleUsers(long roleId,
554                    java.util.List<com.liferay.portal.model.User> users)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException;
557    
558            public void unsetRoleUsers(long roleId, long[] userIds)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException;
561    
562            public void unsetTeamUsers(long teamId, long[] userIds)
563                    throws com.liferay.portal.kernel.exception.PortalException,
564                            com.liferay.portal.kernel.exception.SystemException;
565    
566            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException;
569    
570            public com.liferay.portal.model.User updateActive(long userId,
571                    boolean active)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException;
574    
575            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
576                    boolean agreedToTermsOfUse)
577                    throws com.liferay.portal.kernel.exception.PortalException,
578                            com.liferay.portal.kernel.exception.SystemException;
579    
580            public void updateAsset(long userId, com.liferay.portal.model.User user,
581                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException;
584    
585            public com.liferay.portal.model.User updateCreateDate(long userId,
586                    java.util.Date createDate)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException;
589    
590            public com.liferay.portal.model.User updateEmailAddress(long userId,
591                    java.lang.String password, java.lang.String emailAddress1,
592                    java.lang.String emailAddress2)
593                    throws com.liferay.portal.kernel.exception.PortalException,
594                            com.liferay.portal.kernel.exception.SystemException;
595    
596            public void updateGroups(long userId, long[] newGroupIds)
597                    throws com.liferay.portal.kernel.exception.PortalException,
598                            com.liferay.portal.kernel.exception.SystemException;
599    
600            public com.liferay.portal.model.User updateLastLogin(long userId,
601                    java.lang.String loginIP)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException;
604    
605            public com.liferay.portal.model.User updateLockout(
606                    com.liferay.portal.model.User user, boolean lockout)
607                    throws com.liferay.portal.kernel.exception.PortalException,
608                            com.liferay.portal.kernel.exception.SystemException;
609    
610            public com.liferay.portal.model.User updateLockoutByEmailAddress(
611                    long companyId, java.lang.String emailAddress, boolean lockout)
612                    throws com.liferay.portal.kernel.exception.PortalException,
613                            com.liferay.portal.kernel.exception.SystemException;
614    
615            public com.liferay.portal.model.User updateLockoutById(long userId,
616                    boolean lockout)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException;
619    
620            public com.liferay.portal.model.User updateLockoutByScreenName(
621                    long companyId, java.lang.String screenName, boolean lockout)
622                    throws com.liferay.portal.kernel.exception.PortalException,
623                            com.liferay.portal.kernel.exception.SystemException;
624    
625            public com.liferay.portal.model.User updateModifiedDate(long userId,
626                    java.util.Date modifiedDate)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException;
629    
630            public void updateOpenId(long userId, java.lang.String openId)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException;
633    
634            public void updateOrganizations(long userId, long[] newOrganizationIds)
635                    throws com.liferay.portal.kernel.exception.PortalException,
636                            com.liferay.portal.kernel.exception.SystemException;
637    
638            public com.liferay.portal.model.User updatePassword(long userId,
639                    java.lang.String password1, java.lang.String password2,
640                    boolean passwordReset)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException;
643    
644            public com.liferay.portal.model.User updatePassword(long userId,
645                    java.lang.String password1, java.lang.String password2,
646                    boolean passwordReset, boolean silentUpdate)
647                    throws com.liferay.portal.kernel.exception.PortalException,
648                            com.liferay.portal.kernel.exception.SystemException;
649    
650            public com.liferay.portal.model.User updatePasswordManually(long userId,
651                    java.lang.String password, boolean passwordEncrypted,
652                    boolean passwordReset, java.util.Date passwordModifiedDate)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException;
655    
656            public void updatePasswordReset(long userId, boolean passwordReset)
657                    throws com.liferay.portal.kernel.exception.PortalException,
658                            com.liferay.portal.kernel.exception.SystemException;
659    
660            public void updatePortrait(long userId, byte[] bytes)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException;
663    
664            public void updateReminderQuery(long userId, java.lang.String question,
665                    java.lang.String answer)
666                    throws com.liferay.portal.kernel.exception.PortalException,
667                            com.liferay.portal.kernel.exception.SystemException;
668    
669            public void updateScreenName(long userId, java.lang.String screenName)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException;
672    
673            public com.liferay.portal.model.User updateUser(long userId,
674                    java.lang.String oldPassword, java.lang.String newPassword1,
675                    java.lang.String newPassword2, boolean passwordReset,
676                    java.lang.String reminderQueryQuestion,
677                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
678                    java.lang.String emailAddress, long facebookId,
679                    java.lang.String openId, java.lang.String languageId,
680                    java.lang.String timeZoneId, java.lang.String greeting,
681                    java.lang.String comments, java.lang.String firstName,
682                    java.lang.String middleName, java.lang.String lastName, int prefixId,
683                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
684                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
685                    java.lang.String facebookSn, java.lang.String icqSn,
686                    java.lang.String jabberSn, java.lang.String msnSn,
687                    java.lang.String mySpaceSn, java.lang.String skypeSn,
688                    java.lang.String twitterSn, java.lang.String ymSn,
689                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
690                    long[] roleIds,
691                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
692                    long[] userGroupIds,
693                    com.liferay.portal.service.ServiceContext serviceContext)
694                    throws com.liferay.portal.kernel.exception.PortalException,
695                            com.liferay.portal.kernel.exception.SystemException;
696    }