1
14
15 package com.liferay.portal.service;
16
17
18
34 public class RoleServiceWrapper implements RoleService {
35 public RoleServiceWrapper(RoleService roleService) {
36 _roleService = roleService;
37 }
38
39 public com.liferay.portal.model.Role addRole(java.lang.String name,
40 java.util.Map<java.util.Locale, java.lang.String> titleMap,
41 java.lang.String description, int type)
42 throws com.liferay.portal.kernel.exception.PortalException,
43 com.liferay.portal.kernel.exception.SystemException {
44 return _roleService.addRole(name, titleMap, description, type);
45 }
46
47 public void addUserRoles(long userId, long[] roleIds)
48 throws com.liferay.portal.kernel.exception.PortalException,
49 com.liferay.portal.kernel.exception.SystemException {
50 _roleService.addUserRoles(userId, roleIds);
51 }
52
53 public void deleteRole(long roleId)
54 throws com.liferay.portal.kernel.exception.PortalException,
55 com.liferay.portal.kernel.exception.SystemException {
56 _roleService.deleteRole(roleId);
57 }
58
59 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
60 long groupId)
61 throws com.liferay.portal.kernel.exception.SystemException {
62 return _roleService.getGroupRoles(groupId);
63 }
64
65 public com.liferay.portal.model.Role getRole(long roleId)
66 throws com.liferay.portal.kernel.exception.PortalException,
67 com.liferay.portal.kernel.exception.SystemException {
68 return _roleService.getRole(roleId);
69 }
70
71 public com.liferay.portal.model.Role getRole(long companyId,
72 java.lang.String name)
73 throws com.liferay.portal.kernel.exception.PortalException,
74 com.liferay.portal.kernel.exception.SystemException {
75 return _roleService.getRole(companyId, name);
76 }
77
78 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
79 long userId, long groupId)
80 throws com.liferay.portal.kernel.exception.SystemException {
81 return _roleService.getUserGroupGroupRoles(userId, groupId);
82 }
83
84 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
85 long userId, long groupId)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return _roleService.getUserGroupRoles(userId, groupId);
88 }
89
90 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
91 long userId, java.util.List<com.liferay.portal.model.Group> groups)
92 throws com.liferay.portal.kernel.exception.SystemException {
93 return _roleService.getUserRelatedRoles(userId, groups);
94 }
95
96 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
97 long userId) throws com.liferay.portal.kernel.exception.SystemException {
98 return _roleService.getUserRoles(userId);
99 }
100
101 public boolean hasUserRole(long userId, long companyId,
102 java.lang.String name, boolean inherited)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return _roleService.hasUserRole(userId, companyId, name, inherited);
106 }
107
108 public boolean hasUserRoles(long userId, long companyId,
109 java.lang.String[] names, boolean inherited)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return _roleService.hasUserRoles(userId, companyId, names, inherited);
113 }
114
115 public void unsetUserRoles(long userId, long[] roleIds)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 _roleService.unsetUserRoles(userId, roleIds);
119 }
120
121 public com.liferay.portal.model.Role updateRole(long roleId,
122 java.lang.String name,
123 java.util.Map<java.util.Locale, java.lang.String> titleMap,
124 java.lang.String description, java.lang.String subtype)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return _roleService.updateRole(roleId, name, titleMap, description,
128 subtype);
129 }
130
131 public RoleService getWrappedRoleService() {
132 return _roleService;
133 }
134
135 private RoleService _roleService;
136 }