001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link UserService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserService
024     * @generated
025     */
026    public class UserServiceWrapper implements UserService,
027            ServiceWrapper<UserService> {
028            public UserServiceWrapper(UserService userService) {
029                    _userService = userService;
030            }
031    
032            /**
033            * Adds the users to the group.
034            *
035            * @param groupId the primary key of the group
036            * @param userIds the primary keys of the users
037            * @throws PortalException if a group or user with the primary key could not
038            be found, or if the user did not have permission to assign group
039            members
040            * @throws SystemException if a system exception occurred
041            */
042            public void addGroupUsers(long groupId, long[] userIds,
043                    com.liferay.portal.service.ServiceContext serviceContext)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    _userService.addGroupUsers(groupId, userIds, serviceContext);
047            }
048    
049            /**
050            * Adds the users to the organization.
051            *
052            * @param organizationId the primary key of the organization
053            * @param userIds the primary keys of the users
054            * @throws PortalException if an organization or user with the primary key
055            could not be found, if the user did not have permission to assign
056            organization members, or if current user did not have an
057            organization in common with a given user
058            * @throws SystemException if a system exception occurred
059            */
060            public void addOrganizationUsers(long organizationId, long[] userIds)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    _userService.addOrganizationUsers(organizationId, userIds);
064            }
065    
066            /**
067            * Assigns the password policy to the users, removing any other currently
068            * assigned password policies.
069            *
070            * @param passwordPolicyId the primary key of the password policy
071            * @param userIds the primary keys of the users
072            * @throws PortalException if the user did not have permission to assign
073            policy members
074            * @throws SystemException if a system exception occurred
075            */
076            public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
080            }
081    
082            /**
083            * Adds the users to the role.
084            *
085            * @param roleId the primary key of the role
086            * @param userIds the primary keys of the users
087            * @throws PortalException if a role or user with the primary key could not
088            be found or if the user did not have permission to assign role
089            members
090            * @throws SystemException if a system exception occurred
091            */
092            public void addRoleUsers(long roleId, long[] userIds)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    _userService.addRoleUsers(roleId, userIds);
096            }
097    
098            /**
099            * Adds the users to the team.
100            *
101            * @param teamId the primary key of the team
102            * @param userIds the primary keys of the users
103            * @throws PortalException if a team or user with the primary key could not
104            be found or if the user did not have permission to assign team
105            members
106            * @throws SystemException if a system exception occurred
107            */
108            public void addTeamUsers(long teamId, long[] userIds)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    _userService.addTeamUsers(teamId, userIds);
112            }
113    
114            /**
115            * Adds a user with additional parameters.
116            *
117            * <p>
118            * This method handles the creation and bookkeeping of the user including
119            * its resources, metadata, and internal data structures. It is not
120            * necessary to make subsequent calls to any methods to setup default
121            * groups, resources, etc.
122            * </p>
123            *
124            * @param companyId the primary key of the user's company
125            * @param autoPassword whether a password should be automatically generated
126            for the user
127            * @param password1 the user's password
128            * @param password2 the user's password confirmation
129            * @param autoScreenName whether a screen name should be automatically
130            generated for the user
131            * @param screenName the user's screen name
132            * @param emailAddress the user's email address
133            * @param facebookId the user's facebook ID
134            * @param openId the user's OpenID
135            * @param locale the user's locale
136            * @param firstName the user's first name
137            * @param middleName the user's middle name
138            * @param lastName the user's last name
139            * @param prefixId the user's name prefix ID
140            * @param suffixId the user's name suffix ID
141            * @param male whether the user is male
142            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
143            January)
144            * @param birthdayDay the user's birthday day
145            * @param birthdayYear the user's birthday year
146            * @param jobTitle the user's job title
147            * @param groupIds the primary keys of the user's groups
148            * @param organizationIds the primary keys of the user's organizations
149            * @param roleIds the primary keys of the roles this user possesses
150            * @param userGroupIds the primary keys of the user's user groups
151            * @param addresses the user's addresses
152            * @param emailAddresses the user's email addresses
153            * @param phones the user's phone numbers
154            * @param websites the user's websites
155            * @param announcementsDelivers the announcements deliveries
156            * @param sendEmail whether to send the user an email notification about
157            their new account
158            * @param serviceContext the user's service context (optionally
159            <code>null</code>). Can set the universally unique identifier
160            (with the <code>uuid</code> attribute), asset category IDs, asset
161            tag names, and expando bridge attributes for the user.
162            * @return the new user
163            * @throws PortalException if the user's information was invalid, if the
164            creator did not have permission to add users, if the email
165            address was reserved, or some other portal exception occurred
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portal.model.User addUser(long companyId,
169                    boolean autoPassword, java.lang.String password1,
170                    java.lang.String password2, boolean autoScreenName,
171                    java.lang.String screenName, java.lang.String emailAddress,
172                    long facebookId, java.lang.String openId, java.util.Locale locale,
173                    java.lang.String firstName, java.lang.String middleName,
174                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
175                    int birthdayMonth, int birthdayDay, int birthdayYear,
176                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
177                    long[] roleIds, long[] userGroupIds,
178                    java.util.List<com.liferay.portal.model.Address> addresses,
179                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
180                    java.util.List<com.liferay.portal.model.Phone> phones,
181                    java.util.List<com.liferay.portal.model.Website> websites,
182                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
183                    boolean sendEmail,
184                    com.liferay.portal.service.ServiceContext serviceContext)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _userService.addUser(companyId, autoPassword, password1,
188                            password2, autoScreenName, screenName, emailAddress, facebookId,
189                            openId, locale, firstName, middleName, lastName, prefixId,
190                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
191                            groupIds, organizationIds, roleIds, userGroupIds, addresses,
192                            emailAddresses, phones, websites, announcementsDelivers, sendEmail,
193                            serviceContext);
194            }
195    
196            /**
197            * Adds a user.
198            *
199            * <p>
200            * This method handles the creation and bookkeeping of the user including
201            * its resources, metadata, and internal data structures. It is not
202            * necessary to make subsequent calls to any methods to setup default
203            * groups, resources, etc.
204            * </p>
205            *
206            * @param companyId the primary key of the user's company
207            * @param autoPassword whether a password should be automatically generated
208            for the user
209            * @param password1 the user's password
210            * @param password2 the user's password confirmation
211            * @param autoScreenName whether a screen name should be automatically
212            generated for the user
213            * @param screenName the user's screen name
214            * @param emailAddress the user's email address
215            * @param facebookId the user's facebook ID
216            * @param openId the user's OpenID
217            * @param locale the user's locale
218            * @param firstName the user's first name
219            * @param middleName the user's middle name
220            * @param lastName the user's last name
221            * @param prefixId the user's name prefix ID
222            * @param suffixId the user's name suffix ID
223            * @param male whether the user is male
224            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
225            January)
226            * @param birthdayDay the user's birthday day
227            * @param birthdayYear the user's birthday year
228            * @param jobTitle the user's job title
229            * @param groupIds the primary keys of the user's groups
230            * @param organizationIds the primary keys of the user's organizations
231            * @param roleIds the primary keys of the roles this user possesses
232            * @param userGroupIds the primary keys of the user's user groups
233            * @param sendEmail whether to send the user an email notification about
234            their new account
235            * @param serviceContext the user's service context (optionally
236            <code>null</code>). Can set the universally unique identifier
237            (with the <code>uuid</code> attribute), asset category IDs, asset
238            tag names, and expando bridge attributes for the user.
239            * @return the new user
240            * @throws PortalException if the user's information was invalid, if the
241            creator did not have permission to add users, or if the email
242            address was reserved
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portal.model.User addUser(long companyId,
246                    boolean autoPassword, java.lang.String password1,
247                    java.lang.String password2, boolean autoScreenName,
248                    java.lang.String screenName, java.lang.String emailAddress,
249                    long facebookId, java.lang.String openId, java.util.Locale locale,
250                    java.lang.String firstName, java.lang.String middleName,
251                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
252                    int birthdayMonth, int birthdayDay, int birthdayYear,
253                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
254                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
255                    com.liferay.portal.service.ServiceContext serviceContext)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    return _userService.addUser(companyId, autoPassword, password1,
259                            password2, autoScreenName, screenName, emailAddress, facebookId,
260                            openId, locale, firstName, middleName, lastName, prefixId,
261                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
262                            groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
263                            serviceContext);
264            }
265    
266            /**
267            * Adds a user with workflow and additional parameters.
268            *
269            * <p>
270            * This method handles the creation and bookkeeping of the user including
271            * its resources, metadata, and internal data structures. It is not
272            * necessary to make subsequent calls to any methods to setup default
273            * groups, resources, etc.
274            * </p>
275            *
276            * @param companyId the primary key of the user's company
277            * @param autoPassword whether a password should be automatically generated
278            for the user
279            * @param password1 the user's password
280            * @param password2 the user's password confirmation
281            * @param autoScreenName whether a screen name should be automatically
282            generated for the user
283            * @param screenName the user's screen name
284            * @param emailAddress the user's email address
285            * @param facebookId the user's facebook ID
286            * @param openId the user's OpenID
287            * @param locale the user's locale
288            * @param firstName the user's first name
289            * @param middleName the user's middle name
290            * @param lastName the user's last name
291            * @param prefixId the user's name prefix ID
292            * @param suffixId the user's name suffix ID
293            * @param male whether the user is male
294            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
295            January)
296            * @param birthdayDay the user's birthday day
297            * @param birthdayYear the user's birthday year
298            * @param jobTitle the user's job title
299            * @param groupIds the primary keys of the user's groups
300            * @param organizationIds the primary keys of the user's organizations
301            * @param roleIds the primary keys of the roles this user possesses
302            * @param userGroupIds the primary keys of the user's user groups
303            * @param addresses the user's addresses
304            * @param emailAddresses the user's email addresses
305            * @param phones the user's phone numbers
306            * @param websites the user's websites
307            * @param announcementsDelivers the announcements deliveries
308            * @param sendEmail whether to send the user an email notification about
309            their new account
310            * @param serviceContext the user's service context (optionally
311            <code>null</code>). Can set the universally unique identifier
312            (with the <code>uuid</code> attribute), asset category IDs, asset
313            tag names, and expando bridge attributes for the user.
314            * @return the new user
315            * @throws PortalException if the user's information was invalid, if the
316            creator did not have permission to add users, if the email
317            address was reserved, or some other portal exception occurred
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
321                    boolean autoPassword, java.lang.String password1,
322                    java.lang.String password2, boolean autoScreenName,
323                    java.lang.String screenName, java.lang.String emailAddress,
324                    long facebookId, java.lang.String openId, java.util.Locale locale,
325                    java.lang.String firstName, java.lang.String middleName,
326                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
327                    int birthdayMonth, int birthdayDay, int birthdayYear,
328                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
329                    long[] roleIds, long[] userGroupIds,
330                    java.util.List<com.liferay.portal.model.Address> addresses,
331                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
332                    java.util.List<com.liferay.portal.model.Phone> phones,
333                    java.util.List<com.liferay.portal.model.Website> websites,
334                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
335                    boolean sendEmail,
336                    com.liferay.portal.service.ServiceContext serviceContext)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _userService.addUserWithWorkflow(companyId, autoPassword,
340                            password1, password2, autoScreenName, screenName, emailAddress,
341                            facebookId, openId, locale, firstName, middleName, lastName,
342                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
343                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
344                            addresses, emailAddresses, phones, websites, announcementsDelivers,
345                            sendEmail, serviceContext);
346            }
347    
348            /**
349            * Adds a user with workflow.
350            *
351            * <p>
352            * This method handles the creation and bookkeeping of the user including
353            * its resources, metadata, and internal data structures. It is not
354            * necessary to make subsequent calls to any methods to setup default
355            * groups, resources, etc.
356            * </p>
357            *
358            * @param companyId the primary key of the user's company
359            * @param autoPassword whether a password should be automatically generated
360            for the user
361            * @param password1 the user's password
362            * @param password2 the user's password confirmation
363            * @param autoScreenName whether a screen name should be automatically
364            generated for the user
365            * @param screenName the user's screen name
366            * @param emailAddress the user's email address
367            * @param facebookId the user's facebook ID
368            * @param openId the user's OpenID
369            * @param locale the user's locale
370            * @param firstName the user's first name
371            * @param middleName the user's middle name
372            * @param lastName the user's last name
373            * @param prefixId the user's name prefix ID
374            * @param suffixId the user's name suffix ID
375            * @param male whether the user is male
376            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
377            January)
378            * @param birthdayDay the user's birthday day
379            * @param birthdayYear the user's birthday year
380            * @param jobTitle the user's job title
381            * @param groupIds the primary keys of the user's groups
382            * @param organizationIds the primary keys of the user's organizations
383            * @param roleIds the primary keys of the roles this user possesses
384            * @param userGroupIds the primary keys of the user's user groups
385            * @param sendEmail whether to send the user an email notification about
386            their new account
387            * @param serviceContext the user's service context (optionally
388            <code>null</code>). Can set the universally unique identifier
389            (with the <code>uuid</code> attribute), asset category IDs, asset
390            tag names, and expando bridge attributes for the user.
391            * @return the new user
392            * @throws PortalException if the user's information was invalid, if the
393            creator did not have permission to add users, or if the email
394            address was reserved
395            * @throws SystemException if a system exception occurred
396            */
397            public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
398                    boolean autoPassword, java.lang.String password1,
399                    java.lang.String password2, boolean autoScreenName,
400                    java.lang.String screenName, java.lang.String emailAddress,
401                    long facebookId, java.lang.String openId, java.util.Locale locale,
402                    java.lang.String firstName, java.lang.String middleName,
403                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
404                    int birthdayMonth, int birthdayDay, int birthdayYear,
405                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
406                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
407                    com.liferay.portal.service.ServiceContext serviceContext)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    return _userService.addUserWithWorkflow(companyId, autoPassword,
411                            password1, password2, autoScreenName, screenName, emailAddress,
412                            facebookId, openId, locale, firstName, middleName, lastName,
413                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
414                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
415                            sendEmail, serviceContext);
416            }
417    
418            /**
419            * Adds the users to the user group.
420            *
421            * @param userGroupId the primary key of the user group
422            * @param userIds the primary keys of the users
423            * @throws PortalException if a user group or user with the primary could
424            could not be found, or if the current user did not have
425            permission to assign group members
426            * @throws SystemException if a system exception occurred
427            */
428            public void addUserGroupUsers(long userGroupId, long[] userIds)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    _userService.addUserGroupUsers(userGroupId, userIds);
432            }
433    
434            /**
435            * Deletes the user's portrait image.
436            *
437            * @param userId the primary key of the user
438            * @throws PortalException if a user with the primary key could not be
439            found, if the user's portrait could not be found, or if the
440            current user did not have permission to update the user
441            * @throws SystemException if a system exception occurred
442            */
443            public void deletePortrait(long userId)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    _userService.deletePortrait(userId);
447            }
448    
449            /**
450            * Removes the user from the role.
451            *
452            * @param roleId the primary key of the role
453            * @param userId the primary key of the user
454            * @throws PortalException if a role or user with the primary key could not
455            be found, or if the current user did not have permission to
456            assign role members
457            * @throws SystemException if a system exception occurred
458            */
459            public void deleteRoleUser(long roleId, long userId)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    _userService.deleteRoleUser(roleId, userId);
463            }
464    
465            /**
466            * Deletes the user.
467            *
468            * @param userId the primary key of the user
469            * @throws PortalException if a user with the primary key could not be found
470            or if the current user did not have permission to delete the user
471            * @throws SystemException if a system exception occurred
472            */
473            public void deleteUser(long userId)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException {
476                    _userService.deleteUser(userId);
477            }
478    
479            /**
480            * Returns the primary key of the default user for the company.
481            *
482            * @param companyId the primary key of the company
483            * @return the primary key of the default user for the company
484            * @throws PortalException if a default user for the company could not be
485            found
486            * @throws SystemException if a system exception occurred
487            */
488            public long getDefaultUserId(long companyId)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return _userService.getDefaultUserId(companyId);
492            }
493    
494            /**
495            * Returns the primary keys of all the users belonging to the group.
496            *
497            * @param groupId the primary key of the group
498            * @return the primary keys of the users belonging to the group
499            * @throws PortalException if the current user did not have permission to
500            view group assignments
501            * @throws SystemException if a system exception occurred
502            */
503            public long[] getGroupUserIds(long groupId)
504                    throws com.liferay.portal.kernel.exception.PortalException,
505                            com.liferay.portal.kernel.exception.SystemException {
506                    return _userService.getGroupUserIds(groupId);
507            }
508    
509            /**
510            * Returns the primary keys of all the users belonging to the organization.
511            *
512            * @param organizationId the primary key of the organization
513            * @return the primary keys of the users belonging to the organization
514            * @throws PortalException if the current user did not have permission to
515            view organization assignments
516            * @throws SystemException if a system exception occurred
517            */
518            public long[] getOrganizationUserIds(long organizationId)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException {
521                    return _userService.getOrganizationUserIds(organizationId);
522            }
523    
524            /**
525            * Returns the primary keys of all the users belonging to the role.
526            *
527            * @param roleId the primary key of the role
528            * @return the primary keys of the users belonging to the role
529            * @throws PortalException if the current user did not have permission to
530            view role members
531            * @throws SystemException if a system exception occurred
532            */
533            public long[] getRoleUserIds(long roleId)
534                    throws com.liferay.portal.kernel.exception.PortalException,
535                            com.liferay.portal.kernel.exception.SystemException {
536                    return _userService.getRoleUserIds(roleId);
537            }
538    
539            /**
540            * Returns the user with the email address.
541            *
542            * @param companyId the primary key of the user's company
543            * @param emailAddress the user's email address
544            * @return the user with the email address
545            * @throws PortalException if a user with the email address could not be
546            found or if the current user did not have permission to view the
547            user
548            * @throws SystemException if a system exception occurred
549            */
550            public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
551                    java.lang.String emailAddress)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException {
554                    return _userService.getUserByEmailAddress(companyId, emailAddress);
555            }
556    
557            /**
558            * Returns the user with the primary key.
559            *
560            * @param userId the primary key of the user
561            * @return the user with the primary key
562            * @throws PortalException if a user with the primary key could not be found
563            or if the current user did not have permission to view the user
564            * @throws SystemException if a system exception occurred
565            */
566            public com.liferay.portal.model.User getUserById(long userId)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException {
569                    return _userService.getUserById(userId);
570            }
571    
572            /**
573            * Returns the user with the screen name.
574            *
575            * @param companyId the primary key of the user's company
576            * @param screenName the user's screen name
577            * @return the user with the screen name
578            * @throws PortalException if a user with the screen name could not be found
579            or if the current user did not have permission to veiw the user
580            * @throws SystemException if a system exception occurred
581            */
582            public com.liferay.portal.model.User getUserByScreenName(long companyId,
583                    java.lang.String screenName)
584                    throws com.liferay.portal.kernel.exception.PortalException,
585                            com.liferay.portal.kernel.exception.SystemException {
586                    return _userService.getUserByScreenName(companyId, screenName);
587            }
588    
589            /**
590            * Returns the primary key of the user with the email address.
591            *
592            * @param companyId the primary key of the user's company
593            * @param emailAddress the user's email address
594            * @return the primary key of the user with the email address
595            * @throws PortalException if a user with the email address could not be
596            found
597            * @throws SystemException if a system exception occurred
598            */
599            public long getUserIdByEmailAddress(long companyId,
600                    java.lang.String emailAddress)
601                    throws com.liferay.portal.kernel.exception.PortalException,
602                            com.liferay.portal.kernel.exception.SystemException {
603                    return _userService.getUserIdByEmailAddress(companyId, emailAddress);
604            }
605    
606            /**
607            * Returns the primary key of the user with the screen name.
608            *
609            * @param companyId the primary key of the user's company
610            * @param screenName the user's screen name
611            * @return the primary key of the user with the screen name
612            * @throws PortalException if a user with the screen name could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public long getUserIdByScreenName(long companyId,
616                    java.lang.String screenName)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException {
619                    return _userService.getUserIdByScreenName(companyId, screenName);
620            }
621    
622            /**
623            * Returns <code>true</code> if the user is a member of the group.
624            *
625            * @param groupId the primary key of the group
626            * @param userId the primary key of the user
627            * @return <code>true</code> if the user is a member of the group;
628            <code>false</code> otherwise
629            * @throws SystemException if a system exception occurred
630            */
631            public boolean hasGroupUser(long groupId, long userId)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return _userService.hasGroupUser(groupId, userId);
634            }
635    
636            /**
637            * Returns <code>true</code> if the user is a member of the role.
638            *
639            * @param roleId the primary key of the role
640            * @param userId the primary key of the user
641            * @return <code>true</code> if the user is a member of the role;
642            <code>false</code> otherwise
643            * @throws SystemException if a system exception occurred
644            */
645            public boolean hasRoleUser(long roleId, long userId)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return _userService.hasRoleUser(roleId, userId);
648            }
649    
650            /**
651            * Returns <code>true</code> if the user has the role with the name,
652            * optionally through inheritance.
653            *
654            * @param companyId the primary key of the role's company
655            * @param name the name of the role (must be a regular role, not an
656            organization, site or provider role)
657            * @param userId the primary key of the user
658            * @param inherited whether to include roles inherited from organizations,
659            sites, etc.
660            * @return <code>true</code> if the user has the role; <code>false</code>
661            otherwise
662            * @throws PortalException if a role with the name could not be found
663            * @throws SystemException if a system exception occurred
664            */
665            public boolean hasRoleUser(long companyId, java.lang.String name,
666                    long userId, boolean inherited)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException {
669                    return _userService.hasRoleUser(companyId, name, userId, inherited);
670            }
671    
672            /**
673            * Updates a user account that was automatically created when a guest user
674            * participated in an action (e.g. posting a comment) and only provided his
675            * name and email address.
676            *
677            * @param companyId the primary key of the user's company
678            * @param autoPassword whether a password should be automatically generated
679            for the user
680            * @param password1 the user's password
681            * @param password2 the user's password confirmation
682            * @param autoScreenName whether a screen name should be automatically
683            generated for the user
684            * @param screenName the user's screen name
685            * @param emailAddress the user's email address
686            * @param facebookId the user's facebook ID
687            * @param openId the user's OpenID
688            * @param locale the user's locale
689            * @param firstName the user's first name
690            * @param middleName the user's middle name
691            * @param lastName the user's last name
692            * @param prefixId the user's name prefix ID
693            * @param suffixId the user's name suffix ID
694            * @param male whether the user is male
695            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
696            January)
697            * @param birthdayDay the user's birthday day
698            * @param birthdayYear the user's birthday year
699            * @param jobTitle the user's job title
700            * @param updateUserInformation whether to update the user's information
701            * @param sendEmail whether to send the user an email notification about
702            their new account
703            * @param serviceContext the user's service context (optionally
704            <code>null</code>). Can set the expando bridge attributes for the
705            user.
706            * @return the user
707            * @throws PortalException if the user's information was invalid or if the
708            email address was reserved
709            * @throws SystemException if a system exception occurred
710            */
711            public com.liferay.portal.model.User updateIncompleteUser(long companyId,
712                    boolean autoPassword, java.lang.String password1,
713                    java.lang.String password2, boolean autoScreenName,
714                    java.lang.String screenName, java.lang.String emailAddress,
715                    long facebookId, java.lang.String openId, java.util.Locale locale,
716                    java.lang.String firstName, java.lang.String middleName,
717                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
718                    int birthdayMonth, int birthdayDay, int birthdayYear,
719                    java.lang.String jobTitle, boolean updateUserInformation,
720                    boolean sendEmail,
721                    com.liferay.portal.service.ServiceContext serviceContext)
722                    throws com.liferay.portal.kernel.exception.PortalException,
723                            com.liferay.portal.kernel.exception.SystemException {
724                    return _userService.updateIncompleteUser(companyId, autoPassword,
725                            password1, password2, autoScreenName, screenName, emailAddress,
726                            facebookId, openId, locale, firstName, middleName, lastName,
727                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
728                            jobTitle, updateUserInformation, sendEmail, serviceContext);
729            }
730    
731            /**
732            * Sets the users in the role, removing and adding users to the role as
733            * necessary.
734            *
735            * @param roleId the primary key of the role
736            * @param userIds the primary keys of the users
737            * @throws PortalException if the current user did not have permission to
738            assign role members
739            * @throws SystemException if a system exception occurred
740            */
741            public void setRoleUsers(long roleId, long[] userIds)
742                    throws com.liferay.portal.kernel.exception.PortalException,
743                            com.liferay.portal.kernel.exception.SystemException {
744                    _userService.setRoleUsers(roleId, userIds);
745            }
746    
747            /**
748            * Sets the users in the user group, removing and adding users to the user
749            * group as necessary.
750            *
751            * @param userGroupId the primary key of the user group
752            * @param userIds the primary keys of the users
753            * @throws PortalException if the current user did not have permission to
754            assign group members
755            * @throws SystemException if a system exception occurred
756            */
757            public void setUserGroupUsers(long userGroupId, long[] userIds)
758                    throws com.liferay.portal.kernel.exception.PortalException,
759                            com.liferay.portal.kernel.exception.SystemException {
760                    _userService.setUserGroupUsers(userGroupId, userIds);
761            }
762    
763            /**
764            * Removes the users from the group.
765            *
766            * @param groupId the primary key of the group
767            * @param userIds the primary keys of the users
768            * @throws PortalException if the current user did not have permission to
769            modify group assignments
770            * @throws SystemException if a system exception occurred
771            */
772            public void unsetGroupUsers(long groupId, long[] userIds,
773                    com.liferay.portal.service.ServiceContext serviceContext)
774                    throws com.liferay.portal.kernel.exception.PortalException,
775                            com.liferay.portal.kernel.exception.SystemException {
776                    _userService.unsetGroupUsers(groupId, userIds, serviceContext);
777            }
778    
779            /**
780            * Removes the users from the organization.
781            *
782            * @param organizationId the primary key of the organization
783            * @param userIds the primary keys of the users
784            * @throws PortalException if the current user did not have permission to
785            modify organization assignments
786            * @throws SystemException if a system exception occurred
787            */
788            public void unsetOrganizationUsers(long organizationId, long[] userIds)
789                    throws com.liferay.portal.kernel.exception.PortalException,
790                            com.liferay.portal.kernel.exception.SystemException {
791                    _userService.unsetOrganizationUsers(organizationId, userIds);
792            }
793    
794            /**
795            * Removes the users from the password policy.
796            *
797            * @param passwordPolicyId the primary key of the password policy
798            * @param userIds the primary keys of the users
799            * @throws PortalException if the current user did not have permission to
800            modify policy assignments
801            * @throws SystemException if a system exception occurred
802            */
803            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
804                    throws com.liferay.portal.kernel.exception.PortalException,
805                            com.liferay.portal.kernel.exception.SystemException {
806                    _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
807            }
808    
809            /**
810            * Removes the users from the role.
811            *
812            * @param roleId the primary key of the role
813            * @param userIds the primary keys of the users
814            * @throws PortalException if the current user did not have permission to
815            modify role assignments
816            * @throws SystemException if a system exception occurred
817            */
818            public void unsetRoleUsers(long roleId, long[] userIds)
819                    throws com.liferay.portal.kernel.exception.PortalException,
820                            com.liferay.portal.kernel.exception.SystemException {
821                    _userService.unsetRoleUsers(roleId, userIds);
822            }
823    
824            /**
825            * Removes the users from the team.
826            *
827            * @param teamId the primary key of the team
828            * @param userIds the primary keys of the users
829            * @throws PortalException if the current user did not have permission to
830            modify team assignments
831            * @throws SystemException if a system exception occurred
832            */
833            public void unsetTeamUsers(long teamId, long[] userIds)
834                    throws com.liferay.portal.kernel.exception.PortalException,
835                            com.liferay.portal.kernel.exception.SystemException {
836                    _userService.unsetTeamUsers(teamId, userIds);
837            }
838    
839            /**
840            * Removes the users from the user group.
841            *
842            * @param userGroupId the primary key of the user group
843            * @param userIds the primary keys of the users
844            * @throws PortalException if the current user did not have permission to
845            modify user group assignments
846            * @throws SystemException if a system exception occurred
847            */
848            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
849                    throws com.liferay.portal.kernel.exception.PortalException,
850                            com.liferay.portal.kernel.exception.SystemException {
851                    _userService.unsetUserGroupUsers(userGroupId, userIds);
852            }
853    
854            /**
855            * Updates the user's response to the terms of use agreement.
856            *
857            * @param userId the primary key of the user
858            * @param agreedToTermsOfUse whether the user has agree to the terms of use
859            * @return the user
860            * @throws PortalException if the current user did not have permission to
861            update the user's agreement to terms-of-use
862            * @throws SystemException if a system exception occurred
863            */
864            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
865                    boolean agreedToTermsOfUse)
866                    throws com.liferay.portal.kernel.exception.PortalException,
867                            com.liferay.portal.kernel.exception.SystemException {
868                    return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
869            }
870    
871            /**
872            * Updates the user's email address.
873            *
874            * @param userId the primary key of the user
875            * @param password the user's password
876            * @param emailAddress1 the user's new email address
877            * @param emailAddress2 the user's new email address confirmation
878            * @return the user
879            * @throws PortalException if a user with the primary key could not be found
880            or if the current user did not have permission to update the user
881            * @throws SystemException if a system exception occurred
882            */
883            public com.liferay.portal.model.User updateEmailAddress(long userId,
884                    java.lang.String password, java.lang.String emailAddress1,
885                    java.lang.String emailAddress2,
886                    com.liferay.portal.service.ServiceContext serviceContext)
887                    throws com.liferay.portal.kernel.exception.PortalException,
888                            com.liferay.portal.kernel.exception.SystemException {
889                    return _userService.updateEmailAddress(userId, password, emailAddress1,
890                            emailAddress2, serviceContext);
891            }
892    
893            /**
894            * Updates whether the user is locked out from logging in.
895            *
896            * @param userId the primary key of the user
897            * @param lockout whether the user is locked out
898            * @return the user
899            * @throws PortalException if the user did not have permission to lock out
900            the user
901            * @throws SystemException if a system exception occurred
902            */
903            public com.liferay.portal.model.User updateLockoutById(long userId,
904                    boolean lockout)
905                    throws com.liferay.portal.kernel.exception.PortalException,
906                            com.liferay.portal.kernel.exception.SystemException {
907                    return _userService.updateLockoutById(userId, lockout);
908            }
909    
910            /**
911            * Updates the user's OpenID.
912            *
913            * @param userId the primary key of the user
914            * @param openId the new OpenID
915            * @return the user
916            * @throws PortalException if a user with the primary key could not be found
917            or if the current user did not have permission to update the user
918            * @throws SystemException if a system exception occurred
919            */
920            public com.liferay.portal.model.User updateOpenId(long userId,
921                    java.lang.String openId)
922                    throws com.liferay.portal.kernel.exception.PortalException,
923                            com.liferay.portal.kernel.exception.SystemException {
924                    return _userService.updateOpenId(userId, openId);
925            }
926    
927            /**
928            * Sets the organizations that the user is in, removing and adding
929            * organizations as necessary.
930            *
931            * @param userId the primary key of the user
932            * @param organizationIds the primary keys of the organizations
933            * @throws PortalException if a user with the primary key could not be found
934            or if the current user did not have permission to update the user
935            * @throws SystemException if a system exception occurred
936            */
937            public void updateOrganizations(long userId, long[] organizationIds,
938                    com.liferay.portal.service.ServiceContext serviceContext)
939                    throws com.liferay.portal.kernel.exception.PortalException,
940                            com.liferay.portal.kernel.exception.SystemException {
941                    _userService.updateOrganizations(userId, organizationIds, serviceContext);
942            }
943    
944            /**
945            * Updates the user's password without tracking or validation of the change.
946            *
947            * @param userId the primary key of the user
948            * @param password1 the user's new password
949            * @param password2 the user's new password confirmation
950            * @param passwordReset whether the user should be asked to reset their
951            password the next time they log in
952            * @return the user
953            * @throws PortalException if a user with the primary key could not be found
954            or if the current user did not have permission to update the user
955            * @throws SystemException if a system exception occurred
956            */
957            public com.liferay.portal.model.User updatePassword(long userId,
958                    java.lang.String password1, java.lang.String password2,
959                    boolean passwordReset)
960                    throws com.liferay.portal.kernel.exception.PortalException,
961                            com.liferay.portal.kernel.exception.SystemException {
962                    return _userService.updatePassword(userId, password1, password2,
963                            passwordReset);
964            }
965    
966            /**
967            * Updates the user's portrait image.
968            *
969            * @param userId the primary key of the user
970            * @param bytes the new portrait image data
971            * @return the user
972            * @throws PortalException if a user with the primary key could not be
973            found, if the new portrait was invalid, or if the current user
974            did not have permission to update the user
975            * @throws SystemException if a system exception occurred
976            */
977            public com.liferay.portal.model.User updatePortrait(long userId,
978                    byte[] bytes)
979                    throws com.liferay.portal.kernel.exception.PortalException,
980                            com.liferay.portal.kernel.exception.SystemException {
981                    return _userService.updatePortrait(userId, bytes);
982            }
983    
984            /**
985            * Updates the user's password reset question and answer.
986            *
987            * @param userId the primary key of the user
988            * @param question the user's new password reset question
989            * @param answer the user's new password reset answer
990            * @return the user
991            * @throws PortalException if a user with the primary key could not be
992            found, if the new question or answer were invalid, or if the
993            current user did not have permission to update the user
994            * @throws SystemException if a system exception occurred
995            */
996            public com.liferay.portal.model.User updateReminderQuery(long userId,
997                    java.lang.String question, java.lang.String answer)
998                    throws com.liferay.portal.kernel.exception.PortalException,
999                            com.liferay.portal.kernel.exception.SystemException {
1000                    return _userService.updateReminderQuery(userId, question, answer);
1001            }
1002    
1003            /**
1004            * Updates the user's screen name.
1005            *
1006            * @param userId the primary key of the user
1007            * @param screenName the user's new screen name
1008            * @return the user
1009            * @throws PortalException if a user with the primary key could not be
1010            found, if the new screen name was invalid, or if the current user
1011            did not have permission to update the user
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public com.liferay.portal.model.User updateScreenName(long userId,
1015                    java.lang.String screenName)
1016                    throws com.liferay.portal.kernel.exception.PortalException,
1017                            com.liferay.portal.kernel.exception.SystemException {
1018                    return _userService.updateScreenName(userId, screenName);
1019            }
1020    
1021            /**
1022            * Updates the user's workflow status.
1023            *
1024            * @param userId the primary key of the user
1025            * @param status the user's new workflow status
1026            * @return the user
1027            * @throws PortalException if a user with the primary key could not be
1028            found, if the current user was updating her own status to
1029            anything but {@link WorkflowConstants.STATUS_APPROVED}, or if the
1030            current user did not have permission to update the user's
1031            workflow status.
1032            * @throws SystemException if a system exception occurred
1033            */
1034            public com.liferay.portal.model.User updateStatus(long userId, int status)
1035                    throws com.liferay.portal.kernel.exception.PortalException,
1036                            com.liferay.portal.kernel.exception.SystemException {
1037                    return _userService.updateStatus(userId, status);
1038            }
1039    
1040            /**
1041            * Updates the user with additional parameters.
1042            *
1043            * @param userId the primary key of the user
1044            * @param oldPassword the user's old password
1045            * @param newPassword1 the user's new password (optionally
1046            <code>null</code>)
1047            * @param newPassword2 the user's new password confirmation (optionally
1048            <code>null</code>)
1049            * @param passwordReset whether the user should be asked to reset their
1050            password the next time they login
1051            * @param reminderQueryQuestion the user's new password reset question
1052            * @param reminderQueryAnswer the user's new password reset answer
1053            * @param screenName the user's new screen name
1054            * @param emailAddress the user's new email address
1055            * @param facebookId the user's new Facebook ID
1056            * @param openId the user's new OpenID
1057            * @param languageId the user's new language ID
1058            * @param timeZoneId the user's new time zone ID
1059            * @param greeting the user's new greeting
1060            * @param comments the user's new comments
1061            * @param firstName the user's new first name
1062            * @param middleName the user's new middle name
1063            * @param lastName the user's new last name
1064            * @param prefixId the user's new name prefix ID
1065            * @param suffixId the user's new name suffix ID
1066            * @param male whether user is male
1067            * @param birthdayMonth the user's new birthday month (0-based, meaning 0
1068            for January)
1069            * @param birthdayDay the user's new birthday day
1070            * @param birthdayYear the user's birthday year
1071            * @param smsSn the user's new SMS screen name
1072            * @param aimSn the user's new AIM screen name
1073            * @param facebookSn the user's new Facebook screen name
1074            * @param icqSn the user's new ICQ screen name
1075            * @param jabberSn the user's new Jabber screen name
1076            * @param msnSn the user's new MSN screen name
1077            * @param mySpaceSn the user's new MySpace screen name
1078            * @param skypeSn the user's new Skype screen name
1079            * @param twitterSn the user's new Twitter screen name
1080            * @param ymSn the user's new Yahoo! Messenger screen name
1081            * @param jobTitle the user's new job title
1082            * @param groupIds the primary keys of the user's groups
1083            * @param organizationIds the primary keys of the user's organizations
1084            * @param roleIds the primary keys of the user's roles
1085            * @param userGroupRoles the user user's group roles
1086            * @param userGroupIds the primary keys of the user's user groups
1087            * @param addresses the user's addresses
1088            * @param emailAddresses the user's email addresses
1089            * @param phones the user's phone numbers
1090            * @param websites the user's websites
1091            * @param announcementsDelivers the announcements deliveries
1092            * @param serviceContext the user's service context (optionally
1093            <code>null</code>). Can set the universally unique identifier
1094            (with the <code>uuid</code> attribute), asset category IDs, asset
1095            tag names, and expando bridge attributes for the user.
1096            * @return the user
1097            * @throws PortalException if a user with the primary key could not be
1098            found, if the new information was invalid, or if the current user
1099            did not have permission to update the user
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public com.liferay.portal.model.User updateUser(long userId,
1103                    java.lang.String oldPassword, java.lang.String newPassword1,
1104                    java.lang.String newPassword2, boolean passwordReset,
1105                    java.lang.String reminderQueryQuestion,
1106                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1107                    java.lang.String emailAddress, long facebookId,
1108                    java.lang.String openId, java.lang.String languageId,
1109                    java.lang.String timeZoneId, java.lang.String greeting,
1110                    java.lang.String comments, java.lang.String firstName,
1111                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1112                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1113                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1114                    java.lang.String facebookSn, java.lang.String icqSn,
1115                    java.lang.String jabberSn, java.lang.String msnSn,
1116                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1117                    java.lang.String twitterSn, java.lang.String ymSn,
1118                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1119                    long[] roleIds,
1120                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1121                    long[] userGroupIds,
1122                    java.util.List<com.liferay.portal.model.Address> addresses,
1123                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
1124                    java.util.List<com.liferay.portal.model.Phone> phones,
1125                    java.util.List<com.liferay.portal.model.Website> websites,
1126                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
1127                    com.liferay.portal.service.ServiceContext serviceContext)
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    return _userService.updateUser(userId, oldPassword, newPassword1,
1131                            newPassword2, passwordReset, reminderQueryQuestion,
1132                            reminderQueryAnswer, screenName, emailAddress, facebookId, openId,
1133                            languageId, timeZoneId, greeting, comments, firstName, middleName,
1134                            lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
1135                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
1136                            mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
1137                            organizationIds, roleIds, userGroupRoles, userGroupIds, addresses,
1138                            emailAddresses, phones, websites, announcementsDelivers,
1139                            serviceContext);
1140            }
1141    
1142            /**
1143            * Updates the user.
1144            *
1145            * @param userId the primary key of the user
1146            * @param oldPassword the user's old password
1147            * @param newPassword1 the user's new password (optionally
1148            <code>null</code>)
1149            * @param newPassword2 the user's new password confirmation (optionally
1150            <code>null</code>)
1151            * @param passwordReset whether the user should be asked to reset their
1152            password the next time they login
1153            * @param reminderQueryQuestion the user's new password reset question
1154            * @param reminderQueryAnswer the user's new password reset answer
1155            * @param screenName the user's new screen name
1156            * @param emailAddress the user's new email address
1157            * @param facebookId the user's new Facebook ID
1158            * @param openId the user's new OpenID
1159            * @param languageId the user's new language ID
1160            * @param timeZoneId the user's new time zone ID
1161            * @param greeting the user's new greeting
1162            * @param comments the user's new comments
1163            * @param firstName the user's new first name
1164            * @param middleName the user's new middle name
1165            * @param lastName the user's new last name
1166            * @param prefixId the user's new name prefix ID
1167            * @param suffixId the user's new name suffix ID
1168            * @param male whether user is male
1169            * @param birthdayMonth the user's new birthday month (0-based, meaning 0
1170            for January)
1171            * @param birthdayDay the user's new birthday day
1172            * @param birthdayYear the user's birthday year
1173            * @param smsSn the user's new SMS screen name
1174            * @param aimSn the user's new AIM screen name
1175            * @param facebookSn the user's new Facebook screen name
1176            * @param icqSn the user's new ICQ screen name
1177            * @param jabberSn the user's new Jabber screen name
1178            * @param msnSn the user's new MSN screen name
1179            * @param mySpaceSn the user's new MySpace screen name
1180            * @param skypeSn the user's new Skype screen name
1181            * @param twitterSn the user's new Twitter screen name
1182            * @param ymSn the user's new Yahoo! Messenger screen name
1183            * @param jobTitle the user's new job title
1184            * @param groupIds the primary keys of the user's groups
1185            * @param organizationIds the primary keys of the user's organizations
1186            * @param roleIds the primary keys of the user's roles
1187            * @param userGroupRoles the user user's group roles
1188            * @param userGroupIds the primary keys of the user's user groups
1189            * @param serviceContext the user's service context (optionally
1190            <code>null</code>). Can set the universally unique identifier
1191            (with the <code>uuid</code> attribute), asset category IDs, asset
1192            tag names, and expando bridge attributes for the user.
1193            * @return the user
1194            * @throws PortalException if a user with the primary key could not be
1195            found, if the new information was invalid, or if the current user
1196            did not have permission to update the user
1197            * @throws SystemException if a system exception occurred
1198            */
1199            public com.liferay.portal.model.User updateUser(long userId,
1200                    java.lang.String oldPassword, java.lang.String newPassword1,
1201                    java.lang.String newPassword2, boolean passwordReset,
1202                    java.lang.String reminderQueryQuestion,
1203                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1204                    java.lang.String emailAddress, long facebookId,
1205                    java.lang.String openId, java.lang.String languageId,
1206                    java.lang.String timeZoneId, java.lang.String greeting,
1207                    java.lang.String comments, java.lang.String firstName,
1208                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1209                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1210                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1211                    java.lang.String facebookSn, java.lang.String icqSn,
1212                    java.lang.String jabberSn, java.lang.String msnSn,
1213                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1214                    java.lang.String twitterSn, java.lang.String ymSn,
1215                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1216                    long[] roleIds,
1217                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1218                    long[] userGroupIds,
1219                    com.liferay.portal.service.ServiceContext serviceContext)
1220                    throws com.liferay.portal.kernel.exception.PortalException,
1221                            com.liferay.portal.kernel.exception.SystemException {
1222                    return _userService.updateUser(userId, oldPassword, newPassword1,
1223                            newPassword2, passwordReset, reminderQueryQuestion,
1224                            reminderQueryAnswer, screenName, emailAddress, facebookId, openId,
1225                            languageId, timeZoneId, greeting, comments, firstName, middleName,
1226                            lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
1227                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
1228                            mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
1229                            organizationIds, roleIds, userGroupRoles, userGroupIds,
1230                            serviceContext);
1231            }
1232    
1233            /**
1234             * @deprecated Renamed to {@link #getWrappedService}
1235             */
1236            public UserService getWrappedUserService() {
1237                    return _userService;
1238            }
1239    
1240            /**
1241             * @deprecated Renamed to {@link #setWrappedService}
1242             */
1243            public void setWrappedUserService(UserService userService) {
1244                    _userService = userService;
1245            }
1246    
1247            public UserService getWrappedService() {
1248                    return _userService;
1249            }
1250    
1251            public void setWrappedService(UserService userService) {
1252                    _userService = userService;
1253            }
1254    
1255            private UserService _userService;
1256    }