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
076 @Deprecated
077 @Override
078 public com.liferay.portal.model.Role addRole(java.lang.String name,
079 java.util.Map<java.util.Locale, java.lang.String> titleMap,
080 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
081 int type) throws com.liferay.portal.kernel.exception.PortalException {
082 return _roleService.addRole(name, titleMap, descriptionMap, type);
083 }
084
085
092 @Override
093 public void addUserRoles(long userId, long[] roleIds)
094 throws com.liferay.portal.kernel.exception.PortalException {
095 _roleService.addUserRoles(userId, roleIds);
096 }
097
098
103 @Override
104 public void deleteRole(long roleId)
105 throws com.liferay.portal.kernel.exception.PortalException {
106 _roleService.deleteRole(roleId);
107 }
108
109 @Override
110 public com.liferay.portal.model.Role fetchRole(long roleId)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 return _roleService.fetchRole(roleId);
113 }
114
115
121 @Override
122 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
123 long groupId)
124 throws com.liferay.portal.kernel.exception.PortalException {
125 return _roleService.getGroupRoles(groupId);
126 }
127
128
133 @Override
134 public java.lang.String getOSGiServiceIdentifier() {
135 return _roleService.getOSGiServiceIdentifier();
136 }
137
138
150 @Override
151 public com.liferay.portal.model.Role getRole(long companyId,
152 java.lang.String name)
153 throws com.liferay.portal.kernel.exception.PortalException {
154 return _roleService.getRole(companyId, name);
155 }
156
157
163 @Override
164 public com.liferay.portal.model.Role getRole(long roleId)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 return _roleService.getRole(roleId);
167 }
168
169 @Override
170 public java.util.List<com.liferay.portal.model.Role> getRoles(
171 long companyId, int[] types)
172 throws com.liferay.portal.kernel.exception.PortalException {
173 return _roleService.getRoles(companyId, types);
174 }
175
176 @Override
177 public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
178 java.lang.String subtype)
179 throws com.liferay.portal.kernel.exception.PortalException {
180 return _roleService.getRoles(type, subtype);
181 }
182
183
190 @Override
191 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
192 long userId, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException {
194 return _roleService.getUserGroupGroupRoles(userId, groupId);
195 }
196
197
204 @Override
205 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
206 long userId, long groupId)
207 throws com.liferay.portal.kernel.exception.PortalException {
208 return _roleService.getUserGroupRoles(userId, groupId);
209 }
210
211
218 @Override
219 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
220 long userId, java.util.List<com.liferay.portal.model.Group> groups)
221 throws com.liferay.portal.kernel.exception.PortalException {
222 return _roleService.getUserRelatedRoles(userId, groups);
223 }
224
225
231 @Override
232 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
233 long userId) throws com.liferay.portal.kernel.exception.PortalException {
234 return _roleService.getUserRoles(userId);
235 }
236
237
249 @Override
250 public boolean hasUserRole(long userId, long companyId,
251 java.lang.String name, boolean inherited)
252 throws com.liferay.portal.kernel.exception.PortalException {
253 return _roleService.hasUserRole(userId, companyId, name, inherited);
254 }
255
256
268 @Override
269 public boolean hasUserRoles(long userId, long companyId,
270 java.lang.String[] names, boolean inherited)
271 throws com.liferay.portal.kernel.exception.PortalException {
272 return _roleService.hasUserRoles(userId, companyId, names, inherited);
273 }
274
275 @Override
276 public java.util.List<com.liferay.portal.model.Role> search(
277 long companyId, java.lang.String keywords, java.lang.Integer[] types,
278 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
279 int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
281 return _roleService.search(companyId, keywords, types, params, start,
282 end, obc);
283 }
284
285 @Override
286 public int searchCount(long companyId, java.lang.String keywords,
287 java.lang.Integer[] types,
288 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
289 return _roleService.searchCount(companyId, keywords, types, params);
290 }
291
292
299 @Override
300 public void unsetUserRoles(long userId, long[] roleIds)
301 throws com.liferay.portal.kernel.exception.PortalException {
302 _roleService.unsetUserRoles(userId, roleIds);
303 }
304
305
320 @Override
321 public com.liferay.portal.model.Role updateRole(long roleId,
322 java.lang.String name,
323 java.util.Map<java.util.Locale, java.lang.String> titleMap,
324 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
325 java.lang.String subtype,
326 com.liferay.portal.service.ServiceContext serviceContext)
327 throws com.liferay.portal.kernel.exception.PortalException {
328 return _roleService.updateRole(roleId, name, titleMap, descriptionMap,
329 subtype, serviceContext);
330 }
331
332 @Override
333 public RoleService getWrappedService() {
334 return _roleService;
335 }
336
337 @Override
338 public void setWrappedService(RoleService roleService) {
339 _roleService = roleService;
340 }
341
342 private RoleService _roleService;
343 }