001    /**
002     * Copyright (c) 2000-2011 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.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * The utility for the user local service. This utility wraps {@link com.liferay.portal.service.impl.UserLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
023     *
024     * <p>
025     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see UserLocalService
030     * @see com.liferay.portal.service.base.UserLocalServiceBaseImpl
031     * @see com.liferay.portal.service.impl.UserLocalServiceImpl
032     * @generated
033     */
034    public class UserLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.UserLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the user to the database. Also notifies the appropriate model listeners.
043            *
044            * @param user the user
045            * @return the user that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portal.model.User addUser(
049                    com.liferay.portal.model.User user)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addUser(user);
052            }
053    
054            /**
055            * Creates a new user with the primary key. Does not add the user to the database.
056            *
057            * @param userId the primary key for the new user
058            * @return the new user
059            */
060            public static com.liferay.portal.model.User createUser(long userId) {
061                    return getService().createUser(userId);
062            }
063    
064            /**
065            * Deletes the user with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param userId the primary key of the user
068            * @throws PortalException if a user with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public static void deleteUser(long userId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    getService().deleteUser(userId);
075            }
076    
077            /**
078            * Deletes the user from the database. Also notifies the appropriate model listeners.
079            *
080            * @param user the user
081            * @throws PortalException
082            * @throws SystemException if a system exception occurred
083            */
084            public static void deleteUser(com.liferay.portal.model.User user)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    getService().deleteUser(user);
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public static java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public static java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().dynamicQuery(dynamicQuery, start, end);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public static java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getService()
145                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146            }
147    
148            /**
149            * Returns the number of rows that match the dynamic query.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the number of rows that match the dynamic query
153            * @throws SystemException if a system exception occurred
154            */
155            public static long dynamicQueryCount(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getService().dynamicQueryCount(dynamicQuery);
159            }
160    
161            /**
162            * Returns the user with the primary key.
163            *
164            * @param userId the primary key of the user
165            * @return the user
166            * @throws PortalException if a user with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public static com.liferay.portal.model.User getUser(long userId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return getService().getUser(userId);
173            }
174    
175            public static com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns a range of all the users.
184            *
185            * <p>
186            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
187            * </p>
188            *
189            * @param start the lower bound of the range of users
190            * @param end the upper bound of the range of users (not inclusive)
191            * @return the range of users
192            * @throws SystemException if a system exception occurred
193            */
194            public static java.util.List<com.liferay.portal.model.User> getUsers(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return getService().getUsers(start, end);
198            }
199    
200            /**
201            * Returns the number of users.
202            *
203            * @return the number of users
204            * @throws SystemException if a system exception occurred
205            */
206            public static int getUsersCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getUsersCount();
209            }
210    
211            /**
212            * Updates the user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param user the user
215            * @return the user that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public static com.liferay.portal.model.User updateUser(
219                    com.liferay.portal.model.User user)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getService().updateUser(user);
222            }
223    
224            /**
225            * Updates the user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param user the user
228            * @param merge whether to merge the user with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
229            * @return the user that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public static com.liferay.portal.model.User updateUser(
233                    com.liferay.portal.model.User user, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return getService().updateUser(user, merge);
236            }
237    
238            /**
239            * Returns the Spring bean ID for this bean.
240            *
241            * @return the Spring bean ID for this bean
242            */
243            public static java.lang.String getBeanIdentifier() {
244                    return getService().getBeanIdentifier();
245            }
246    
247            /**
248            * Sets the Spring bean ID for this bean.
249            *
250            * @param beanIdentifier the Spring bean ID for this bean
251            */
252            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
253                    getService().setBeanIdentifier(beanIdentifier);
254            }
255    
256            public static void addDefaultGroups(long userId)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    getService().addDefaultGroups(userId);
260            }
261    
262            public static void addDefaultRoles(long userId)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    getService().addDefaultRoles(userId);
266            }
267    
268            public static void addDefaultUserGroups(long userId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    getService().addDefaultUserGroups(userId);
272            }
273    
274            public static void addGroupUsers(long groupId, long[] userIds)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    getService().addGroupUsers(groupId, userIds);
278            }
279    
280            public static void addOrganizationUsers(long organizationId, long[] userIds)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    getService().addOrganizationUsers(organizationId, userIds);
284            }
285    
286            public static void addPasswordPolicyUsers(long passwordPolicyId,
287                    long[] userIds)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    getService().addPasswordPolicyUsers(passwordPolicyId, userIds);
290            }
291    
292            public static void addRoleUsers(long roleId, long[] userIds)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    getService().addRoleUsers(roleId, userIds);
296            }
297    
298            public static void addTeamUsers(long teamId, long[] userIds)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    getService().addTeamUsers(teamId, userIds);
302            }
303    
304            public static com.liferay.portal.model.User addUser(long creatorUserId,
305                    long companyId, boolean autoPassword, java.lang.String password1,
306                    java.lang.String password2, boolean autoScreenName,
307                    java.lang.String screenName, java.lang.String emailAddress,
308                    long facebookId, java.lang.String openId, java.util.Locale locale,
309                    java.lang.String firstName, java.lang.String middleName,
310                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
311                    int birthdayMonth, int birthdayDay, int birthdayYear,
312                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
313                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
314                    com.liferay.portal.service.ServiceContext serviceContext)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return getService()
318                                       .addUser(creatorUserId, companyId, autoPassword, password1,
319                            password2, autoScreenName, screenName, emailAddress, facebookId,
320                            openId, locale, firstName, middleName, lastName, prefixId,
321                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
322                            groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
323                            serviceContext);
324            }
325    
326            public static void addUserGroupUsers(long userGroupId, long[] userIds)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    getService().addUserGroupUsers(userGroupId, userIds);
330            }
331    
332            public static int authenticateByEmailAddress(long companyId,
333                    java.lang.String emailAddress, java.lang.String password,
334                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
335                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
336                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return getService()
340                                       .authenticateByEmailAddress(companyId, emailAddress,
341                            password, headerMap, parameterMap, resultsMap);
342            }
343    
344            public static int authenticateByScreenName(long companyId,
345                    java.lang.String screenName, java.lang.String password,
346                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
347                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
348                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return getService()
352                                       .authenticateByScreenName(companyId, screenName, password,
353                            headerMap, parameterMap, resultsMap);
354            }
355    
356            public static int authenticateByUserId(long companyId, long userId,
357                    java.lang.String password,
358                    java.util.Map<java.lang.String, java.lang.String[]> headerMap,
359                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
360                    java.util.Map<java.lang.String, java.lang.Object> resultsMap)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return getService()
364                                       .authenticateByUserId(companyId, userId, password,
365                            headerMap, parameterMap, resultsMap);
366            }
367    
368            public static long authenticateForBasic(long companyId,
369                    java.lang.String authType, java.lang.String login,
370                    java.lang.String password)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return getService()
374                                       .authenticateForBasic(companyId, authType, login, password);
375            }
376    
377            public static long authenticateForDigest(long companyId,
378                    java.lang.String username, java.lang.String realm,
379                    java.lang.String nonce, java.lang.String method, java.lang.String uri,
380                    java.lang.String response)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return getService()
384                                       .authenticateForDigest(companyId, username, realm, nonce,
385                            method, uri, response);
386            }
387    
388            public static boolean authenticateForJAAS(long userId,
389                    java.lang.String encPassword) {
390                    return getService().authenticateForJAAS(userId, encPassword);
391            }
392    
393            public static void checkLockout(com.liferay.portal.model.User user)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    getService().checkLockout(user);
397            }
398    
399            public static void checkLoginFailure(com.liferay.portal.model.User user)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    getService().checkLoginFailure(user);
402            }
403    
404            public static void checkLoginFailureByEmailAddress(long companyId,
405                    java.lang.String emailAddress)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    getService().checkLoginFailureByEmailAddress(companyId, emailAddress);
409            }
410    
411            public static void checkLoginFailureById(long userId)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    getService().checkLoginFailureById(userId);
415            }
416    
417            public static void checkLoginFailureByScreenName(long companyId,
418                    java.lang.String screenName)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    getService().checkLoginFailureByScreenName(companyId, screenName);
422            }
423    
424            public static void checkPasswordExpired(com.liferay.portal.model.User user)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException {
427                    getService().checkPasswordExpired(user);
428            }
429    
430            public static void clearOrganizationUsers(long organizationId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    getService().clearOrganizationUsers(organizationId);
433            }
434    
435            public static void clearUserGroupUsers(long userGroupId)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    getService().clearUserGroupUsers(userGroupId);
438            }
439    
440            public static com.liferay.portal.kernel.util.KeyValuePair decryptUserId(
441                    long companyId, java.lang.String name, java.lang.String password)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException {
444                    return getService().decryptUserId(companyId, name, password);
445            }
446    
447            public static void deletePortrait(long userId)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    getService().deletePortrait(userId);
451            }
452    
453            public static void deleteRoleUser(long roleId, long userId)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    getService().deleteRoleUser(roleId, userId);
457            }
458    
459            public static void deleteUserGroupUser(long userGroupId, long userId)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    getService().deleteUserGroupUser(userGroupId, userId);
463            }
464    
465            public static java.lang.String encryptUserId(java.lang.String name)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return getService().encryptUserId(name);
469            }
470    
471            public static com.liferay.portal.model.User fetchUserByScreenName(
472                    long companyId, java.lang.String screenName)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService().fetchUserByScreenName(companyId, screenName);
475            }
476    
477            public static java.util.List<com.liferay.portal.model.User> getCompanyUsers(
478                    long companyId, int start, int end)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getService().getCompanyUsers(companyId, start, end);
481            }
482    
483            public static int getCompanyUsersCount(long companyId)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getService().getCompanyUsersCount(companyId);
486            }
487    
488            public static com.liferay.portal.model.User getDefaultUser(long companyId)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return getService().getDefaultUser(companyId);
492            }
493    
494            public static long getDefaultUserId(long companyId)
495                    throws com.liferay.portal.kernel.exception.PortalException,
496                            com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getDefaultUserId(companyId);
498            }
499    
500            public static long[] getGroupUserIds(long groupId)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getService().getGroupUserIds(groupId);
503            }
504    
505            public static java.util.List<com.liferay.portal.model.User> getGroupUsers(
506                    long groupId)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getService().getGroupUsers(groupId);
509            }
510    
511            public static int getGroupUsersCount(long groupId)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService().getGroupUsersCount(groupId);
514            }
515    
516            public static int getGroupUsersCount(long groupId, boolean active)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException {
519                    return getService().getGroupUsersCount(groupId, active);
520            }
521    
522            public static java.util.List<com.liferay.portal.model.User> getNoAnnouncementsDeliveries(
523                    java.lang.String type)
524                    throws com.liferay.portal.kernel.exception.SystemException {
525                    return getService().getNoAnnouncementsDeliveries(type);
526            }
527    
528            public static java.util.List<com.liferay.portal.model.User> getNoContacts()
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getService().getNoContacts();
531            }
532    
533            public static java.util.List<com.liferay.portal.model.User> getNoGroups()
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getService().getNoGroups();
536            }
537    
538            public static long[] getOrganizationUserIds(long organizationId)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getService().getOrganizationUserIds(organizationId);
541            }
542    
543            public static java.util.List<com.liferay.portal.model.User> getOrganizationUsers(
544                    long organizationId)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    return getService().getOrganizationUsers(organizationId);
547            }
548    
549            public static int getOrganizationUsersCount(long organizationId)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return getService().getOrganizationUsersCount(organizationId);
552            }
553    
554            public static int getOrganizationUsersCount(long organizationId,
555                    boolean active)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return getService().getOrganizationUsersCount(organizationId, active);
559            }
560    
561            public static long[] getRoleUserIds(long roleId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getService().getRoleUserIds(roleId);
564            }
565    
566            public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
567                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
568                    return getService().getRoleUsers(roleId);
569            }
570    
571            public static java.util.List<com.liferay.portal.model.User> getRoleUsers(
572                    long roleId, int start, int end)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getService().getRoleUsers(roleId, start, end);
575            }
576    
577            public static int getRoleUsersCount(long roleId)
578                    throws com.liferay.portal.kernel.exception.SystemException {
579                    return getService().getRoleUsersCount(roleId);
580            }
581    
582            public static int getRoleUsersCount(long roleId, boolean active)
583                    throws com.liferay.portal.kernel.exception.PortalException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    return getService().getRoleUsersCount(roleId, active);
586            }
587    
588            public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
589                    long userId, int type, int start, int end,
590                    com.liferay.portal.kernel.util.OrderByComparator obc)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    return getService().getSocialUsers(userId, type, start, end, obc);
594            }
595    
596            public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
597                    long userId, int start, int end,
598                    com.liferay.portal.kernel.util.OrderByComparator obc)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException {
601                    return getService().getSocialUsers(userId, start, end, obc);
602            }
603    
604            public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
605                    long userId1, long userId2, int type, int start, int end,
606                    com.liferay.portal.kernel.util.OrderByComparator obc)
607                    throws com.liferay.portal.kernel.exception.PortalException,
608                            com.liferay.portal.kernel.exception.SystemException {
609                    return getService()
610                                       .getSocialUsers(userId1, userId2, type, start, end, obc);
611            }
612    
613            public static java.util.List<com.liferay.portal.model.User> getSocialUsers(
614                    long userId1, long userId2, int start, int end,
615                    com.liferay.portal.kernel.util.OrderByComparator obc)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    return getService().getSocialUsers(userId1, userId2, start, end, obc);
619            }
620    
621            public static int getSocialUsersCount(long userId)
622                    throws com.liferay.portal.kernel.exception.PortalException,
623                            com.liferay.portal.kernel.exception.SystemException {
624                    return getService().getSocialUsersCount(userId);
625            }
626    
627            public static int getSocialUsersCount(long userId, int type)
628                    throws com.liferay.portal.kernel.exception.PortalException,
629                            com.liferay.portal.kernel.exception.SystemException {
630                    return getService().getSocialUsersCount(userId, type);
631            }
632    
633            public static int getSocialUsersCount(long userId1, long userId2)
634                    throws com.liferay.portal.kernel.exception.PortalException,
635                            com.liferay.portal.kernel.exception.SystemException {
636                    return getService().getSocialUsersCount(userId1, userId2);
637            }
638    
639            public static int getSocialUsersCount(long userId1, long userId2, int type)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return getService().getSocialUsersCount(userId1, userId2, type);
643            }
644    
645            public static com.liferay.portal.model.User getUserByContactId(
646                    long contactId)
647                    throws com.liferay.portal.kernel.exception.PortalException,
648                            com.liferay.portal.kernel.exception.SystemException {
649                    return getService().getUserByContactId(contactId);
650            }
651    
652            public static com.liferay.portal.model.User getUserByEmailAddress(
653                    long companyId, java.lang.String emailAddress)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    return getService().getUserByEmailAddress(companyId, emailAddress);
657            }
658    
659            public static com.liferay.portal.model.User getUserByFacebookId(
660                    long companyId, long facebookId)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    return getService().getUserByFacebookId(companyId, facebookId);
664            }
665    
666            public static com.liferay.portal.model.User getUserById(long userId)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException {
669                    return getService().getUserById(userId);
670            }
671    
672            public static com.liferay.portal.model.User getUserById(long companyId,
673                    long userId)
674                    throws com.liferay.portal.kernel.exception.PortalException,
675                            com.liferay.portal.kernel.exception.SystemException {
676                    return getService().getUserById(companyId, userId);
677            }
678    
679            public static com.liferay.portal.model.User getUserByOpenId(
680                    long companyId, java.lang.String openId)
681                    throws com.liferay.portal.kernel.exception.PortalException,
682                            com.liferay.portal.kernel.exception.SystemException {
683                    return getService().getUserByOpenId(companyId, openId);
684            }
685    
686            public static com.liferay.portal.model.User getUserByPortraitId(
687                    long portraitId)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException {
690                    return getService().getUserByPortraitId(portraitId);
691            }
692    
693            public static com.liferay.portal.model.User getUserByScreenName(
694                    long companyId, java.lang.String screenName)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException {
697                    return getService().getUserByScreenName(companyId, screenName);
698            }
699    
700            public static com.liferay.portal.model.User getUserByUuid(
701                    java.lang.String uuid)
702                    throws com.liferay.portal.kernel.exception.PortalException,
703                            com.liferay.portal.kernel.exception.SystemException {
704                    return getService().getUserByUuid(uuid);
705            }
706    
707            public static java.util.List<com.liferay.portal.model.User> getUserGroupUsers(
708                    long userGroupId)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return getService().getUserGroupUsers(userGroupId);
711            }
712    
713            public static int getUserGroupUsersCount(long userGroupId)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getService().getUserGroupUsersCount(userGroupId);
716            }
717    
718            public static int getUserGroupUsersCount(long userGroupId, boolean active)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    return getService().getUserGroupUsersCount(userGroupId, active);
722            }
723    
724            public static long getUserIdByEmailAddress(long companyId,
725                    java.lang.String emailAddress)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException {
728                    return getService().getUserIdByEmailAddress(companyId, emailAddress);
729            }
730    
731            public static long getUserIdByScreenName(long companyId,
732                    java.lang.String screenName)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException {
735                    return getService().getUserIdByScreenName(companyId, screenName);
736            }
737    
738            public static boolean hasGroupUser(long groupId, long userId)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getService().hasGroupUser(groupId, userId);
741            }
742    
743            public static boolean hasOrganizationUser(long organizationId, long userId)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getService().hasOrganizationUser(organizationId, userId);
746            }
747    
748            public static boolean hasPasswordPolicyUser(long passwordPolicyId,
749                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
750                    return getService().hasPasswordPolicyUser(passwordPolicyId, userId);
751            }
752    
753            public static boolean hasRoleUser(long roleId, long userId)
754                    throws com.liferay.portal.kernel.exception.SystemException {
755                    return getService().hasRoleUser(roleId, userId);
756            }
757    
758            /**
759            * Returns <code>true</code> if the user has the role.
760            *
761            * @return <code>true</code> if the user has the role
762            */
763            public static boolean hasRoleUser(long companyId, java.lang.String name,
764                    long userId, boolean inherited)
765                    throws com.liferay.portal.kernel.exception.PortalException,
766                            com.liferay.portal.kernel.exception.SystemException {
767                    return getService().hasRoleUser(companyId, name, userId, inherited);
768            }
769    
770            public static boolean hasTeamUser(long teamId, long userId)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return getService().hasTeamUser(teamId, userId);
773            }
774    
775            public static boolean hasUserGroupUser(long userGroupId, long userId)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    return getService().hasUserGroupUser(userGroupId, userId);
778            }
779    
780            public static boolean isPasswordExpired(com.liferay.portal.model.User user)
781                    throws com.liferay.portal.kernel.exception.PortalException,
782                            com.liferay.portal.kernel.exception.SystemException {
783                    return getService().isPasswordExpired(user);
784            }
785    
786            public static boolean isPasswordExpiringSoon(
787                    com.liferay.portal.model.User user)
788                    throws com.liferay.portal.kernel.exception.PortalException,
789                            com.liferay.portal.kernel.exception.SystemException {
790                    return getService().isPasswordExpiringSoon(user);
791            }
792    
793            public static java.util.List<com.liferay.portal.model.User> search(
794                    long companyId, java.lang.String keywords, java.lang.Boolean active,
795                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
796                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getService()
799                                       .search(companyId, keywords, active, params, start, end, obc);
800            }
801    
802            public static com.liferay.portal.kernel.search.Hits search(long companyId,
803                    java.lang.String keywords, java.lang.Boolean active,
804                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
805                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    return getService()
808                                       .search(companyId, keywords, active, params, start, end, sort);
809            }
810    
811            public static java.util.List<com.liferay.portal.model.User> search(
812                    long companyId, java.lang.String firstName,
813                    java.lang.String middleName, java.lang.String lastName,
814                    java.lang.String screenName, java.lang.String emailAddress,
815                    java.lang.Boolean active,
816                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
817                    boolean andSearch, int start, int end,
818                    com.liferay.portal.kernel.util.OrderByComparator obc)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return getService()
821                                       .search(companyId, firstName, middleName, lastName,
822                            screenName, emailAddress, active, params, andSearch, start, end, obc);
823            }
824    
825            public static com.liferay.portal.kernel.search.Hits search(long companyId,
826                    java.lang.String firstName, java.lang.String middleName,
827                    java.lang.String lastName, java.lang.String screenName,
828                    java.lang.String emailAddress, java.lang.Boolean active,
829                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
830                    boolean andSearch, int start, int end,
831                    com.liferay.portal.kernel.search.Sort sort)
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    return getService()
834                                       .search(companyId, firstName, middleName, lastName,
835                            screenName, emailAddress, active, params, andSearch, start, end,
836                            sort);
837            }
838    
839            public static int searchCount(long companyId, java.lang.String keywords,
840                    java.lang.Boolean active,
841                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
842                    throws com.liferay.portal.kernel.exception.SystemException {
843                    return getService().searchCount(companyId, keywords, active, params);
844            }
845    
846            public static int searchCount(long companyId, java.lang.String firstName,
847                    java.lang.String middleName, java.lang.String lastName,
848                    java.lang.String screenName, java.lang.String emailAddress,
849                    java.lang.Boolean active,
850                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
851                    boolean andSearch)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getService()
854                                       .searchCount(companyId, firstName, middleName, lastName,
855                            screenName, emailAddress, active, params, andSearch);
856            }
857    
858            public static void sendPassword(long companyId,
859                    java.lang.String emailAddress, java.lang.String remoteAddr,
860                    java.lang.String remoteHost, java.lang.String userAgent,
861                    java.lang.String fromName, java.lang.String fromAddress,
862                    java.lang.String subject, java.lang.String body,
863                    com.liferay.portal.service.ServiceContext serviceContext)
864                    throws com.liferay.portal.kernel.exception.PortalException,
865                            com.liferay.portal.kernel.exception.SystemException {
866                    getService()
867                            .sendPassword(companyId, emailAddress, remoteAddr, remoteHost,
868                            userAgent, fromName, fromAddress, subject, body, serviceContext);
869            }
870    
871            public static void setRoleUsers(long roleId, long[] userIds)
872                    throws com.liferay.portal.kernel.exception.PortalException,
873                            com.liferay.portal.kernel.exception.SystemException {
874                    getService().setRoleUsers(roleId, userIds);
875            }
876    
877            public static void setUserGroupUsers(long userGroupId, long[] userIds)
878                    throws com.liferay.portal.kernel.exception.PortalException,
879                            com.liferay.portal.kernel.exception.SystemException {
880                    getService().setUserGroupUsers(userGroupId, userIds);
881            }
882    
883            public static void unsetGroupUsers(long groupId, long[] userIds)
884                    throws com.liferay.portal.kernel.exception.PortalException,
885                            com.liferay.portal.kernel.exception.SystemException {
886                    getService().unsetGroupUsers(groupId, userIds);
887            }
888    
889            public static void unsetOrganizationUsers(long organizationId,
890                    long[] userIds)
891                    throws com.liferay.portal.kernel.exception.PortalException,
892                            com.liferay.portal.kernel.exception.SystemException {
893                    getService().unsetOrganizationUsers(organizationId, userIds);
894            }
895    
896            public static void unsetPasswordPolicyUsers(long passwordPolicyId,
897                    long[] userIds)
898                    throws com.liferay.portal.kernel.exception.SystemException {
899                    getService().unsetPasswordPolicyUsers(passwordPolicyId, userIds);
900            }
901    
902            public static void unsetRoleUsers(long roleId,
903                    java.util.List<com.liferay.portal.model.User> users)
904                    throws com.liferay.portal.kernel.exception.PortalException,
905                            com.liferay.portal.kernel.exception.SystemException {
906                    getService().unsetRoleUsers(roleId, users);
907            }
908    
909            public static void unsetRoleUsers(long roleId, long[] userIds)
910                    throws com.liferay.portal.kernel.exception.PortalException,
911                            com.liferay.portal.kernel.exception.SystemException {
912                    getService().unsetRoleUsers(roleId, userIds);
913            }
914    
915            public static void unsetTeamUsers(long teamId, long[] userIds)
916                    throws com.liferay.portal.kernel.exception.PortalException,
917                            com.liferay.portal.kernel.exception.SystemException {
918                    getService().unsetTeamUsers(teamId, userIds);
919            }
920    
921            public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
922                    throws com.liferay.portal.kernel.exception.PortalException,
923                            com.liferay.portal.kernel.exception.SystemException {
924                    getService().unsetUserGroupUsers(userGroupId, userIds);
925            }
926    
927            public static com.liferay.portal.model.User updateActive(long userId,
928                    boolean active)
929                    throws com.liferay.portal.kernel.exception.PortalException,
930                            com.liferay.portal.kernel.exception.SystemException {
931                    return getService().updateActive(userId, active);
932            }
933    
934            public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
935                    long userId, boolean agreedToTermsOfUse)
936                    throws com.liferay.portal.kernel.exception.PortalException,
937                            com.liferay.portal.kernel.exception.SystemException {
938                    return getService().updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
939            }
940    
941            public static void updateAsset(long userId,
942                    com.liferay.portal.model.User user, long[] assetCategoryIds,
943                    java.lang.String[] assetTagNames)
944                    throws com.liferay.portal.kernel.exception.PortalException,
945                            com.liferay.portal.kernel.exception.SystemException {
946                    getService().updateAsset(userId, user, assetCategoryIds, assetTagNames);
947            }
948    
949            public static com.liferay.portal.model.User updateCreateDate(long userId,
950                    java.util.Date createDate)
951                    throws com.liferay.portal.kernel.exception.PortalException,
952                            com.liferay.portal.kernel.exception.SystemException {
953                    return getService().updateCreateDate(userId, createDate);
954            }
955    
956            public static com.liferay.portal.model.User updateEmailAddress(
957                    long userId, java.lang.String password, java.lang.String emailAddress1,
958                    java.lang.String emailAddress2)
959                    throws com.liferay.portal.kernel.exception.PortalException,
960                            com.liferay.portal.kernel.exception.SystemException {
961                    return getService()
962                                       .updateEmailAddress(userId, password, emailAddress1,
963                            emailAddress2);
964            }
965    
966            public static com.liferay.portal.model.User updateFacebookId(long userId,
967                    long facebookId)
968                    throws com.liferay.portal.kernel.exception.PortalException,
969                            com.liferay.portal.kernel.exception.SystemException {
970                    return getService().updateFacebookId(userId, facebookId);
971            }
972    
973            public static void updateGroups(long userId, long[] newGroupIds)
974                    throws com.liferay.portal.kernel.exception.PortalException,
975                            com.liferay.portal.kernel.exception.SystemException {
976                    getService().updateGroups(userId, newGroupIds);
977            }
978    
979            /**
980            * Updates the user's job title.
981            *
982            * @param jobTitle the user's job title
983            * @return the user
984            */
985            public static com.liferay.portal.model.User updateJobTitle(long userId,
986                    java.lang.String jobTitle)
987                    throws com.liferay.portal.kernel.exception.PortalException,
988                            com.liferay.portal.kernel.exception.SystemException {
989                    return getService().updateJobTitle(userId, jobTitle);
990            }
991    
992            public static com.liferay.portal.model.User updateLastLogin(long userId,
993                    java.lang.String loginIP)
994                    throws com.liferay.portal.kernel.exception.PortalException,
995                            com.liferay.portal.kernel.exception.SystemException {
996                    return getService().updateLastLogin(userId, loginIP);
997            }
998    
999            public static com.liferay.portal.model.User updateLockout(
1000                    com.liferay.portal.model.User user, boolean lockout)
1001                    throws com.liferay.portal.kernel.exception.PortalException,
1002                            com.liferay.portal.kernel.exception.SystemException {
1003                    return getService().updateLockout(user, lockout);
1004            }
1005    
1006            public static com.liferay.portal.model.User updateLockoutByEmailAddress(
1007                    long companyId, java.lang.String emailAddress, boolean lockout)
1008                    throws com.liferay.portal.kernel.exception.PortalException,
1009                            com.liferay.portal.kernel.exception.SystemException {
1010                    return getService()
1011                                       .updateLockoutByEmailAddress(companyId, emailAddress, lockout);
1012            }
1013    
1014            public static com.liferay.portal.model.User updateLockoutById(long userId,
1015                    boolean lockout)
1016                    throws com.liferay.portal.kernel.exception.PortalException,
1017                            com.liferay.portal.kernel.exception.SystemException {
1018                    return getService().updateLockoutById(userId, lockout);
1019            }
1020    
1021            public static com.liferay.portal.model.User updateLockoutByScreenName(
1022                    long companyId, java.lang.String screenName, boolean lockout)
1023                    throws com.liferay.portal.kernel.exception.PortalException,
1024                            com.liferay.portal.kernel.exception.SystemException {
1025                    return getService()
1026                                       .updateLockoutByScreenName(companyId, screenName, lockout);
1027            }
1028    
1029            public static com.liferay.portal.model.User updateModifiedDate(
1030                    long userId, java.util.Date modifiedDate)
1031                    throws com.liferay.portal.kernel.exception.PortalException,
1032                            com.liferay.portal.kernel.exception.SystemException {
1033                    return getService().updateModifiedDate(userId, modifiedDate);
1034            }
1035    
1036            public static com.liferay.portal.model.User updateOpenId(long userId,
1037                    java.lang.String openId)
1038                    throws com.liferay.portal.kernel.exception.PortalException,
1039                            com.liferay.portal.kernel.exception.SystemException {
1040                    return getService().updateOpenId(userId, openId);
1041            }
1042    
1043            public static void updateOrganizations(long userId,
1044                    long[] newOrganizationIds)
1045                    throws com.liferay.portal.kernel.exception.PortalException,
1046                            com.liferay.portal.kernel.exception.SystemException {
1047                    getService().updateOrganizations(userId, newOrganizationIds);
1048            }
1049    
1050            public static com.liferay.portal.model.User updatePassword(long userId,
1051                    java.lang.String password1, java.lang.String password2,
1052                    boolean passwordReset)
1053                    throws com.liferay.portal.kernel.exception.PortalException,
1054                            com.liferay.portal.kernel.exception.SystemException {
1055                    return getService()
1056                                       .updatePassword(userId, password1, password2, passwordReset);
1057            }
1058    
1059            public static com.liferay.portal.model.User updatePassword(long userId,
1060                    java.lang.String password1, java.lang.String password2,
1061                    boolean passwordReset, boolean silentUpdate)
1062                    throws com.liferay.portal.kernel.exception.PortalException,
1063                            com.liferay.portal.kernel.exception.SystemException {
1064                    return getService()
1065                                       .updatePassword(userId, password1, password2, passwordReset,
1066                            silentUpdate);
1067            }
1068    
1069            public static com.liferay.portal.model.User updatePasswordManually(
1070                    long userId, java.lang.String password, boolean passwordEncrypted,
1071                    boolean passwordReset, java.util.Date passwordModifiedDate)
1072                    throws com.liferay.portal.kernel.exception.PortalException,
1073                            com.liferay.portal.kernel.exception.SystemException {
1074                    return getService()
1075                                       .updatePasswordManually(userId, password, passwordEncrypted,
1076                            passwordReset, passwordModifiedDate);
1077            }
1078    
1079            public static com.liferay.portal.model.User updatePasswordReset(
1080                    long userId, boolean passwordReset)
1081                    throws com.liferay.portal.kernel.exception.PortalException,
1082                            com.liferay.portal.kernel.exception.SystemException {
1083                    return getService().updatePasswordReset(userId, passwordReset);
1084            }
1085    
1086            public static com.liferay.portal.model.User updatePortrait(long userId,
1087                    byte[] bytes)
1088                    throws com.liferay.portal.kernel.exception.PortalException,
1089                            com.liferay.portal.kernel.exception.SystemException {
1090                    return getService().updatePortrait(userId, bytes);
1091            }
1092    
1093            public static com.liferay.portal.model.User updateReminderQuery(
1094                    long userId, java.lang.String question, java.lang.String answer)
1095                    throws com.liferay.portal.kernel.exception.PortalException,
1096                            com.liferay.portal.kernel.exception.SystemException {
1097                    return getService().updateReminderQuery(userId, question, answer);
1098            }
1099    
1100            public static com.liferay.portal.model.User updateScreenName(long userId,
1101                    java.lang.String screenName)
1102                    throws com.liferay.portal.kernel.exception.PortalException,
1103                            com.liferay.portal.kernel.exception.SystemException {
1104                    return getService().updateScreenName(userId, screenName);
1105            }
1106    
1107            public static com.liferay.portal.model.User updateUser(long userId,
1108                    java.lang.String oldPassword, java.lang.String newPassword1,
1109                    java.lang.String newPassword2, boolean passwordReset,
1110                    java.lang.String reminderQueryQuestion,
1111                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
1112                    java.lang.String emailAddress, long facebookId,
1113                    java.lang.String openId, java.lang.String languageId,
1114                    java.lang.String timeZoneId, java.lang.String greeting,
1115                    java.lang.String comments, java.lang.String firstName,
1116                    java.lang.String middleName, java.lang.String lastName, int prefixId,
1117                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1118                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1119                    java.lang.String facebookSn, java.lang.String icqSn,
1120                    java.lang.String jabberSn, java.lang.String msnSn,
1121                    java.lang.String mySpaceSn, java.lang.String skypeSn,
1122                    java.lang.String twitterSn, java.lang.String ymSn,
1123                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1124                    long[] roleIds,
1125                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1126                    long[] userGroupIds,
1127                    com.liferay.portal.service.ServiceContext serviceContext)
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    return getService()
1131                                       .updateUser(userId, oldPassword, newPassword1, newPassword2,
1132                            passwordReset, reminderQueryQuestion, reminderQueryAnswer,
1133                            screenName, emailAddress, facebookId, openId, languageId,
1134                            timeZoneId, greeting, comments, firstName, middleName, lastName,
1135                            prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
1136                            smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, mySpaceSn,
1137                            skypeSn, twitterSn, ymSn, jobTitle, groupIds, organizationIds,
1138                            roleIds, userGroupRoles, userGroupIds, serviceContext);
1139            }
1140    
1141            public static UserLocalService getService() {
1142                    if (_service == null) {
1143                            _service = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName());
1144    
1145                            ReferenceRegistry.registerReference(UserLocalServiceUtil.class,
1146                                    "_service");
1147                            MethodCache.remove(UserLocalService.class);
1148                    }
1149    
1150                    return _service;
1151            }
1152    
1153            public void setService(UserLocalService service) {
1154                    MethodCache.remove(UserLocalService.class);
1155    
1156                    _service = service;
1157    
1158                    ReferenceRegistry.registerReference(UserLocalServiceUtil.class,
1159                            "_service");
1160                    MethodCache.remove(UserLocalService.class);
1161            }
1162    
1163            private static UserLocalService _service;
1164    }