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