001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException;
262    
263            public int authenticateByScreenName(long companyId,
264                    java.lang.String screenName, java.lang.String password,
265                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
266                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
267                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException;
270    
271            public int authenticateByUserId(long companyId, long userId,
272                    java.lang.String password,
273                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
274                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
275                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException;
278    
279            public long authenticateForBasic(long companyId, java.lang.String authType,
280                    java.lang.String login, java.lang.String password)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException;
283    
284            public long authenticateForDigest(long companyId,
285                    java.lang.String username, java.lang.String realm,
286                    java.lang.String nonce, java.lang.String method, java.lang.String uri,
287                    java.lang.String response)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException;
290    
291            public boolean authenticateForJAAS(long userId, java.lang.String encPassword);
292    
293            public void checkLockout(com.liferay.portal.model.User user)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException;
296    
297            public void checkLoginFailure(com.liferay.portal.model.User user)
298                    throws com.liferay.portal.kernel.exception.SystemException;
299    
300            public void checkLoginFailureByEmailAddress(long companyId,
301                    java.lang.String emailAddress)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            public void checkLoginFailureById(long userId)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException;
308    
309            public void checkLoginFailureByScreenName(long companyId,
310                    java.lang.String screenName)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            public void checkPasswordExpired(com.liferay.portal.model.User user)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException;
317    
318            public void clearOrganizationUsers(long organizationId)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            public void clearUserGroupUsers(long userGroupId)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            public com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
325                    long companyId, java.lang.String name, java.lang.String password)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException;
328    
329            public void deletePortrait(long userId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException;
332    
333            public void deleteRoleUser(long roleId, long userId)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException;
336    
337            public java.lang.String encryptUserId(java.lang.String name)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException;
340    
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public java.util.List<com.liferay.portal.model.User> getCompanyUsers(
343                    long companyId, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347            public int getCompanyUsersCount(long companyId)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351            public com.liferay.portal.model.User getDefaultUser(long companyId)
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 long getDefaultUserId(long companyId)
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 long[] getGroupUserIds(long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365            public java.util.List<com.liferay.portal.model.User> getGroupUsers(
366                    long groupId)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public int getGroupUsersCount(long groupId)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374            public int getGroupUsersCount(long groupId, boolean active)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException;
377    
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
380                    java.lang.String type)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public java.util.List<com.liferay.portal.model.User> getNoContacts()
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388            public java.util.List<com.liferay.portal.model.User> getNoGroups()
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public long[] getOrganizationUserIds(long organizationId)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
397                    long organizationId)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401            public int getOrganizationUsersCount(long organizationId)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public int getOrganizationUsersCount(long organizationId, boolean active)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException;
408    
409            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410            public long[] getRoleUserIds(long roleId)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
415                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public java.util.List<com.liferay.portal.model.User> getRoleUsers(
419                    long roleId, int start, int end)
420                    throws com.liferay.portal.kernel.exception.SystemException;
421    
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public int getRoleUsersCount(long roleId)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427            public int getRoleUsersCount(long roleId, boolean active)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException;
430    
431            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
433                    long userId, int type, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator obc)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
440                    long userId, int start, int end,
441                    com.liferay.portal.kernel.util.OrderByComparator obc)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException;
444    
445            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
447                    long userId1, long userId2, int type, int start, int end,
448                    com.liferay.portal.kernel.util.OrderByComparator obc)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException;
451    
452            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453            public java.util.List<com.liferay.portal.model.User> getSocialUsers(
454                    long userId1, long userId2, int start, int end,
455                    com.liferay.portal.kernel.util.OrderByComparator obc)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException;
458    
459            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460            public int getSocialUsersCount(long userId)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException;
463    
464            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465            public int getSocialUsersCount(long userId, int type)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException;
468    
469            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470            public int getSocialUsersCount(long userId1, long userId2)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475            public int getSocialUsersCount(long userId1, long userId2, int type)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException;
478    
479            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480            public com.liferay.portal.model.User getUserByContactId(long contactId)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException;
483    
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
486                    java.lang.String emailAddress)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            com.liferay.portal.kernel.exception.SystemException;
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public com.liferay.portal.model.User getUserByFacebookId(long companyId,
492                    long facebookId)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException;
495    
496            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497            public com.liferay.portal.model.User getUserById(long userId)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException;
500    
501            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
502            public com.liferay.portal.model.User getUserById(long companyId, long userId)
503                    throws com.liferay.portal.kernel.exception.PortalException,
504                            com.liferay.portal.kernel.exception.SystemException;
505    
506            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507            public com.liferay.portal.model.User getUserByOpenId(long companyId,
508                    java.lang.String openId)
509                    throws com.liferay.portal.kernel.exception.PortalException,
510                            com.liferay.portal.kernel.exception.SystemException;
511    
512            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513            public com.liferay.portal.model.User getUserByPortraitId(long portraitId)
514                    throws com.liferay.portal.kernel.exception.PortalException,
515                            com.liferay.portal.kernel.exception.SystemException;
516    
517            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518            public com.liferay.portal.model.User getUserByScreenName(long companyId,
519                    java.lang.String screenName)
520                    throws com.liferay.portal.kernel.exception.PortalException,
521                            com.liferay.portal.kernel.exception.SystemException;
522    
523            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524            public com.liferay.portal.model.User getUserByUuid(java.lang.String uuid)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException;
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
530                    long userGroupId)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534            public int getUserGroupUsersCount(long userGroupId)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538            public int getUserGroupUsersCount(long userGroupId, boolean active)
539                    throws com.liferay.portal.kernel.exception.PortalException,
540                            com.liferay.portal.kernel.exception.SystemException;
541    
542            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543            public long getUserIdByEmailAddress(long companyId,
544                    java.lang.String emailAddress)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException;
547    
548            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549            public long getUserIdByScreenName(long companyId,
550                    java.lang.String screenName)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    
554            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
555            public boolean hasGroupUser(long groupId, long userId)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
559            public boolean hasOrganizationUser(long organizationId, long userId)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public boolean hasPasswordPolicyUser(long passwordPolicyId, long userId)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
567            public boolean hasRoleUser(long roleId, long userId)
568                    throws com.liferay.portal.kernel.exception.SystemException;
569    
570            /**
571            * Returns <code>true</code> if the user has the role.
572            *
573            * @return <code>true</code> if the user has the role
574            */
575            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576            public boolean hasRoleUser(long companyId, java.lang.String name,
577                    long userId, boolean inherited)
578                    throws com.liferay.portal.kernel.exception.PortalException,
579                            com.liferay.portal.kernel.exception.SystemException;
580    
581            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
582            public boolean hasTeamUser(long teamId, long userId)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public boolean hasUserGroupUser(long userGroupId, long userId)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590            public boolean isPasswordExpired(com.liferay.portal.model.User user)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException;
593    
594            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595            public boolean isPasswordExpiringSoon(com.liferay.portal.model.User user)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException;
598    
599            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
600            public java.util.List<com.liferay.portal.model.User> search(
601                    long companyId, java.lang.String keywords, java.lang.Boolean active,
602                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
603                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
607            public com.liferay.portal.kernel.search.Hits search(long companyId,
608                    java.lang.String keywords, java.lang.Boolean active,
609                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
610                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614            public java.util.List<com.liferay.portal.model.User> search(
615                    long companyId, java.lang.String firstName,
616                    java.lang.String middleName, java.lang.String lastName,
617                    java.lang.String screenName, java.lang.String emailAddress,
618                    java.lang.Boolean active,
619                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
620                    boolean andSearch, int start, int end,
621                    com.liferay.portal.kernel.util.OrderByComparator obc)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625            public com.liferay.portal.kernel.search.Hits search(long companyId,
626                    java.lang.String firstName, java.lang.String middleName,
627                    java.lang.String lastName, java.lang.String screenName,
628                    java.lang.String emailAddress, java.lang.Boolean active,
629                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
630                    boolean andSearch, int start, int end,
631                    com.liferay.portal.kernel.search.Sort sort)
632                    throws com.liferay.portal.kernel.exception.SystemException;
633    
634            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
635            public int searchCount(long companyId, java.lang.String keywords,
636                    java.lang.Boolean active,
637                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
641            public int searchCount(long companyId, java.lang.String firstName,
642                    java.lang.String middleName, java.lang.String lastName,
643                    java.lang.String screenName, java.lang.String emailAddress,
644                    java.lang.Boolean active,
645                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
646                    boolean andSearch)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            public void sendPassword(long companyId, java.lang.String emailAddress,
650                    java.lang.String remoteAddr, java.lang.String remoteHost,
651                    java.lang.String userAgent, java.lang.String fromName,
652                    java.lang.String fromAddress, java.lang.String subject,
653                    java.lang.String body,
654                    com.liferay.portal.service.ServiceContext serviceContext)
655                    throws com.liferay.portal.kernel.exception.PortalException,
656                            com.liferay.portal.kernel.exception.SystemException;
657    
658            public void setRoleUsers(long roleId, long[] userIds)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException;
661    
662            public void setUserGroupUsers(long userGroupId, long[] userIds)
663                    throws com.liferay.portal.kernel.exception.PortalException,
664                            com.liferay.portal.kernel.exception.SystemException;
665    
666            public void unsetGroupUsers(long groupId, long[] userIds)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException;
669    
670            public void unsetOrganizationUsers(long organizationId, long[] userIds)
671                    throws com.liferay.portal.kernel.exception.PortalException,
672                            com.liferay.portal.kernel.exception.SystemException;
673    
674            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            public void unsetRoleUsers(long roleId,
678                    java.util.List<com.liferay.portal.model.User> users)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException;
681    
682            public void unsetRoleUsers(long roleId, long[] userIds)
683                    throws com.liferay.portal.kernel.exception.PortalException,
684                            com.liferay.portal.kernel.exception.SystemException;
685    
686            public void unsetTeamUsers(long teamId, long[] userIds)
687                    throws com.liferay.portal.kernel.exception.PortalException,
688                            com.liferay.portal.kernel.exception.SystemException;
689    
690            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException;
693    
694            public com.liferay.portal.model.User updateActive(long userId,
695                    boolean active)
696                    throws com.liferay.portal.kernel.exception.PortalException,
697                            com.liferay.portal.kernel.exception.SystemException;
698    
699            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
700                    boolean agreedToTermsOfUse)
701                    throws com.liferay.portal.kernel.exception.PortalException,
702                            com.liferay.portal.kernel.exception.SystemException;
703    
704            public void updateAsset(long userId, com.liferay.portal.model.User user,
705                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
706                    throws com.liferay.portal.kernel.exception.PortalException,
707                            com.liferay.portal.kernel.exception.SystemException;
708    
709            public com.liferay.portal.model.User updateCreateDate(long userId,
710                    java.util.Date createDate)
711                    throws com.liferay.portal.kernel.exception.PortalException,
712                            com.liferay.portal.kernel.exception.SystemException;
713    
714            public com.liferay.portal.model.User updateEmailAddress(long userId,
715                    java.lang.String password, java.lang.String emailAddress1,
716                    java.lang.String emailAddress2)
717                    throws com.liferay.portal.kernel.exception.PortalException,
718                            com.liferay.portal.kernel.exception.SystemException;
719    
720            public void updateGroups(long userId, long[] newGroupIds)
721                    throws com.liferay.portal.kernel.exception.PortalException,
722                            com.liferay.portal.kernel.exception.SystemException;
723    
724            public com.liferay.portal.model.User updateLastLogin(long userId,
725                    java.lang.String loginIP)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException;
728    
729            public com.liferay.portal.model.User updateLockout(
730                    com.liferay.portal.model.User user, boolean lockout)
731                    throws com.liferay.portal.kernel.exception.PortalException,
732                            com.liferay.portal.kernel.exception.SystemException;
733    
734            public com.liferay.portal.model.User updateLockoutByEmailAddress(
735                    long companyId, java.lang.String emailAddress, boolean lockout)
736                    throws com.liferay.portal.kernel.exception.PortalException,
737                            com.liferay.portal.kernel.exception.SystemException;
738    
739            public com.liferay.portal.model.User updateLockoutById(long userId,
740                    boolean lockout)
741                    throws com.liferay.portal.kernel.exception.PortalException,
742                            com.liferay.portal.kernel.exception.SystemException;
743    
744            public com.liferay.portal.model.User updateLockoutByScreenName(
745                    long companyId, java.lang.String screenName, boolean lockout)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException;
748    
749            public com.liferay.portal.model.User updateModifiedDate(long userId,
750                    java.util.Date modifiedDate)
751                    throws com.liferay.portal.kernel.exception.PortalException,
752                            com.liferay.portal.kernel.exception.SystemException;
753    
754            public void updateOpenId(long userId, java.lang.String openId)
755                    throws com.liferay.portal.kernel.exception.PortalException,
756                            com.liferay.portal.kernel.exception.SystemException;
757    
758            public void updateOrganizations(long userId, long[] newOrganizationIds)
759                    throws com.liferay.portal.kernel.exception.PortalException,
760                            com.liferay.portal.kernel.exception.SystemException;
761    
762            public com.liferay.portal.model.User updatePassword(long userId,
763                    java.lang.String password1, java.lang.String password2,
764                    boolean passwordReset)
765                    throws com.liferay.portal.kernel.exception.PortalException,
766                            com.liferay.portal.kernel.exception.SystemException;
767    
768            public com.liferay.portal.model.User updatePassword(long userId,
769                    java.lang.String password1, java.lang.String password2,
770                    boolean passwordReset, boolean silentUpdate)
771                    throws com.liferay.portal.kernel.exception.PortalException,
772                            com.liferay.portal.kernel.exception.SystemException;
773    
774            public com.liferay.portal.model.User updatePasswordManually(long userId,
775                    java.lang.String password, boolean passwordEncrypted,
776                    boolean passwordReset, java.util.Date passwordModifiedDate)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException;
779    
780            public void updatePasswordReset(long userId, boolean passwordReset)
781                    throws com.liferay.portal.kernel.exception.PortalException,
782                            com.liferay.portal.kernel.exception.SystemException;
783    
784            public void updatePortrait(long userId, byte[] bytes)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException;
787    
788            public void updateReminderQuery(long userId, java.lang.String question,
789                    java.lang.String answer)
790                    throws com.liferay.portal.kernel.exception.PortalException,
791                            com.liferay.portal.kernel.exception.SystemException;
792    
793            public void updateScreenName(long userId, java.lang.String screenName)
794                    throws com.liferay.portal.kernel.exception.PortalException,
795                            com.liferay.portal.kernel.exception.SystemException;
796    
797            public com.liferay.portal.model.User updateUser(long userId,
798                    java.lang.String oldPassword, java.lang.String newPassword1,
799                    java.lang.String newPassword2, boolean passwordReset,
800                    java.lang.String reminderQueryQuestion,
801                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
802                    java.lang.String emailAddress, long facebookId,
803                    java.lang.String openId, java.lang.String languageId,
804                    java.lang.String timeZoneId, java.lang.String greeting,
805                    java.lang.String comments, java.lang.String firstName,
806                    java.lang.String middleName, java.lang.String lastName, int prefixId,
807                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
808                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
809                    java.lang.String facebookSn, java.lang.String icqSn,
810                    java.lang.String jabberSn, java.lang.String msnSn,
811                    java.lang.String mySpaceSn, java.lang.String skypeSn,
812                    java.lang.String twitterSn, java.lang.String ymSn,
813                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
814                    long[] roleIds,
815                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
816                    long[] userGroupIds,
817                    com.liferay.portal.service.ServiceContext serviceContext)
818                    throws com.liferay.portal.kernel.exception.PortalException,
819                            com.liferay.portal.kernel.exception.SystemException;
820    }