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