1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="UserServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link UserService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       UserService
32   * @generated
33   */
34  public class UserServiceWrapper implements UserService {
35      public UserServiceWrapper(UserService userService) {
36          _userService = userService;
37      }
38  
39      public void addGroupUsers(long groupId, long[] userIds)
40          throws com.liferay.portal.kernel.exception.PortalException,
41              com.liferay.portal.kernel.exception.SystemException {
42          _userService.addGroupUsers(groupId, userIds);
43      }
44  
45      public void addOrganizationUsers(long organizationId, long[] userIds)
46          throws com.liferay.portal.kernel.exception.PortalException,
47              com.liferay.portal.kernel.exception.SystemException {
48          _userService.addOrganizationUsers(organizationId, userIds);
49      }
50  
51      public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
55      }
56  
57      public void addRoleUsers(long roleId, long[] userIds)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException {
60          _userService.addRoleUsers(roleId, userIds);
61      }
62  
63      public void addUserGroupUsers(long userGroupId, long[] userIds)
64          throws com.liferay.portal.kernel.exception.PortalException,
65              com.liferay.portal.kernel.exception.SystemException {
66          _userService.addUserGroupUsers(userGroupId, userIds);
67      }
68  
69      public com.liferay.portal.model.User addUser(long companyId,
70          boolean autoPassword, java.lang.String password1,
71          java.lang.String password2, boolean autoScreenName,
72          java.lang.String screenName, java.lang.String emailAddress,
73          java.lang.String openId, java.util.Locale locale,
74          java.lang.String firstName, java.lang.String middleName,
75          java.lang.String lastName, int prefixId, int suffixId, boolean male,
76          int birthdayMonth, int birthdayDay, int birthdayYear,
77          java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
78          long[] roleIds, long[] userGroupIds, boolean sendEmail,
79          com.liferay.portal.service.ServiceContext serviceContext)
80          throws com.liferay.portal.kernel.exception.PortalException,
81              com.liferay.portal.kernel.exception.SystemException {
82          return _userService.addUser(companyId, autoPassword, password1,
83              password2, autoScreenName, screenName, emailAddress, openId,
84              locale, firstName, middleName, lastName, prefixId, suffixId, male,
85              birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds,
86              organizationIds, roleIds, userGroupIds, sendEmail, serviceContext);
87      }
88  
89      public com.liferay.portal.model.User addUser(long companyId,
90          boolean autoPassword, java.lang.String password1,
91          java.lang.String password2, boolean autoScreenName,
92          java.lang.String screenName, java.lang.String emailAddress,
93          java.lang.String openId, java.util.Locale locale,
94          java.lang.String firstName, java.lang.String middleName,
95          java.lang.String lastName, int prefixId, int suffixId, boolean male,
96          int birthdayMonth, int birthdayDay, int birthdayYear,
97          java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
98          long[] roleIds, long[] userGroupIds, boolean sendEmail,
99          java.util.List<com.liferay.portal.model.Address> addresses,
100         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
101         java.util.List<com.liferay.portal.model.Phone> phones,
102         java.util.List<com.liferay.portal.model.Website> websites,
103         java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
104         com.liferay.portal.service.ServiceContext serviceContext)
105         throws com.liferay.portal.kernel.exception.PortalException,
106             com.liferay.portal.kernel.exception.SystemException {
107         return _userService.addUser(companyId, autoPassword, password1,
108             password2, autoScreenName, screenName, emailAddress, openId,
109             locale, firstName, middleName, lastName, prefixId, suffixId, male,
110             birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds,
111             organizationIds, roleIds, userGroupIds, sendEmail, addresses,
112             emailAddresses, phones, websites, announcementsDelivers,
113             serviceContext);
114     }
115 
116     public void deletePortrait(long userId)
117         throws com.liferay.portal.kernel.exception.PortalException,
118             com.liferay.portal.kernel.exception.SystemException {
119         _userService.deletePortrait(userId);
120     }
121 
122     public void deleteRoleUser(long roleId, long userId)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         _userService.deleteRoleUser(roleId, userId);
126     }
127 
128     public void deleteUser(long userId)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException {
131         _userService.deleteUser(userId);
132     }
133 
134     public long getDefaultUserId(long companyId)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _userService.getDefaultUserId(companyId);
138     }
139 
140     public long[] getGroupUserIds(long groupId)
141         throws com.liferay.portal.kernel.exception.SystemException {
142         return _userService.getGroupUserIds(groupId);
143     }
144 
145     public long[] getOrganizationUserIds(long organizationId)
146         throws com.liferay.portal.kernel.exception.SystemException {
147         return _userService.getOrganizationUserIds(organizationId);
148     }
149 
150     public long[] getRoleUserIds(long roleId)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return _userService.getRoleUserIds(roleId);
153     }
154 
155     public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
156         java.lang.String emailAddress)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         return _userService.getUserByEmailAddress(companyId, emailAddress);
160     }
161 
162     public com.liferay.portal.model.User getUserById(long userId)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         return _userService.getUserById(userId);
166     }
167 
168     public com.liferay.portal.model.User getUserByScreenName(long companyId,
169         java.lang.String screenName)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         return _userService.getUserByScreenName(companyId, screenName);
173     }
174 
175     public long getUserIdByEmailAddress(long companyId,
176         java.lang.String emailAddress)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         return _userService.getUserIdByEmailAddress(companyId, emailAddress);
180     }
181 
182     public long getUserIdByScreenName(long companyId,
183         java.lang.String screenName)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         return _userService.getUserIdByScreenName(companyId, screenName);
187     }
188 
189     public boolean hasGroupUser(long groupId, long userId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return _userService.hasGroupUser(groupId, userId);
192     }
193 
194     public boolean hasRoleUser(long roleId, long userId)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return _userService.hasRoleUser(roleId, userId);
197     }
198 
199     public boolean hasRoleUser(long companyId, java.lang.String name,
200         long userId, boolean inherited)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException {
203         return _userService.hasRoleUser(companyId, name, userId, inherited);
204     }
205 
206     public void setRoleUsers(long roleId, long[] userIds)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         _userService.setRoleUsers(roleId, userIds);
210     }
211 
212     public void setUserGroupUsers(long userGroupId, long[] userIds)
213         throws com.liferay.portal.kernel.exception.PortalException,
214             com.liferay.portal.kernel.exception.SystemException {
215         _userService.setUserGroupUsers(userGroupId, userIds);
216     }
217 
218     public void unsetGroupUsers(long groupId, long[] userIds)
219         throws com.liferay.portal.kernel.exception.PortalException,
220             com.liferay.portal.kernel.exception.SystemException {
221         _userService.unsetGroupUsers(groupId, userIds);
222     }
223 
224     public void unsetOrganizationUsers(long organizationId, long[] userIds)
225         throws com.liferay.portal.kernel.exception.PortalException,
226             com.liferay.portal.kernel.exception.SystemException {
227         _userService.unsetOrganizationUsers(organizationId, userIds);
228     }
229 
230     public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
231         throws com.liferay.portal.kernel.exception.PortalException,
232             com.liferay.portal.kernel.exception.SystemException {
233         _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
234     }
235 
236     public void unsetRoleUsers(long roleId, long[] userIds)
237         throws com.liferay.portal.kernel.exception.PortalException,
238             com.liferay.portal.kernel.exception.SystemException {
239         _userService.unsetRoleUsers(roleId, userIds);
240     }
241 
242     public void unsetUserGroupUsers(long userGroupId, long[] userIds)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         _userService.unsetUserGroupUsers(userGroupId, userIds);
246     }
247 
248     public com.liferay.portal.model.User updateActive(long userId,
249         boolean active)
250         throws com.liferay.portal.kernel.exception.PortalException,
251             com.liferay.portal.kernel.exception.SystemException {
252         return _userService.updateActive(userId, active);
253     }
254 
255     public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
256         boolean agreedToTermsOfUse)
257         throws com.liferay.portal.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.SystemException {
259         return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
260     }
261 
262     public void updateEmailAddress(long userId, java.lang.String password,
263         java.lang.String emailAddress1, java.lang.String emailAddress2)
264         throws com.liferay.portal.kernel.exception.PortalException,
265             com.liferay.portal.kernel.exception.SystemException {
266         _userService.updateEmailAddress(userId, password, emailAddress1,
267             emailAddress2);
268     }
269 
270     public com.liferay.portal.model.User updateLockout(long userId,
271         boolean lockout)
272         throws com.liferay.portal.kernel.exception.PortalException,
273             com.liferay.portal.kernel.exception.SystemException {
274         return _userService.updateLockout(userId, lockout);
275     }
276 
277     public void updateOpenId(long userId, java.lang.String openId)
278         throws com.liferay.portal.kernel.exception.PortalException,
279             com.liferay.portal.kernel.exception.SystemException {
280         _userService.updateOpenId(userId, openId);
281     }
282 
283     public void updateOrganizations(long userId, long[] organizationIds)
284         throws com.liferay.portal.kernel.exception.PortalException,
285             com.liferay.portal.kernel.exception.SystemException {
286         _userService.updateOrganizations(userId, organizationIds);
287     }
288 
289     public com.liferay.portal.model.User updatePassword(long userId,
290         java.lang.String password1, java.lang.String password2,
291         boolean passwordReset)
292         throws com.liferay.portal.kernel.exception.PortalException,
293             com.liferay.portal.kernel.exception.SystemException {
294         return _userService.updatePassword(userId, password1, password2,
295             passwordReset);
296     }
297 
298     public void updatePortrait(long userId, byte[] bytes)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException {
301         _userService.updatePortrait(userId, bytes);
302     }
303 
304     public void updateReminderQuery(long userId, java.lang.String question,
305         java.lang.String answer)
306         throws com.liferay.portal.kernel.exception.PortalException,
307             com.liferay.portal.kernel.exception.SystemException {
308         _userService.updateReminderQuery(userId, question, answer);
309     }
310 
311     public void updateScreenName(long userId, java.lang.String screenName)
312         throws com.liferay.portal.kernel.exception.PortalException,
313             com.liferay.portal.kernel.exception.SystemException {
314         _userService.updateScreenName(userId, screenName);
315     }
316 
317     public com.liferay.portal.model.User updateUser(long userId,
318         java.lang.String oldPassword, java.lang.String newPassword1,
319         java.lang.String newPassword2, boolean passwordReset,
320         java.lang.String reminderQueryQuestion,
321         java.lang.String reminderQueryAnswer, java.lang.String screenName,
322         java.lang.String emailAddress, java.lang.String openId,
323         java.lang.String languageId, java.lang.String timeZoneId,
324         java.lang.String greeting, java.lang.String comments,
325         java.lang.String firstName, java.lang.String middleName,
326         java.lang.String lastName, int prefixId, int suffixId, boolean male,
327         int birthdayMonth, int birthdayDay, int birthdayYear,
328         java.lang.String smsSn, java.lang.String aimSn,
329         java.lang.String facebookSn, java.lang.String icqSn,
330         java.lang.String jabberSn, java.lang.String msnSn,
331         java.lang.String mySpaceSn, java.lang.String skypeSn,
332         java.lang.String twitterSn, java.lang.String ymSn,
333         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
334         long[] roleIds,
335         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
336         long[] userGroupIds,
337         com.liferay.portal.service.ServiceContext serviceContext)
338         throws com.liferay.portal.kernel.exception.PortalException,
339             com.liferay.portal.kernel.exception.SystemException {
340         return _userService.updateUser(userId, oldPassword, newPassword1,
341             newPassword2, passwordReset, reminderQueryQuestion,
342             reminderQueryAnswer, screenName, emailAddress, openId, languageId,
343             timeZoneId, greeting, comments, firstName, middleName, lastName,
344             prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
345             smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, mySpaceSn,
346             skypeSn, twitterSn, ymSn, jobTitle, groupIds, organizationIds,
347             roleIds, userGroupRoles, userGroupIds, serviceContext);
348     }
349 
350     public com.liferay.portal.model.User updateUser(long userId,
351         java.lang.String oldPassword, java.lang.String newPassword1,
352         java.lang.String newPassword2, boolean passwordReset,
353         java.lang.String reminderQueryQuestion,
354         java.lang.String reminderQueryAnswer, java.lang.String screenName,
355         java.lang.String emailAddress, java.lang.String openId,
356         java.lang.String languageId, java.lang.String timeZoneId,
357         java.lang.String greeting, java.lang.String comments,
358         java.lang.String firstName, java.lang.String middleName,
359         java.lang.String lastName, int prefixId, int suffixId, boolean male,
360         int birthdayMonth, int birthdayDay, int birthdayYear,
361         java.lang.String smsSn, java.lang.String aimSn,
362         java.lang.String facebookSn, java.lang.String icqSn,
363         java.lang.String jabberSn, java.lang.String msnSn,
364         java.lang.String mySpaceSn, java.lang.String skypeSn,
365         java.lang.String twitterSn, java.lang.String ymSn,
366         java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
367         long[] roleIds,
368         java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
369         long[] userGroupIds,
370         java.util.List<com.liferay.portal.model.Address> addresses,
371         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
372         java.util.List<com.liferay.portal.model.Phone> phones,
373         java.util.List<com.liferay.portal.model.Website> websites,
374         java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
375         com.liferay.portal.service.ServiceContext serviceContext)
376         throws com.liferay.portal.kernel.exception.PortalException,
377             com.liferay.portal.kernel.exception.SystemException {
378         return _userService.updateUser(userId, oldPassword, newPassword1,
379             newPassword2, passwordReset, reminderQueryQuestion,
380             reminderQueryAnswer, screenName, emailAddress, openId, languageId,
381             timeZoneId, greeting, comments, firstName, middleName, lastName,
382             prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
383             smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, mySpaceSn,
384             skypeSn, twitterSn, ymSn, jobTitle, groupIds, organizationIds,
385             roleIds, userGroupRoles, userGroupIds, addresses, emailAddresses,
386             phones, websites, announcementsDelivers, serviceContext);
387     }
388 
389     public UserService getWrappedUserService() {
390         return _userService;
391     }
392 
393     private UserService _userService;
394 }