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