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