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