001
014
015 package com.liferay.portal.service;
016
017
026 public class RoleLocalServiceWrapper implements RoleLocalService {
027 public RoleLocalServiceWrapper(RoleLocalService roleLocalService) {
028 _roleLocalService = roleLocalService;
029 }
030
031
038 public com.liferay.portal.model.Role addRole(
039 com.liferay.portal.model.Role role)
040 throws com.liferay.portal.kernel.exception.SystemException {
041 return _roleLocalService.addRole(role);
042 }
043
044
050 public com.liferay.portal.model.Role createRole(long roleId) {
051 return _roleLocalService.createRole(roleId);
052 }
053
054
061 public void deleteRole(long roleId)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 _roleLocalService.deleteRole(roleId);
065 }
066
067
073 public void deleteRole(com.liferay.portal.model.Role role)
074 throws com.liferay.portal.kernel.exception.SystemException {
075 _roleLocalService.deleteRole(role);
076 }
077
078
085 @SuppressWarnings("rawtypes")
086 public java.util.List dynamicQuery(
087 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return _roleLocalService.dynamicQuery(dynamicQuery);
090 }
091
092
105 @SuppressWarnings("rawtypes")
106 public java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108 int end) throws com.liferay.portal.kernel.exception.SystemException {
109 return _roleLocalService.dynamicQuery(dynamicQuery, start, end);
110 }
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return _roleLocalService.dynamicQuery(dynamicQuery, start, end,
133 orderByComparator);
134 }
135
136
143 public long dynamicQueryCount(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return _roleLocalService.dynamicQueryCount(dynamicQuery);
147 }
148
149
157 public com.liferay.portal.model.Role getRole(long roleId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return _roleLocalService.getRole(roleId);
161 }
162
163
175 public java.util.List<com.liferay.portal.model.Role> getRoles(int start,
176 int end) throws com.liferay.portal.kernel.exception.SystemException {
177 return _roleLocalService.getRoles(start, end);
178 }
179
180
186 public int getRolesCount()
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return _roleLocalService.getRolesCount();
189 }
190
191
198 public com.liferay.portal.model.Role updateRole(
199 com.liferay.portal.model.Role role)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return _roleLocalService.updateRole(role);
202 }
203
204
212 public com.liferay.portal.model.Role updateRole(
213 com.liferay.portal.model.Role role, boolean merge)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return _roleLocalService.updateRole(role, merge);
216 }
217
218 public com.liferay.portal.model.Role addRole(long userId, long companyId,
219 java.lang.String name,
220 java.util.Map<java.util.Locale, java.lang.String> titleMap,
221 java.lang.String description, int type)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException {
224 return _roleLocalService.addRole(userId, companyId, name, titleMap,
225 description, type);
226 }
227
228 public com.liferay.portal.model.Role addRole(long userId, long companyId,
229 java.lang.String name,
230 java.util.Map<java.util.Locale, java.lang.String> titleMap,
231 java.lang.String description, int type, java.lang.String className,
232 long classPK)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 return _roleLocalService.addRole(userId, companyId, name, titleMap,
236 description, type, className, classPK);
237 }
238
239 public void addUserRoles(long userId, long[] roleIds)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException {
242 _roleLocalService.addUserRoles(userId, roleIds);
243 }
244
245 public void checkSystemRoles(long companyId)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 _roleLocalService.checkSystemRoles(companyId);
249 }
250
251 public com.liferay.portal.model.Role getDefaultGroupRole(long groupId)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 return _roleLocalService.getDefaultGroupRole(groupId);
255 }
256
257 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
258 long groupId)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return _roleLocalService.getGroupRoles(groupId);
261 }
262
263 public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getResourceRoles(
264 long companyId, java.lang.String name, int scope,
265 java.lang.String primKey)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return _roleLocalService.getResourceRoles(companyId, name, scope,
268 primKey);
269 }
270
271 public com.liferay.portal.model.Role getRole(long companyId,
272 java.lang.String name)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return _roleLocalService.getRole(companyId, name);
276 }
277
278 public java.util.List<com.liferay.portal.model.Role> getRoles(
279 long companyId)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return _roleLocalService.getRoles(companyId);
282 }
283
284 public java.util.List<com.liferay.portal.model.Role> getRoles(
285 long[] roleIds)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 return _roleLocalService.getRoles(roleIds);
289 }
290
291 public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
292 java.lang.String subtype)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return _roleLocalService.getRoles(type, subtype);
295 }
296
297 public java.util.List<com.liferay.portal.model.Role> getSubtypeRoles(
298 java.lang.String subtype)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return _roleLocalService.getSubtypeRoles(subtype);
301 }
302
303 public int getSubtypeRolesCount(java.lang.String subtype)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return _roleLocalService.getSubtypeRolesCount(subtype);
306 }
307
308 public com.liferay.portal.model.Role getTeamRole(long companyId, long teamId)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return _roleLocalService.getTeamRole(companyId, teamId);
312 }
313
314 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
315 long userId, long groupId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return _roleLocalService.getUserGroupGroupRoles(userId, groupId);
318 }
319
320 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
321 long userId, long groupId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return _roleLocalService.getUserGroupRoles(userId, groupId);
324 }
325
326 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
327 long userId, long groupId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return _roleLocalService.getUserRelatedRoles(userId, groupId);
330 }
331
332 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
333 long userId, long[] groupIds)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return _roleLocalService.getUserRelatedRoles(userId, groupIds);
336 }
337
338 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
339 long userId, java.util.List<com.liferay.portal.model.Group> groups)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return _roleLocalService.getUserRelatedRoles(userId, groups);
342 }
343
344 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
345 long userId) throws com.liferay.portal.kernel.exception.SystemException {
346 return _roleLocalService.getUserRoles(userId);
347 }
348
349 public boolean hasUserRole(long userId, long roleId)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return _roleLocalService.hasUserRole(userId, roleId);
352 }
353
354
359 public boolean hasUserRole(long userId, long companyId,
360 java.lang.String name, boolean inherited)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return _roleLocalService.hasUserRole(userId, companyId, name, inherited);
364 }
365
366
372 public boolean hasUserRoles(long userId, long companyId,
373 java.lang.String[] names, boolean inherited)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException {
376 return _roleLocalService.hasUserRoles(userId, companyId, names,
377 inherited);
378 }
379
380 public java.util.List<com.liferay.portal.model.Role> search(
381 long companyId, java.lang.String name, java.lang.String description,
382 java.lang.Integer[] types, int start, int end,
383 com.liferay.portal.kernel.util.OrderByComparator obc)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return _roleLocalService.search(companyId, name, description, types,
386 start, end, obc);
387 }
388
389 public java.util.List<com.liferay.portal.model.Role> search(
390 long companyId, java.lang.String name, java.lang.String description,
391 java.lang.Integer[] types,
392 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
393 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return _roleLocalService.search(companyId, name, description, types,
396 params, start, end, obc);
397 }
398
399 public int searchCount(long companyId, java.lang.String name,
400 java.lang.String description, java.lang.Integer[] types)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return _roleLocalService.searchCount(companyId, name, description, types);
403 }
404
405 public int searchCount(long companyId, java.lang.String name,
406 java.lang.String description, java.lang.Integer[] types,
407 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return _roleLocalService.searchCount(companyId, name, description,
410 types, params);
411 }
412
413 public void setUserRoles(long userId, long[] roleIds)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 _roleLocalService.setUserRoles(userId, roleIds);
417 }
418
419 public void unsetUserRoles(long userId, long[] roleIds)
420 throws com.liferay.portal.kernel.exception.PortalException,
421 com.liferay.portal.kernel.exception.SystemException {
422 _roleLocalService.unsetUserRoles(userId, roleIds);
423 }
424
425 public com.liferay.portal.model.Role updateRole(long roleId,
426 java.lang.String name,
427 java.util.Map<java.util.Locale, java.lang.String> titleMap,
428 java.lang.String description, java.lang.String subtype)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException {
431 return _roleLocalService.updateRole(roleId, name, titleMap,
432 description, subtype);
433 }
434
435 public RoleLocalService getWrappedRoleLocalService() {
436 return _roleLocalService;
437 }
438
439 private RoleLocalService _roleLocalService;
440 }