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