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