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