001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019
026 @ProviderType
027 public class RoleServiceWrapper implements RoleService,
028 ServiceWrapper<RoleService> {
029 public RoleServiceWrapper(RoleService roleService) {
030 _roleService = roleService;
031 }
032
033
051 @Override
052 public com.liferay.portal.model.Role addRole(java.lang.String className,
053 long classPK, java.lang.String name,
054 java.util.Map<java.util.Locale, java.lang.String> titleMap,
055 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
056 int type, java.lang.String subtype,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException {
059 return _roleService.addRole(className, classPK, name, titleMap,
060 descriptionMap, type, subtype, serviceContext);
061 }
062
063
070 @Override
071 public void addUserRoles(long userId, long[] roleIds)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 _roleService.addUserRoles(userId, roleIds);
074 }
075
076
081 @Override
082 public void deleteRole(long roleId)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 _roleService.deleteRole(roleId);
085 }
086
087 @Override
088 public com.liferay.portal.model.Role fetchRole(long roleId)
089 throws com.liferay.portal.kernel.exception.PortalException {
090 return _roleService.fetchRole(roleId);
091 }
092
093
099 @Override
100 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
101 long groupId)
102 throws com.liferay.portal.kernel.exception.PortalException {
103 return _roleService.getGroupRoles(groupId);
104 }
105
106
111 @Override
112 public java.lang.String getOSGiServiceIdentifier() {
113 return _roleService.getOSGiServiceIdentifier();
114 }
115
116
128 @Override
129 public com.liferay.portal.model.Role getRole(long companyId,
130 java.lang.String name)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 return _roleService.getRole(companyId, name);
133 }
134
135
141 @Override
142 public com.liferay.portal.model.Role getRole(long roleId)
143 throws com.liferay.portal.kernel.exception.PortalException {
144 return _roleService.getRole(roleId);
145 }
146
147 @Override
148 public java.util.List<com.liferay.portal.model.Role> getRoles(
149 long companyId, int[] types)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return _roleService.getRoles(companyId, types);
152 }
153
154 @Override
155 public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
156 java.lang.String subtype)
157 throws com.liferay.portal.kernel.exception.PortalException {
158 return _roleService.getRoles(type, subtype);
159 }
160
161
168 @Override
169 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
170 long userId, long groupId)
171 throws com.liferay.portal.kernel.exception.PortalException {
172 return _roleService.getUserGroupGroupRoles(userId, groupId);
173 }
174
175
182 @Override
183 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
184 long userId, long groupId)
185 throws com.liferay.portal.kernel.exception.PortalException {
186 return _roleService.getUserGroupRoles(userId, groupId);
187 }
188
189
196 @Override
197 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
198 long userId, java.util.List<com.liferay.portal.model.Group> groups)
199 throws com.liferay.portal.kernel.exception.PortalException {
200 return _roleService.getUserRelatedRoles(userId, groups);
201 }
202
203
209 @Override
210 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
211 long userId) throws com.liferay.portal.kernel.exception.PortalException {
212 return _roleService.getUserRoles(userId);
213 }
214
215
227 @Override
228 public boolean hasUserRole(long userId, long companyId,
229 java.lang.String name, boolean inherited)
230 throws com.liferay.portal.kernel.exception.PortalException {
231 return _roleService.hasUserRole(userId, companyId, name, inherited);
232 }
233
234
246 @Override
247 public boolean hasUserRoles(long userId, long companyId,
248 java.lang.String[] names, boolean inherited)
249 throws com.liferay.portal.kernel.exception.PortalException {
250 return _roleService.hasUserRoles(userId, companyId, names, inherited);
251 }
252
253 @Override
254 public java.util.List<com.liferay.portal.model.Role> search(
255 long companyId, java.lang.String keywords, java.lang.Integer[] types,
256 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
257 int start, int end,
258 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
259 return _roleService.search(companyId, keywords, types, params, start,
260 end, obc);
261 }
262
263 @Override
264 public int searchCount(long companyId, java.lang.String keywords,
265 java.lang.Integer[] types,
266 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
267 return _roleService.searchCount(companyId, keywords, types, params);
268 }
269
270
277 @Override
278 public void unsetUserRoles(long userId, long[] roleIds)
279 throws com.liferay.portal.kernel.exception.PortalException {
280 _roleService.unsetUserRoles(userId, roleIds);
281 }
282
283
298 @Override
299 public com.liferay.portal.model.Role updateRole(long roleId,
300 java.lang.String name,
301 java.util.Map<java.util.Locale, java.lang.String> titleMap,
302 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
303 java.lang.String subtype,
304 com.liferay.portal.service.ServiceContext serviceContext)
305 throws com.liferay.portal.kernel.exception.PortalException {
306 return _roleService.updateRole(roleId, name, titleMap, descriptionMap,
307 subtype, serviceContext);
308 }
309
310 @Override
311 public RoleService getWrappedService() {
312 return _roleService;
313 }
314
315 @Override
316 public void setWrappedService(RoleService roleService) {
317 _roleService = roleService;
318 }
319
320 private RoleService _roleService;
321 }