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