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