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     * The interface for the user local service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link UserLocalServiceUtil} to access the user local service. Add custom service methods to {@link com.liferay.portal.service.impl.UserLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see UserLocalServiceUtil
036     * @see com.liferay.portal.service.base.UserLocalServiceBaseImpl
037     * @see com.liferay.portal.service.impl.UserLocalServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface UserLocalService {
043            /**
044            * Adds the user to the database. Also notifies the appropriate model listeners.
045            *
046            * @param user the user to add
047            * @return the user that was added
048            * @throws SystemException if a system exception occurred
049            */
050            public com.liferay.portal.model.User addUser(
051                    com.liferay.portal.model.User user)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Creates a new user with the primary key. Does not add the user to the database.
056            *
057            * @param userId the primary key for the new user
058            * @return the new user
059            */
060            public com.liferay.portal.model.User createUser(long userId);
061    
062            /**
063            * Deletes the user with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param userId the primary key of the user to delete
066            * @throws PortalException if a user with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public void deleteUser(long userId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * Deletes the user from the database. Also notifies the appropriate model listeners.
075            *
076            * @param user the user to delete
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteUser(com.liferay.portal.model.User user)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query to search with
102            * @param start the lower bound of the range of model instances to return
103            * @param end the upper bound of the range of model instances to return (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Counts the number of rows that match the dynamic query.
135            *
136            * @param dynamicQuery the dynamic query to search with
137            * @return the number of rows that match the dynamic query
138            * @throws SystemException if a system exception occurred
139            */
140            public long dynamicQueryCount(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Gets the user with the primary key.
146            *
147            * @param userId the primary key of the user to get
148            * @return the user
149            * @throws PortalException if a user with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public com.liferay.portal.model.User getUser(long userId)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Gets a range of all the users.
159            *
160            * <p>
161            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
162            * </p>
163            *
164            * @param start the lower bound of the range of users to return
165            * @param end the upper bound of the range of users to return (not inclusive)
166            * @return the range of users
167            * @throws SystemException if a system exception occurred
168            */
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public java.util.List<com.liferay.portal.model.User> getUsers(int start,
171                    int end) throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Gets the number of users.
175            *
176            * @return the number of users
177            * @throws SystemException if a system exception occurred
178            */
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public int getUsersCount()
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            /**
184            * Updates the user in the database. Also notifies the appropriate model listeners.
185            *
186            * @param user the user to update
187            * @return the user that was updated
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portal.model.User updateUser(
191                    com.liferay.portal.model.User user)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Updates the user in the database. Also notifies the appropriate model listeners.
196            *
197            * @param user the user to update
198            * @param merge whether to merge the user with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
199            * @return the user that was updated
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.User updateUser(
203                    com.liferay.portal.model.User user, boolean merge)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public void addDefaultGroups(long userId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            public void addDefaultRoles(long userId)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException;
213    
214            public void addDefaultUserGroups(long userId)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException;
217    
218            public void addGroupUsers(long groupId, long[] userIds)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException;
221    
222            public void addOrganizationUsers(long organizationId, long[] userIds)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException;
225    
226            public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            public void addRoleUsers(long roleId, long[] userIds)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException;
232    
233            public void addTeamUsers(long teamId, long[] userIds)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException;
236    
237            public com.liferay.portal.model.User addUser(long creatorUserId,
238                    long companyId, boolean autoPassword, java.lang.String password1,
239                    java.lang.String password2, boolean autoScreenName,
240                    java.lang.String screenName, java.lang.String emailAddress,
241                    long facebookId, java.lang.String openId, java.util.Locale locale,
242                    java.lang.String firstName, java.lang.String middleName,
243                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
244                    int birthdayMonth, int birthdayDay, int birthdayYear,
245                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
246                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
247                    com.liferay.portal.service.ServiceContext serviceContext)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException;
250    
251            public void addUserGroupUsers(long userGroupId, long[] userIds)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException;
254    
255            public int authenticateByEmailAddress(long companyId,
256                    java.lang.String emailAddress, java.lang.String password,
257                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
258                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException;
261    
262            public int authenticateByScreenName(long companyId,
263                    java.lang.String screenName, java.lang.String password,
264                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
265                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException;
268    
269            public int authenticateByUserId(long companyId, long userId,
270                    java.lang.String password,
271                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
272                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException;
275    
276            public long authenticateForBasic(long companyId, java.lang.String authType,
277                    java.lang.String login, java.lang.String password)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException;
280    
281            public long authenticateForDigest(long companyId,
282                    java.lang.String username, java.lang.String realm,
283                    java.lang.String nonce, java.lang.String method, java.lang.String uri,
284                    java.lang.String response)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException;
287    
288            public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
289    
290            public void checkLockout(com.liferay.portal.model.User user)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            public void checkLoginFailure(com.liferay.portal.model.User user)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            public void checkLoginFailureByEmailAddress(long companyId,
298                    java.lang.String emailAddress)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException;
301    
302            public void checkLoginFailureById(long userId)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            public void checkLoginFailureByScreenName(long companyId,
307                    java.lang.String screenName)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            public void checkPasswordExpired(com.liferay.portal.model.User user)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
316                    long companyId, java.lang.String name, java.lang.String password)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException;
319    
320            public void deletePortrait(long userId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException;
323    
324            public void deleteRoleUser(long roleId, long userId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException;
327    
328            public java.lang.String encryptUserId(java.lang.String name)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException;
331    
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public java.util.List<com.liferay.portal.model.User> getCompanyUsers(
334                    long companyId, int start, int end)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338            public int getCompanyUsersCount(long companyId)
339                    throws com.liferay.portal.kernel.exception.SystemException;
340    
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public com.liferay.portal.model.User getDefaultUser(long companyId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException;
345    
346            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347            public long getDefaultUserId(long companyId)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException;
350    
351            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352            public long[] getGroupUserIds(long groupId)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356            public java.util.List<com.liferay.portal.model.User> getGroupUsers(
357                    long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public int getGroupUsersCount(long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365            public int getGroupUsersCount(long groupId, boolean active)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException;
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
371                    java.lang.String type)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public java.util.List<com.liferay.portal.model.User> getNoContacts()
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public java.util.List<com.liferay.portal.model.User> getNoGroups()
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383            public long[] getOrganizationUserIds(long organizationId)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
388                    long organizationId)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public int getOrganizationUsersCount(long organizationId)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public int getOrganizationUsersCount(long organizationId, boolean active)
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 long[] getRoleUserIds(long roleId)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
406                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
407    
408            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
410                    long roleId, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public int getRoleUsersCount(long roleId)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public int getRoleUsersCount(long roleId, boolean active)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException;
421    
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
424                    long userId, int type, int start, int end,
425                    com.liferay.portal.kernel.util.OrderByComparator obc)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
431                    long userId, int start, int end,
432                    com.liferay.portal.kernel.util.OrderByComparator obc)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException;
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
438                    long userId1, long userId2, int type, int start, int end,
439                    com.liferay.portal.kernel.util.OrderByComparator obc)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
445                    long userId1, long userId2, int start, int end,
446                    com.liferay.portal.kernel.util.OrderByComparator obc)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451            public int getSocialUsersCount(long userId)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException;
454    
455            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456            public int getSocialUsersCount(long userId, int type)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException;
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public int getSocialUsersCount(long userId1, long userId2)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public int getSocialUsersCount(long userId1, long userId2, int type)
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 com.liferay.portal.model.User getUserByContactId(long contactId)
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 com.liferay.portal.model.User getUserByEmailAddress(long companyId,
477                    java.lang.String emailAddress)
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException;
480    
481            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482            public com.liferay.portal.model.User getUserByFacebookId(long companyId,
483                    long facebookId)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException;
486    
487            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488            public com.liferay.portal.model.User getUserById(long userId)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException;
491    
492            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493            public com.liferay.portal.model.User getUserById(long companyId, long userId)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException;
496    
497            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
498            public com.liferay.portal.model.User getUserByOpenId(long companyId,
499                    java.lang.String openId)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException;
502    
503            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504            public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException;
507    
508            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509            public com.liferay.portal.model.User getUserByScreenName(long companyId,
510                    java.lang.String screenName)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException;
518    
519            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520            public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
521                    long userGroupId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public int getUserGroupUsersCount(long userGroupId)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public int getUserGroupUsersCount(long userGroupId, boolean active)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException;
532    
533            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534            public long getUserIdByEmailAddress(long companyId,
535                    java.lang.String emailAddress)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540            public long getUserIdByScreenName(long companyId,
541                    java.lang.String screenName)
542                    throws com.liferay.portal.kernel.exception.PortalException,
543                            com.liferay.portal.kernel.exception.SystemException;
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public boolean hasGroupUser(long groupId, long userId)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public boolean hasOrganizationUser(long organizationId, long userId)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
554            public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558            public boolean hasRoleUser(long roleId, long userId)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Returns <code>true</code> if the user has the role.
563            *
564            * @return <code>true</code> if the user has the role
565            */
566            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
567            public boolean hasRoleUser(long companyId, java.lang.String name,
568                    long userId, boolean inherited)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException;
571    
572            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
573            public boolean hasTeamUser(long teamId, long userId)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
577            public boolean hasUserGroupUser(long userGroupId, long userId)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
581            public boolean isPasswordExpired(com.liferay.portal.model.User user)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException;
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException;
589    
590            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
591            public java.util.List<com.liferay.portal.model.User> search(
592                    long companyId, java.lang.String keywords, java.lang.Boolean active,
593                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
594                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
598            public com.liferay.portal.kernel.search.Hits search(long companyId,
599                    java.lang.String keywords, java.lang.Boolean active,
600                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
601                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605            public java.util.List<com.liferay.portal.model.User> search(
606                    long companyId, java.lang.String firstName,
607                    java.lang.String middleName, java.lang.String lastName,
608                    java.lang.String screenName, java.lang.String emailAddress,
609                    java.lang.Boolean active,
610                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
611                    boolean andSearch, int start, int end,
612                    com.liferay.portal.kernel.util.OrderByComparator obc)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616            public com.liferay.portal.kernel.search.Hits search(long companyId,
617                    java.lang.String firstName, java.lang.String middleName,
618                    java.lang.String lastName, java.lang.String screenName,
619                    java.lang.String emailAddress, java.lang.Boolean active,
620                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
621                    boolean andSearch, int start, int end,
622                    com.liferay.portal.kernel.search.Sort sort)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
626            public int searchCount(long companyId, java.lang.String keywords,
627                    java.lang.Boolean active,
628                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
632            public int searchCount(long companyId, java.lang.String firstName,
633                    java.lang.String middleName, java.lang.String lastName,
634                    java.lang.String screenName, java.lang.String emailAddress,
635                    java.lang.Boolean active,
636                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
637                    boolean andSearch)
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            public void sendPassword(long companyId, java.lang.String emailAddress,
641                    java.lang.String remoteAddr, java.lang.String remoteHost,
642                    java.lang.String userAgent, java.lang.String fromName,
643                    java.lang.String fromAddress, java.lang.String subject,
644                    java.lang.String body,
645                    com.liferay.portal.service.ServiceContext serviceContext)
646                    throws com.liferay.portal.kernel.exception.PortalException,
647                            com.liferay.portal.kernel.exception.SystemException;
648    
649            public void setRoleUsers(long roleId, long[] userIds)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException;
652    
653            public void setUserGroupUsers(long userGroupId, long[] userIds)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException;
656    
657            public void unsetGroupUsers(long groupId, long[] userIds)
658                    throws com.liferay.portal.kernel.exception.PortalException,
659                            com.liferay.portal.kernel.exception.SystemException;
660    
661            public void unsetOrganizationUsers(long organizationId, long[] userIds)
662                    throws com.liferay.portal.kernel.exception.PortalException,
663                            com.liferay.portal.kernel.exception.SystemException;
664    
665            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
666                    throws com.liferay.portal.kernel.exception.SystemException;
667    
668            public void unsetRoleUsers(long roleId,
669                    java.util.List<com.liferay.portal.model.User> users)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException;
672    
673            public void unsetRoleUsers(long roleId, long[] userIds)
674                    throws com.liferay.portal.kernel.exception.PortalException,
675                            com.liferay.portal.kernel.exception.SystemException;
676    
677            public void unsetTeamUsers(long teamId, long[] userIds)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException;
680    
681            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException;
684    
685            public com.liferay.portal.model.User updateActive(long userId,
686                    boolean active)
687                    throws com.liferay.portal.kernel.exception.PortalException,
688                            com.liferay.portal.kernel.exception.SystemException;
689    
690            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
691                    boolean agreedToTermsOfUse)
692                    throws com.liferay.portal.kernel.exception.PortalException,
693                            com.liferay.portal.kernel.exception.SystemException;
694    
695            public void updateAsset(long userId, com.liferay.portal.model.User user,
696                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
697                    throws com.liferay.portal.kernel.exception.PortalException,
698                            com.liferay.portal.kernel.exception.SystemException;
699    
700            public com.liferay.portal.model.User updateCreateDate(long userId,
701                    java.util.Date createDate)
702                    throws com.liferay.portal.kernel.exception.PortalException,
703                            com.liferay.portal.kernel.exception.SystemException;
704    
705            public com.liferay.portal.model.User updateEmailAddress(long userId,
706                    java.lang.String password, java.lang.String emailAddress1,
707                    java.lang.String emailAddress2)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException;
710    
711            public void updateGroups(long userId, long[] newGroupIds)
712                    throws com.liferay.portal.kernel.exception.PortalException,
713                            com.liferay.portal.kernel.exception.SystemException;
714    
715            public com.liferay.portal.model.User updateLastLogin(long userId,
716                    java.lang.String loginIP)
717                    throws com.liferay.portal.kernel.exception.PortalException,
718                            com.liferay.portal.kernel.exception.SystemException;
719    
720            public com.liferay.portal.model.User updateLockout(
721                    com.liferay.portal.model.User user, boolean lockout)
722                    throws com.liferay.portal.kernel.exception.PortalException,
723                            com.liferay.portal.kernel.exception.SystemException;
724    
725            public com.liferay.portal.model.User updateLockoutByEmailAddress(
726                    long companyId, java.lang.String emailAddress, boolean lockout)
727                    throws com.liferay.portal.kernel.exception.PortalException,
728                            com.liferay.portal.kernel.exception.SystemException;
729    
730            public com.liferay.portal.model.User updateLockoutById(long userId,
731                    boolean lockout)
732                    throws com.liferay.portal.kernel.exception.PortalException,
733                            com.liferay.portal.kernel.exception.SystemException;
734    
735            public com.liferay.portal.model.User updateLockoutByScreenName(
736                    long companyId, java.lang.String screenName, boolean lockout)
737                    throws com.liferay.portal.kernel.exception.PortalException,
738                            com.liferay.portal.kernel.exception.SystemException;
739    
740            public com.liferay.portal.model.User updateModifiedDate(long userId,
741                    java.util.Date modifiedDate)
742                    throws com.liferay.portal.kernel.exception.PortalException,
743                            com.liferay.portal.kernel.exception.SystemException;
744    
745            public void updateOpenId(long userId, java.lang.String openId)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException;
748    
749            public void updateOrganizations(long userId, long[] newOrganizationIds)
750                    throws com.liferay.portal.kernel.exception.PortalException,
751                            com.liferay.portal.kernel.exception.SystemException;
752    
753            public com.liferay.portal.model.User updatePassword(long userId,
754                    java.lang.String password1, java.lang.String password2,
755                    boolean passwordReset)
756                    throws com.liferay.portal.kernel.exception.PortalException,
757                            com.liferay.portal.kernel.exception.SystemException;
758    
759            public com.liferay.portal.model.User updatePassword(long userId,
760                    java.lang.String password1, java.lang.String password2,
761                    boolean passwordReset, boolean silentUpdate)
762                    throws com.liferay.portal.kernel.exception.PortalException,
763                            com.liferay.portal.kernel.exception.SystemException;
764    
765            public com.liferay.portal.model.User updatePasswordManually(long userId,
766                    java.lang.String password, boolean passwordEncrypted,
767                    boolean passwordReset, java.util.Date passwordModifiedDate)
768                    throws com.liferay.portal.kernel.exception.PortalException,
769                            com.liferay.portal.kernel.exception.SystemException;
770    
771            public void updatePasswordReset(long userId, boolean passwordReset)
772                    throws com.liferay.portal.kernel.exception.PortalException,
773                            com.liferay.portal.kernel.exception.SystemException;
774    
775            public void updatePortrait(long userId, byte[] bytes)
776                    throws com.liferay.portal.kernel.exception.PortalException,
777                            com.liferay.portal.kernel.exception.SystemException;
778    
779            public void updateReminderQuery(long userId, java.lang.String question,
780                    java.lang.String answer)
781                    throws com.liferay.portal.kernel.exception.PortalException,
782                            com.liferay.portal.kernel.exception.SystemException;
783    
784            public void updateScreenName(long userId, java.lang.String screenName)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException;
787    
788            public com.liferay.portal.model.User updateUser(long userId,
789                    java.lang.String oldPassword, java.lang.String newPassword1,
790                    java.lang.String newPassword2, boolean passwordReset,
791                    java.lang.String reminderQueryQuestion,
792                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
793                    java.lang.String emailAddress, long facebookId,
794                    java.lang.String openId, java.lang.String languageId,
795                    java.lang.String timeZoneId, java.lang.String greeting,
796                    java.lang.String comments, java.lang.String firstName,
797                    java.lang.String middleName, java.lang.String lastName, int prefixId,
798                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
799                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
800                    java.lang.String facebookSn, java.lang.String icqSn,
801                    java.lang.String jabberSn, java.lang.String msnSn,
802                    java.lang.String mySpaceSn, java.lang.String skypeSn,
803                    java.lang.String twitterSn, java.lang.String ymSn,
804                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
805                    long[] roleIds,
806                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
807                    long[] userGroupIds,
808                    com.liferay.portal.service.ServiceContext serviceContext)
809                    throws com.liferay.portal.kernel.exception.PortalException,
810                            com.liferay.portal.kernel.exception.SystemException;
811    }