1
14
15 package com.liferay.portal.service;
16
17
18
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.PortalException,
41 com.liferay.portal.SystemException, java.rmi.RemoteException {
42 _userService.addGroupUsers(groupId, userIds);
43 }
44
45 public void addOrganizationUsers(long organizationId, long[] userIds)
46 throws com.liferay.portal.PortalException,
47 com.liferay.portal.SystemException, java.rmi.RemoteException {
48 _userService.addOrganizationUsers(organizationId, userIds);
49 }
50
51 public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException, java.rmi.RemoteException {
54 _userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
55 }
56
57 public void addRoleUsers(long roleId, long[] userIds)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException, java.rmi.RemoteException {
60 _userService.addRoleUsers(roleId, userIds);
61 }
62
63 public void addUserGroupUsers(long userGroupId, long[] userIds)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException, java.rmi.RemoteException {
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.util.Locale locale, java.lang.String firstName,
74 java.lang.String middleName, java.lang.String lastName, int prefixId,
75 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
76 int birthdayYear, java.lang.String jobTitle, long[] organizationIds,
77 boolean sendEmail)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException, java.rmi.RemoteException {
80 return _userService.addUser(companyId, autoPassword, password1,
81 password2, autoScreenName, screenName, emailAddress, locale,
82 firstName, middleName, lastName, prefixId, suffixId, male,
83 birthdayMonth, birthdayDay, birthdayYear, jobTitle,
84 organizationIds, sendEmail);
85 }
86
87 public void deleteRoleUser(long roleId, long userId)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException, java.rmi.RemoteException {
90 _userService.deleteRoleUser(roleId, userId);
91 }
92
93 public void deleteUser(long userId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException, java.rmi.RemoteException {
96 _userService.deleteUser(userId);
97 }
98
99 public long getDefaultUserId(long companyId)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException, java.rmi.RemoteException {
102 return _userService.getDefaultUserId(companyId);
103 }
104
105 public long[] getGroupUserIds(long groupId)
106 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
107 return _userService.getGroupUserIds(groupId);
108 }
109
110 public long[] getOrganizationUserIds(long organizationId)
111 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
112 return _userService.getOrganizationUserIds(organizationId);
113 }
114
115 public long[] getRoleUserIds(long roleId)
116 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
117 return _userService.getRoleUserIds(roleId);
118 }
119
120 public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
121 java.lang.String emailAddress)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException, java.rmi.RemoteException {
124 return _userService.getUserByEmailAddress(companyId, emailAddress);
125 }
126
127 public com.liferay.portal.model.User getUserById(long userId)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException, java.rmi.RemoteException {
130 return _userService.getUserById(userId);
131 }
132
133 public com.liferay.portal.model.User getUserByScreenName(long companyId,
134 java.lang.String screenName)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException, java.rmi.RemoteException {
137 return _userService.getUserByScreenName(companyId, screenName);
138 }
139
140 public long getUserIdByEmailAddress(long companyId,
141 java.lang.String emailAddress)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException, java.rmi.RemoteException {
144 return _userService.getUserIdByEmailAddress(companyId, emailAddress);
145 }
146
147 public long getUserIdByScreenName(long companyId,
148 java.lang.String screenName)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException, java.rmi.RemoteException {
151 return _userService.getUserIdByScreenName(companyId, screenName);
152 }
153
154 public boolean hasGroupUser(long groupId, long userId)
155 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
156 return _userService.hasGroupUser(groupId, userId);
157 }
158
159 public boolean hasRoleUser(long roleId, long userId)
160 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
161 return _userService.hasRoleUser(roleId, userId);
162 }
163
164 public boolean hasRoleUser(long companyId, java.lang.String name,
165 long userId, boolean inherited)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException, java.rmi.RemoteException {
168 return _userService.hasRoleUser(companyId, name, userId, inherited);
169 }
170
171 public void setRoleUsers(long roleId, long[] userIds)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException, java.rmi.RemoteException {
174 _userService.setRoleUsers(roleId, userIds);
175 }
176
177 public void setUserGroupUsers(long userGroupId, long[] userIds)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException, java.rmi.RemoteException {
180 _userService.setUserGroupUsers(userGroupId, userIds);
181 }
182
183 public void unsetGroupUsers(long groupId, long[] userIds)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException, java.rmi.RemoteException {
186 _userService.unsetGroupUsers(groupId, userIds);
187 }
188
189 public void unsetOrganizationUsers(long organizationId, long[] userIds)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException, java.rmi.RemoteException {
192 _userService.unsetOrganizationUsers(organizationId, userIds);
193 }
194
195 public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException, java.rmi.RemoteException {
198 _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
199 }
200
201 public void unsetRoleUsers(long roleId, long[] userIds)
202 throws com.liferay.portal.PortalException,
203 com.liferay.portal.SystemException, java.rmi.RemoteException {
204 _userService.unsetRoleUsers(roleId, userIds);
205 }
206
207 public void unsetUserGroupUsers(long userGroupId, long[] userIds)
208 throws com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException, java.rmi.RemoteException {
210 _userService.unsetUserGroupUsers(userGroupId, userIds);
211 }
212
213 public com.liferay.portal.model.User updateActive(long userId,
214 boolean active)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException, java.rmi.RemoteException {
217 return _userService.updateActive(userId, active);
218 }
219
220 public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
221 boolean agreedToTermsOfUse)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException, java.rmi.RemoteException {
224 return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
225 }
226
227 public com.liferay.portal.model.User updateLockout(long userId,
228 boolean lockout)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException, java.rmi.RemoteException {
231 return _userService.updateLockout(userId, lockout);
232 }
233
234 public void updateOpenId(long userId, java.lang.String openId)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException, java.rmi.RemoteException {
237 _userService.updateOpenId(userId, openId);
238 }
239
240 public void updateOrganizations(long userId, long[] organizationIds)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException, java.rmi.RemoteException {
243 _userService.updateOrganizations(userId, organizationIds);
244 }
245
246 public com.liferay.portal.model.User updatePassword(long userId,
247 java.lang.String password1, java.lang.String password2,
248 boolean passwordReset)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException, java.rmi.RemoteException {
251 return _userService.updatePassword(userId, password1, password2,
252 passwordReset);
253 }
254
255 public void updatePortrait(long userId, byte[] bytes)
256 throws com.liferay.portal.PortalException,
257 com.liferay.portal.SystemException, java.rmi.RemoteException {
258 _userService.updatePortrait(userId, bytes);
259 }
260
261 public void updateScreenName(long userId, java.lang.String screenName)
262 throws com.liferay.portal.PortalException,
263 com.liferay.portal.SystemException, java.rmi.RemoteException {
264 _userService.updateScreenName(userId, screenName);
265 }
266
267 public com.liferay.portal.model.User updateUser(long userId,
268 java.lang.String oldPassword, boolean passwordReset,
269 java.lang.String screenName, java.lang.String emailAddress,
270 java.lang.String languageId, java.lang.String timeZoneId,
271 java.lang.String greeting, java.lang.String comments,
272 java.lang.String firstName, java.lang.String middleName,
273 java.lang.String lastName, int prefixId, int suffixId, boolean male,
274 int birthdayMonth, int birthdayDay, int birthdayYear,
275 java.lang.String smsSn, java.lang.String aimSn,
276 java.lang.String facebookSn, java.lang.String icqSn,
277 java.lang.String jabberSn, java.lang.String msnSn,
278 java.lang.String mySpaceSn, java.lang.String skypeSn,
279 java.lang.String twitterSn, java.lang.String ymSn,
280 java.lang.String jobTitle, long[] organizationIds)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException, java.rmi.RemoteException {
283 return _userService.updateUser(userId, oldPassword, passwordReset,
284 screenName, emailAddress, languageId, timeZoneId, greeting,
285 comments, firstName, middleName, lastName, prefixId, suffixId,
286 male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
287 facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn,
288 ymSn, jobTitle, organizationIds);
289 }
290
291 public com.liferay.portal.model.User updateUser(long userId,
292 java.lang.String oldPassword, java.lang.String newPassword1,
293 java.lang.String newPassword2, boolean passwordReset,
294 java.lang.String screenName, java.lang.String emailAddress,
295 java.lang.String languageId, java.lang.String timeZoneId,
296 java.lang.String greeting, java.lang.String comments,
297 java.lang.String firstName, java.lang.String middleName,
298 java.lang.String lastName, int prefixId, int suffixId, boolean male,
299 int birthdayMonth, int birthdayDay, int birthdayYear,
300 java.lang.String smsSn, java.lang.String aimSn,
301 java.lang.String facebookSn, java.lang.String icqSn,
302 java.lang.String jabberSn, java.lang.String msnSn,
303 java.lang.String mySpaceSn, java.lang.String skypeSn,
304 java.lang.String twitterSn, java.lang.String ymSn,
305 java.lang.String jobTitle, long[] organizationIds)
306 throws com.liferay.portal.PortalException,
307 com.liferay.portal.SystemException, java.rmi.RemoteException {
308 return _userService.updateUser(userId, oldPassword, newPassword1,
309 newPassword2, passwordReset, screenName, emailAddress, languageId,
310 timeZoneId, greeting, comments, firstName, middleName, lastName,
311 prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
312 smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, mySpaceSn,
313 skypeSn, twitterSn, ymSn, jobTitle, organizationIds);
314 }
315
316 public UserService getWrappedUserService() {
317 return _userService;
318 }
319
320 private UserService _userService;
321 }