001    /**
002     * Copyright (c) 2000-2012 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.
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 sendEmail whether to send the user an email notification about
152            their new account
153            * @param serviceContext the user's service context (optionally
154            <code>null</code>). Can set the universally unique identifier
155            (with the <code>uuid</code> attribute), asset category IDs, asset
156            tag names, and expando bridge attributes for the user.
157            * @return the new user
158            * @throws PortalException if the user's information was invalid, if the
159            creator did not have permission to add users, or if the email
160            address was reserved
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.User addUser(long companyId,
164                    boolean autoPassword, java.lang.String password1,
165                    java.lang.String password2, boolean autoScreenName,
166                    java.lang.String screenName, java.lang.String emailAddress,
167                    long facebookId, java.lang.String openId, java.util.Locale locale,
168                    java.lang.String firstName, java.lang.String middleName,
169                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
170                    int birthdayMonth, int birthdayDay, int birthdayYear,
171                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
172                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
173                    com.liferay.portal.service.ServiceContext serviceContext)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _userService.addUser(companyId, autoPassword, password1,
177                            password2, autoScreenName, screenName, emailAddress, facebookId,
178                            openId, locale, firstName, middleName, lastName, prefixId,
179                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
180                            groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
181                            serviceContext);
182            }
183    
184            /**
185            * Adds a user with additional parameters.
186            *
187            * <p>
188            * This method handles the creation and bookkeeping of the user including
189            * its resources, metadata, and internal data structures. It is not
190            * necessary to make subsequent calls to any methods to setup default
191            * groups, resources, etc.
192            * </p>
193            *
194            * @param companyId the primary key of the user's company
195            * @param autoPassword whether a password should be automatically generated
196            for the user
197            * @param password1 the user's password
198            * @param password2 the user's password confirmation
199            * @param autoScreenName whether a screen name should be automatically
200            generated for the user
201            * @param screenName the user's screen name
202            * @param emailAddress the user's email address
203            * @param facebookId the user's facebook ID
204            * @param openId the user's OpenID
205            * @param locale the user's locale
206            * @param firstName the user's first name
207            * @param middleName the user's middle name
208            * @param lastName the user's last name
209            * @param prefixId the user's name prefix ID
210            * @param suffixId the user's name suffix ID
211            * @param male whether the user is male
212            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
213            January)
214            * @param birthdayDay the user's birthday day
215            * @param birthdayYear the user's birthday year
216            * @param jobTitle the user's job title
217            * @param groupIds the primary keys of the user's groups
218            * @param organizationIds the primary keys of the user's organizations
219            * @param roleIds the primary keys of the roles this user possesses
220            * @param userGroupIds the primary keys of the user's user groups
221            * @param addresses the user's addresses
222            * @param emailAddresses the user's email addresses
223            * @param phones the user's phone numbers
224            * @param websites the user's websites
225            * @param announcementsDelivers the announcements deliveries
226            * @param sendEmail whether to send the user an email notification about
227            their new account
228            * @param serviceContext the user's service context (optionally
229            <code>null</code>). Can set the universally unique identifier
230            (with the <code>uuid</code> attribute), asset category IDs, asset
231            tag names, and expando bridge attributes for the user.
232            * @return the new user
233            * @throws PortalException if the user's information was invalid, if the
234            creator did not have permission to add users, if the email
235            address was reserved, or some other portal exception occurred
236            * @throws SystemException if a system exception occurred
237            */
238            public com.liferay.portal.model.User addUser(long companyId,
239                    boolean autoPassword, java.lang.String password1,
240                    java.lang.String password2, boolean autoScreenName,
241                    java.lang.String screenName, java.lang.String emailAddress,
242                    long facebookId, java.lang.String openId, java.util.Locale locale,
243                    java.lang.String firstName, java.lang.String middleName,
244                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
245                    int birthdayMonth, int birthdayDay, int birthdayYear,
246                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
247                    long[] roleIds, long[] userGroupIds,
248                    java.util.List<com.liferay.portal.model.Address> addresses,
249                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
250                    java.util.List<com.liferay.portal.model.Phone> phones,
251                    java.util.List<com.liferay.portal.model.Website> websites,
252                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
253                    boolean sendEmail,
254                    com.liferay.portal.service.ServiceContext serviceContext)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _userService.addUser(companyId, autoPassword, password1,
258                            password2, autoScreenName, screenName, emailAddress, facebookId,
259                            openId, locale, firstName, middleName, lastName, prefixId,
260                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
261                            groupIds, organizationIds, roleIds, userGroupIds, addresses,
262                            emailAddresses, phones, websites, announcementsDelivers, sendEmail,
263                            serviceContext);
264            }
265    
266            /**
267            * Adds the users to the user group.
268            *
269            * @param userGroupId the primary key of the user group
270            * @param userIds the primary keys of the users
271            * @throws PortalException if a user group or user with the primary could
272            could not be found, or if the current user did not have
273            permission to assign group members
274            * @throws SystemException if a system exception occurred
275            */
276            public void addUserGroupUsers(long userGroupId, long[] userIds)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _userService.addUserGroupUsers(userGroupId, userIds);
280            }
281    
282            /**
283            * Adds a user with workflow.
284            *
285            * <p>
286            * This method handles the creation and bookkeeping of the user including
287            * its resources, metadata, and internal data structures. It is not
288            * necessary to make subsequent calls to any methods to setup default
289            * groups, resources, etc.
290            * </p>
291            *
292            * @param companyId the primary key of the user's company
293            * @param autoPassword whether a password should be automatically generated
294            for the user
295            * @param password1 the user's password
296            * @param password2 the user's password confirmation
297            * @param autoScreenName whether a screen name should be automatically
298            generated for the user
299            * @param screenName the user's screen name
300            * @param emailAddress the user's email address
301            * @param facebookId the user's facebook ID
302            * @param openId the user's OpenID
303            * @param locale the user's locale
304            * @param firstName the user's first name
305            * @param middleName the user's middle name
306            * @param lastName the user's last name
307            * @param prefixId the user's name prefix ID
308            * @param suffixId the user's name suffix ID
309            * @param male whether the user is male
310            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
311            January)
312            * @param birthdayDay the user's birthday day
313            * @param birthdayYear the user's birthday year
314            * @param jobTitle the user's job title
315            * @param groupIds the primary keys of the user's groups
316            * @param organizationIds the primary keys of the user's organizations
317            * @param roleIds the primary keys of the roles this user possesses
318            * @param userGroupIds the primary keys of the user's user groups
319            * @param sendEmail whether to send the user an email notification about
320            their new account
321            * @param serviceContext the user's service context (optionally
322            <code>null</code>). Can set the universally unique identifier
323            (with the <code>uuid</code> attribute), asset category IDs, asset
324            tag names, and expando bridge attributes for the user.
325            * @return the new user
326            * @throws PortalException if the user's information was invalid, if the
327            creator did not have permission to add users, or if the email
328            address was reserved
329            * @throws SystemException if a system exception occurred
330            */
331            public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
332                    boolean autoPassword, java.lang.String password1,
333                    java.lang.String password2, boolean autoScreenName,
334                    java.lang.String screenName, java.lang.String emailAddress,
335                    long facebookId, java.lang.String openId, java.util.Locale locale,
336                    java.lang.String firstName, java.lang.String middleName,
337                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
338                    int birthdayMonth, int birthdayDay, int birthdayYear,
339                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
340                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
341                    com.liferay.portal.service.ServiceContext serviceContext)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _userService.addUserWithWorkflow(companyId, autoPassword,
345                            password1, password2, autoScreenName, screenName, emailAddress,
346                            facebookId, openId, locale, firstName, middleName, lastName,
347                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
348                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
349                            sendEmail, serviceContext);
350            }
351    
352            /**
353            * Adds a user with workflow and additional parameters.
354            *
355            * <p>
356            * This method handles the creation and bookkeeping of the user including
357            * its resources, metadata, and internal data structures. It is not
358            * necessary to make subsequent calls to any methods to setup default
359            * groups, resources, etc.
360            * </p>
361            *
362            * @param companyId the primary key of the user's company
363            * @param autoPassword whether a password should be automatically generated
364            for the user
365            * @param password1 the user's password
366            * @param password2 the user's password confirmation
367            * @param autoScreenName whether a screen name should be automatically
368            generated for the user
369            * @param screenName the user's screen name
370            * @param emailAddress the user's email address
371            * @param facebookId the user's facebook ID
372            * @param openId the user's OpenID
373            * @param locale the user's locale
374            * @param firstName the user's first name
375            * @param middleName the user's middle name
376            * @param lastName the user's last name
377            * @param prefixId the user's name prefix ID
378            * @param suffixId the user's name suffix ID
379            * @param male whether the user is male
380            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
381            January)
382            * @param birthdayDay the user's birthday day
383            * @param birthdayYear the user's birthday year
384            * @param jobTitle the user's job title
385            * @param groupIds the primary keys of the user's groups
386            * @param organizationIds the primary keys of the user's organizations
387            * @param roleIds the primary keys of the roles this user possesses
388            * @param userGroupIds the primary keys of the user's user groups
389            * @param addresses the user's addresses
390            * @param emailAddresses the user's email addresses
391            * @param phones the user's phone numbers
392            * @param websites the user's websites
393            * @param announcementsDelivers the announcements deliveries
394            * @param sendEmail whether to send the user an email notification about
395            their new account
396            * @param serviceContext the user's service context (optionally
397            <code>null</code>). Can set the universally unique identifier
398            (with the <code>uuid</code> attribute), asset category IDs, asset
399            tag names, and expando bridge attributes for the user.
400            * @return the new user
401            * @throws PortalException if the user's information was invalid, if the
402            creator did not have permission to add users, if the email
403            address was reserved, or some other portal exception occurred
404            * @throws SystemException if a system exception occurred
405            */
406            public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
407                    boolean autoPassword, java.lang.String password1,
408                    java.lang.String password2, boolean autoScreenName,
409                    java.lang.String screenName, java.lang.String emailAddress,
410                    long facebookId, java.lang.String openId, java.util.Locale locale,
411                    java.lang.String firstName, java.lang.String middleName,
412                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
413                    int birthdayMonth, int birthdayDay, int birthdayYear,
414                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
415                    long[] roleIds, long[] userGroupIds,
416                    java.util.List<com.liferay.portal.model.Address> addresses,
417                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
418                    java.util.List<com.liferay.portal.model.Phone> phones,
419                    java.util.List<com.liferay.portal.model.Website> websites,
420                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
421                    boolean sendEmail,
422                    com.liferay.portal.service.ServiceContext serviceContext)
423                    throws com.liferay.portal.kernel.exception.PortalException,
424                            com.liferay.portal.kernel.exception.SystemException {
425                    return _userService.addUserWithWorkflow(companyId, autoPassword,
426                            password1, password2, autoScreenName, screenName, emailAddress,
427                            facebookId, openId, locale, firstName, middleName, lastName,
428                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
429                            jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
430                            addresses, emailAddresses, phones, websites, announcementsDelivers,
431                            sendEmail, serviceContext);
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            * Sets the users in the role, removing and adding users to the role as
674            * necessary.
675            *
676            * @param roleId the primary key of the role
677            * @param userIds the primary keys of the users
678            * @throws PortalException if the current user did not have permission to
679            assign role members
680            * @throws SystemException if a system exception occurred
681            */
682            public void setRoleUsers(long roleId, long[] userIds)
683                    throws com.liferay.portal.kernel.exception.PortalException,
684                            com.liferay.portal.kernel.exception.SystemException {
685                    _userService.setRoleUsers(roleId, userIds);
686            }
687    
688            /**
689            * Sets the users in the user group, removing and adding users to the user
690            * group as necessary.
691            *
692            * @param userGroupId the primary key of the user group
693            * @param userIds the primary keys of the users
694            * @throws PortalException if the current user did not have permission to
695            assign group members
696            * @throws SystemException if a system exception occurred
697            */
698            public void setUserGroupUsers(long userGroupId, long[] userIds)
699                    throws com.liferay.portal.kernel.exception.PortalException,
700                            com.liferay.portal.kernel.exception.SystemException {
701                    _userService.setUserGroupUsers(userGroupId, userIds);
702            }
703    
704            /**
705            * Removes the users from the group.
706            *
707            * @param groupId the primary key of the group
708            * @param userIds the primary keys of the users
709            * @throws PortalException if the current user did not have permission to
710            modify group assignments
711            * @throws SystemException if a system exception occurred
712            */
713            public void unsetGroupUsers(long groupId, long[] userIds,
714                    com.liferay.portal.service.ServiceContext serviceContext)
715                    throws com.liferay.portal.kernel.exception.PortalException,
716                            com.liferay.portal.kernel.exception.SystemException {
717                    _userService.unsetGroupUsers(groupId, userIds, serviceContext);
718            }
719    
720            /**
721            * Removes the users from the organization.
722            *
723            * @param organizationId the primary key of the organization
724            * @param userIds the primary keys of the users
725            * @throws PortalException if the current user did not have permission to
726            modify organization assignments
727            * @throws SystemException if a system exception occurred
728            */
729            public void unsetOrganizationUsers(long organizationId, long[] userIds)
730                    throws com.liferay.portal.kernel.exception.PortalException,
731                            com.liferay.portal.kernel.exception.SystemException {
732                    _userService.unsetOrganizationUsers(organizationId, userIds);
733            }
734    
735            /**
736            * Removes the users from the password policy.
737            *
738            * @param passwordPolicyId the primary key of the password policy
739            * @param userIds the primary keys of the users
740            * @throws PortalException if the current user did not have permission to
741            modify policy assignments
742            * @throws SystemException if a system exception occurred
743            */
744            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
745                    throws com.liferay.portal.kernel.exception.PortalException,
746                            com.liferay.portal.kernel.exception.SystemException {
747                    _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
748            }
749    
750            /**
751            * Removes the users from the role.
752            *
753            * @param roleId the primary key of the role
754            * @param userIds the primary keys of the users
755            * @throws PortalException if the current user did not have permission to
756            modify role assignments
757            * @throws SystemException if a system exception occurred
758            */
759            public void unsetRoleUsers(long roleId, long[] userIds)
760                    throws com.liferay.portal.kernel.exception.PortalException,
761                            com.liferay.portal.kernel.exception.SystemException {
762                    _userService.unsetRoleUsers(roleId, userIds);
763            }
764    
765            /**
766            * Removes the users from the team.
767            *
768            * @param teamId the primary key of the team
769            * @param userIds the primary keys of the users
770            * @throws PortalException if the current user did not have permission to
771            modify team assignments
772            * @throws SystemException if a system exception occurred
773            */
774            public void unsetTeamUsers(long teamId, long[] userIds)
775                    throws com.liferay.portal.kernel.exception.PortalException,
776                            com.liferay.portal.kernel.exception.SystemException {
777                    _userService.unsetTeamUsers(teamId, userIds);
778            }
779    
780            /**
781            * Removes the users from the user group.
782            *
783            * @param userGroupId the primary key of the user group
784            * @param userIds the primary keys of the users
785            * @throws PortalException if the current user did not have permission to
786            modify user group assignments
787            * @throws SystemException if a system exception occurred
788            */
789            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
790                    throws com.liferay.portal.kernel.exception.PortalException,
791                            com.liferay.portal.kernel.exception.SystemException {
792                    _userService.unsetUserGroupUsers(userGroupId, userIds);
793            }
794    
795            /**
796            * Updates the user's response to the terms of use agreement.
797            *
798            * @param userId the primary key of the user
799            * @param agreedToTermsOfUse whether the user has agree to the terms of use
800            * @return the user
801            * @throws PortalException if the current user did not have permission to
802            update the user's agreement to terms-of-use
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
806                    boolean agreedToTermsOfUse)
807                    throws com.liferay.portal.kernel.exception.PortalException,
808                            com.liferay.portal.kernel.exception.SystemException {
809                    return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
810            }
811    
812            /**
813            * Updates the user's email address.
814            *
815            * @param userId the primary key of the user
816            * @param password the user's password
817            * @param emailAddress1 the user's new email address
818            * @param emailAddress2 the user's new email address confirmation
819            * @return the user
820            * @throws PortalException if a user with the primary key could not be found
821            or if the current user did not have permission to update the user
822            * @throws SystemException if a system exception occurred
823            */
824            public com.liferay.portal.model.User updateEmailAddress(long userId,
825                    java.lang.String password, java.lang.String emailAddress1,
826                    java.lang.String emailAddress2,
827                    com.liferay.portal.service.ServiceContext serviceContext)
828                    throws com.liferay.portal.kernel.exception.PortalException,
829                            com.liferay.portal.kernel.exception.SystemException {
830                    return _userService.updateEmailAddress(userId, password, emailAddress1,
831                            emailAddress2, serviceContext);
832            }
833    
834            /**
835            * Updates a user account that was automatically created when a guest user
836            * participated in an action (e.g. posting a comment) and only provided his
837            * name and email address.
838            *
839            * @param companyId the primary key of the user's company
840            * @param autoPassword whether a password should be automatically generated
841            for the user
842            * @param password1 the user's password
843            * @param password2 the user's password confirmation
844            * @param autoScreenName whether a screen name should be automatically
845            generated for the user
846            * @param screenName the user's screen name
847            * @param emailAddress the user's email address
848            * @param facebookId the user's facebook ID
849            * @param openId the user's OpenID
850            * @param locale the user's locale
851            * @param firstName the user's first name
852            * @param middleName the user's middle name
853            * @param lastName the user's last name
854            * @param prefixId the user's name prefix ID
855            * @param suffixId the user's name suffix ID
856            * @param male whether the user is male
857            * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
858            January)
859            * @param birthdayDay the user's birthday day
860            * @param birthdayYear the user's birthday year
861            * @param jobTitle the user's job title
862            * @param updateUserInformation whether to update the user's information
863            * @param sendEmail whether to send the user an email notification about
864            their new account
865            * @param serviceContext the user's service context (optionally
866            <code>null</code>). Can set the expando bridge attributes for the
867            user.
868            * @return the user
869            * @throws PortalException if the user's information was invalid or if the
870            email address was reserved
871            * @throws SystemException if a system exception occurred
872            */
873            public com.liferay.portal.model.User updateIncompleteUser(long companyId,
874                    boolean autoPassword, java.lang.String password1,
875                    java.lang.String password2, boolean autoScreenName,
876                    java.lang.String screenName, java.lang.String emailAddress,
877                    long facebookId, java.lang.String openId, java.util.Locale locale,
878                    java.lang.String firstName, java.lang.String middleName,
879                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
880                    int birthdayMonth, int birthdayDay, int birthdayYear,
881                    java.lang.String jobTitle, boolean updateUserInformation,
882                    boolean sendEmail,
883                    com.liferay.portal.service.ServiceContext serviceContext)
884                    throws com.liferay.portal.kernel.exception.PortalException,
885                            com.liferay.portal.kernel.exception.SystemException {
886                    return _userService.updateIncompleteUser(companyId, autoPassword,
887                            password1, password2, autoScreenName, screenName, emailAddress,
888                            facebookId, openId, locale, firstName, middleName, lastName,
889                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
890                            jobTitle, updateUserInformation, sendEmail, 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    }