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    /**
018     * <p>
019     * This class is a wrapper for {@link UserService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserService
024     * @generated
025     */
026    public class UserServiceWrapper implements UserService {
027            public UserServiceWrapper(UserService userService) {
028                    _userService = userService;
029            }
030    
031            public void addGroupUsers(long groupId, long[] userIds)
032                    throws com.liferay.portal.kernel.exception.PortalException,
033                            com.liferay.portal.kernel.exception.SystemException {
034                    _userService.addGroupUsers(groupId, userIds);
035            }
036    
037            public void addOrganizationUsers(long organizationId, long[] userIds)
038                    throws com.liferay.portal.kernel.exception.PortalException,
039                            com.liferay.portal.kernel.exception.SystemException {
040                    _userService.addOrganizationUsers(organizationId, userIds);
041            }
042    
043            public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    _userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
047            }
048    
049            public void addRoleUsers(long roleId, long[] userIds)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    _userService.addRoleUsers(roleId, userIds);
053            }
054    
055            public void addTeamUsers(long teamId, long[] userIds)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    _userService.addTeamUsers(teamId, userIds);
059            }
060    
061            public void addUserGroupUsers(long userGroupId, long[] userIds)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _userService.addUserGroupUsers(userGroupId, userIds);
065            }
066    
067            public com.liferay.portal.model.User addUser(long companyId,
068                    boolean autoPassword, java.lang.String password1,
069                    java.lang.String password2, boolean autoScreenName,
070                    java.lang.String screenName, java.lang.String emailAddress,
071                    long facebookId, java.lang.String openId, java.util.Locale locale,
072                    java.lang.String firstName, java.lang.String middleName,
073                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
074                    int birthdayMonth, int birthdayDay, int birthdayYear,
075                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
076                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return _userService.addUser(companyId, autoPassword, password1,
081                            password2, autoScreenName, screenName, emailAddress, facebookId,
082                            openId, locale, firstName, middleName, lastName, prefixId,
083                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
084                            groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
085                            serviceContext);
086            }
087    
088            public com.liferay.portal.model.User addUser(long companyId,
089                    boolean autoPassword, java.lang.String password1,
090                    java.lang.String password2, boolean autoScreenName,
091                    java.lang.String screenName, java.lang.String emailAddress,
092                    long facebookId, java.lang.String openId, java.util.Locale locale,
093                    java.lang.String firstName, java.lang.String middleName,
094                    java.lang.String lastName, int prefixId, int suffixId, boolean male,
095                    int birthdayMonth, int birthdayDay, int birthdayYear,
096                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
097                    long[] roleIds, long[] userGroupIds, boolean sendEmail,
098                    java.util.List<com.liferay.portal.model.Address> addresses,
099                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
100                    java.util.List<com.liferay.portal.model.Phone> phones,
101                    java.util.List<com.liferay.portal.model.Website> websites,
102                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
103                    com.liferay.portal.service.ServiceContext serviceContext)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return _userService.addUser(companyId, autoPassword, password1,
107                            password2, autoScreenName, screenName, emailAddress, facebookId,
108                            openId, locale, firstName, middleName, lastName, prefixId,
109                            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
110                            groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
111                            addresses, emailAddresses, phones, websites, announcementsDelivers,
112                            serviceContext);
113            }
114    
115            public void deletePortrait(long userId)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    _userService.deletePortrait(userId);
119            }
120    
121            public void deleteRoleUser(long roleId, long userId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    _userService.deleteRoleUser(roleId, userId);
125            }
126    
127            public void deleteUser(long userId)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    _userService.deleteUser(userId);
131            }
132    
133            public long getDefaultUserId(long companyId)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    return _userService.getDefaultUserId(companyId);
137            }
138    
139            public long[] getGroupUserIds(long groupId)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return _userService.getGroupUserIds(groupId);
142            }
143    
144            public long[] getOrganizationUserIds(long organizationId)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _userService.getOrganizationUserIds(organizationId);
147            }
148    
149            public long[] getRoleUserIds(long roleId)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _userService.getRoleUserIds(roleId);
152            }
153    
154            public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
155                    java.lang.String emailAddress)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return _userService.getUserByEmailAddress(companyId, emailAddress);
159            }
160    
161            public com.liferay.portal.model.User getUserById(long userId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _userService.getUserById(userId);
165            }
166    
167            public com.liferay.portal.model.User getUserByScreenName(long companyId,
168                    java.lang.String screenName)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _userService.getUserByScreenName(companyId, screenName);
172            }
173    
174            public long getUserIdByEmailAddress(long companyId,
175                    java.lang.String emailAddress)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return _userService.getUserIdByEmailAddress(companyId, emailAddress);
179            }
180    
181            public long getUserIdByScreenName(long companyId,
182                    java.lang.String screenName)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return _userService.getUserIdByScreenName(companyId, screenName);
186            }
187    
188            public boolean hasGroupUser(long groupId, long userId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _userService.hasGroupUser(groupId, userId);
191            }
192    
193            public boolean hasRoleUser(long roleId, long userId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _userService.hasRoleUser(roleId, userId);
196            }
197    
198            public boolean hasRoleUser(long companyId, java.lang.String name,
199                    long userId, boolean inherited)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return _userService.hasRoleUser(companyId, name, userId, inherited);
203            }
204    
205            public void setRoleUsers(long roleId, long[] userIds)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    _userService.setRoleUsers(roleId, userIds);
209            }
210    
211            public void setUserGroupUsers(long userGroupId, long[] userIds)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    _userService.setUserGroupUsers(userGroupId, userIds);
215            }
216    
217            public void unsetGroupUsers(long groupId, long[] userIds)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    _userService.unsetGroupUsers(groupId, userIds);
221            }
222    
223            public void unsetOrganizationUsers(long organizationId, long[] userIds)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    _userService.unsetOrganizationUsers(organizationId, userIds);
227            }
228    
229            public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
233            }
234    
235            public void unsetRoleUsers(long roleId, long[] userIds)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    _userService.unsetRoleUsers(roleId, userIds);
239            }
240    
241            public void unsetTeamUsers(long teamId, long[] userIds)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    _userService.unsetTeamUsers(teamId, userIds);
245            }
246    
247            public void unsetUserGroupUsers(long userGroupId, long[] userIds)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    _userService.unsetUserGroupUsers(userGroupId, userIds);
251            }
252    
253            public com.liferay.portal.model.User updateActive(long userId,
254                    boolean active)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _userService.updateActive(userId, active);
258            }
259    
260            public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
261                    boolean agreedToTermsOfUse)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
265            }
266    
267            public com.liferay.portal.model.User updateEmailAddress(long userId,
268                    java.lang.String password, java.lang.String emailAddress1,
269                    java.lang.String emailAddress2)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _userService.updateEmailAddress(userId, password, emailAddress1,
273                            emailAddress2);
274            }
275    
276            /**
277            * @deprecated {@link #updateLockoutById(long, boolean)}
278            */
279            public com.liferay.portal.model.User updateLockout(long userId,
280                    boolean lockout)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _userService.updateLockout(userId, lockout);
284            }
285    
286            public com.liferay.portal.model.User updateLockoutById(long userId,
287                    boolean lockout)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return _userService.updateLockoutById(userId, lockout);
291            }
292    
293            public com.liferay.portal.model.User updateOpenId(long userId,
294                    java.lang.String openId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _userService.updateOpenId(userId, openId);
298            }
299    
300            public void updateOrganizations(long userId, long[] organizationIds)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _userService.updateOrganizations(userId, organizationIds);
304            }
305    
306            public com.liferay.portal.model.User updatePassword(long userId,
307                    java.lang.String password1, java.lang.String password2,
308                    boolean passwordReset)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _userService.updatePassword(userId, password1, password2,
312                            passwordReset);
313            }
314    
315            public com.liferay.portal.model.User updatePortrait(long userId,
316                    byte[] bytes)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _userService.updatePortrait(userId, bytes);
320            }
321    
322            public com.liferay.portal.model.User updateReminderQuery(long userId,
323                    java.lang.String question, java.lang.String answer)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _userService.updateReminderQuery(userId, question, answer);
327            }
328    
329            public com.liferay.portal.model.User updateScreenName(long userId,
330                    java.lang.String screenName)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _userService.updateScreenName(userId, screenName);
334            }
335    
336            public com.liferay.portal.model.User updateUser(long userId,
337                    java.lang.String oldPassword, java.lang.String newPassword1,
338                    java.lang.String newPassword2, boolean passwordReset,
339                    java.lang.String reminderQueryQuestion,
340                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
341                    java.lang.String emailAddress, long facebookId,
342                    java.lang.String openId, java.lang.String languageId,
343                    java.lang.String timeZoneId, java.lang.String greeting,
344                    java.lang.String comments, java.lang.String firstName,
345                    java.lang.String middleName, java.lang.String lastName, int prefixId,
346                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
347                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
348                    java.lang.String facebookSn, java.lang.String icqSn,
349                    java.lang.String jabberSn, java.lang.String msnSn,
350                    java.lang.String mySpaceSn, java.lang.String skypeSn,
351                    java.lang.String twitterSn, java.lang.String ymSn,
352                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
353                    long[] roleIds,
354                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
355                    long[] userGroupIds,
356                    com.liferay.portal.service.ServiceContext serviceContext)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    return _userService.updateUser(userId, oldPassword, newPassword1,
360                            newPassword2, passwordReset, reminderQueryQuestion,
361                            reminderQueryAnswer, screenName, emailAddress, facebookId, openId,
362                            languageId, timeZoneId, greeting, comments, firstName, middleName,
363                            lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
364                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
365                            mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
366                            organizationIds, roleIds, userGroupRoles, userGroupIds,
367                            serviceContext);
368            }
369    
370            public com.liferay.portal.model.User updateUser(long userId,
371                    java.lang.String oldPassword, java.lang.String newPassword1,
372                    java.lang.String newPassword2, boolean passwordReset,
373                    java.lang.String reminderQueryQuestion,
374                    java.lang.String reminderQueryAnswer, java.lang.String screenName,
375                    java.lang.String emailAddress, long facebookId,
376                    java.lang.String openId, java.lang.String languageId,
377                    java.lang.String timeZoneId, java.lang.String greeting,
378                    java.lang.String comments, java.lang.String firstName,
379                    java.lang.String middleName, java.lang.String lastName, int prefixId,
380                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
381                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
382                    java.lang.String facebookSn, java.lang.String icqSn,
383                    java.lang.String jabberSn, java.lang.String msnSn,
384                    java.lang.String mySpaceSn, java.lang.String skypeSn,
385                    java.lang.String twitterSn, java.lang.String ymSn,
386                    java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
387                    long[] roleIds,
388                    java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
389                    long[] userGroupIds,
390                    java.util.List<com.liferay.portal.model.Address> addresses,
391                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
392                    java.util.List<com.liferay.portal.model.Phone> phones,
393                    java.util.List<com.liferay.portal.model.Website> websites,
394                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
395                    com.liferay.portal.service.ServiceContext serviceContext)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _userService.updateUser(userId, oldPassword, newPassword1,
399                            newPassword2, passwordReset, reminderQueryQuestion,
400                            reminderQueryAnswer, screenName, emailAddress, facebookId, openId,
401                            languageId, timeZoneId, greeting, comments, firstName, middleName,
402                            lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
403                            birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
404                            mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
405                            organizationIds, roleIds, userGroupRoles, userGroupIds, addresses,
406                            emailAddresses, phones, websites, announcementsDelivers,
407                            serviceContext);
408            }
409    
410            public UserService getWrappedUserService() {
411                    return _userService;
412            }
413    
414            public void setWrappedUserService(UserService userService) {
415                    _userService = userService;
416            }
417    
418            private UserService _userService;
419    }