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