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