1
14
15 package com.liferay.portal.service;
16
17
18
34 public class RoleLocalServiceWrapper implements RoleLocalService {
35 public RoleLocalServiceWrapper(RoleLocalService roleLocalService) {
36 _roleLocalService = roleLocalService;
37 }
38
39 public com.liferay.portal.model.Role addRole(
40 com.liferay.portal.model.Role role)
41 throws com.liferay.portal.kernel.exception.SystemException {
42 return _roleLocalService.addRole(role);
43 }
44
45 public com.liferay.portal.model.Role createRole(long roleId) {
46 return _roleLocalService.createRole(roleId);
47 }
48
49 public void deleteRole(long roleId)
50 throws com.liferay.portal.kernel.exception.PortalException,
51 com.liferay.portal.kernel.exception.SystemException {
52 _roleLocalService.deleteRole(roleId);
53 }
54
55 public void deleteRole(com.liferay.portal.model.Role role)
56 throws com.liferay.portal.kernel.exception.SystemException {
57 _roleLocalService.deleteRole(role);
58 }
59
60 @SuppressWarnings("unchecked")
61 public java.util.List dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.kernel.exception.SystemException {
64 return _roleLocalService.dynamicQuery(dynamicQuery);
65 }
66
67 @SuppressWarnings("unchecked")
68 public java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70 int end) throws com.liferay.portal.kernel.exception.SystemException {
71 return _roleLocalService.dynamicQuery(dynamicQuery, start, end);
72 }
73
74 @SuppressWarnings("unchecked")
75 public java.util.List dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return _roleLocalService.dynamicQuery(dynamicQuery, start, end,
81 orderByComparator);
82 }
83
84 public long dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return _roleLocalService.dynamicQueryCount(dynamicQuery);
88 }
89
90 public com.liferay.portal.model.Role getRole(long roleId)
91 throws com.liferay.portal.kernel.exception.PortalException,
92 com.liferay.portal.kernel.exception.SystemException {
93 return _roleLocalService.getRole(roleId);
94 }
95
96 public java.util.List<com.liferay.portal.model.Role> getRoles(int start,
97 int end) throws com.liferay.portal.kernel.exception.SystemException {
98 return _roleLocalService.getRoles(start, end);
99 }
100
101 public int getRolesCount()
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return _roleLocalService.getRolesCount();
104 }
105
106 public com.liferay.portal.model.Role updateRole(
107 com.liferay.portal.model.Role role)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return _roleLocalService.updateRole(role);
110 }
111
112 public com.liferay.portal.model.Role updateRole(
113 com.liferay.portal.model.Role role, boolean merge)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return _roleLocalService.updateRole(role, merge);
116 }
117
118 public com.liferay.portal.model.Role addRole(long userId, long companyId,
119 java.lang.String name,
120 java.util.Map<java.util.Locale, java.lang.String> titleMap,
121 java.lang.String description, int type)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 return _roleLocalService.addRole(userId, companyId, name, titleMap,
125 description, type);
126 }
127
128 public com.liferay.portal.model.Role addRole(long userId, long companyId,
129 java.lang.String name,
130 java.util.Map<java.util.Locale, java.lang.String> titleMap,
131 java.lang.String description, int type, java.lang.String className,
132 long classPK)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return _roleLocalService.addRole(userId, companyId, name, titleMap,
136 description, type, className, classPK);
137 }
138
139 public void addUserRoles(long userId, long[] roleIds)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 _roleLocalService.addUserRoles(userId, roleIds);
143 }
144
145 public void checkSystemRoles(long companyId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 _roleLocalService.checkSystemRoles(companyId);
149 }
150
151 public com.liferay.portal.model.Role getDefaultGroupRole(long groupId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException {
154 return _roleLocalService.getDefaultGroupRole(groupId);
155 }
156
157 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
158 long groupId)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return _roleLocalService.getGroupRoles(groupId);
161 }
162
163 public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getResourceRoles(
164 long companyId, java.lang.String name, int scope,
165 java.lang.String primKey)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return _roleLocalService.getResourceRoles(companyId, name, scope,
168 primKey);
169 }
170
171 public com.liferay.portal.model.Role getRole(long companyId,
172 java.lang.String name)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 return _roleLocalService.getRole(companyId, name);
176 }
177
178 public java.util.List<com.liferay.portal.model.Role> getRoles(
179 long companyId)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return _roleLocalService.getRoles(companyId);
182 }
183
184 public java.util.List<com.liferay.portal.model.Role> getRoles(
185 long[] roleIds)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return _roleLocalService.getRoles(roleIds);
189 }
190
191 public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
192 java.lang.String subtype)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return _roleLocalService.getRoles(type, subtype);
195 }
196
197 public java.util.List<com.liferay.portal.model.Role> getSubtypeRoles(
198 java.lang.String subtype)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return _roleLocalService.getSubtypeRoles(subtype);
201 }
202
203 public int getSubtypeRolesCount(java.lang.String subtype)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return _roleLocalService.getSubtypeRolesCount(subtype);
206 }
207
208 public com.liferay.portal.model.Role getTeamRole(long companyId, long teamId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return _roleLocalService.getTeamRole(companyId, teamId);
212 }
213
214 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
215 long userId, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return _roleLocalService.getUserGroupGroupRoles(userId, groupId);
218 }
219
220 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
221 long userId, long groupId)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return _roleLocalService.getUserGroupRoles(userId, groupId);
224 }
225
226 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
227 long userId, long groupId)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return _roleLocalService.getUserRelatedRoles(userId, groupId);
230 }
231
232 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
233 long userId, long[] groupIds)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return _roleLocalService.getUserRelatedRoles(userId, groupIds);
236 }
237
238 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
239 long userId, java.util.List<com.liferay.portal.model.Group> groups)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return _roleLocalService.getUserRelatedRoles(userId, groups);
242 }
243
244 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
245 long userId) throws com.liferay.portal.kernel.exception.SystemException {
246 return _roleLocalService.getUserRoles(userId);
247 }
248
249 public boolean hasUserRole(long userId, long roleId)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return _roleLocalService.hasUserRole(userId, roleId);
252 }
253
254
259 public boolean hasUserRole(long userId, long companyId,
260 java.lang.String name, boolean inherited)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 return _roleLocalService.hasUserRole(userId, companyId, name, inherited);
264 }
265
266
271 public boolean hasUserRoles(long userId, long companyId,
272 java.lang.String[] names, boolean inherited)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return _roleLocalService.hasUserRoles(userId, companyId, names,
276 inherited);
277 }
278
279 public java.util.List<com.liferay.portal.model.Role> search(
280 long companyId, java.lang.String name, java.lang.String description,
281 java.lang.Integer[] types, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return _roleLocalService.search(companyId, name, description, types,
285 start, end, obc);
286 }
287
288 public java.util.List<com.liferay.portal.model.Role> search(
289 long companyId, java.lang.String name, java.lang.String description,
290 java.lang.Integer[] types,
291 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
292 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return _roleLocalService.search(companyId, name, description, types,
295 params, start, end, obc);
296 }
297
298 public int searchCount(long companyId, java.lang.String name,
299 java.lang.String description, java.lang.Integer[] types)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return _roleLocalService.searchCount(companyId, name, description, types);
302 }
303
304 public int searchCount(long companyId, java.lang.String name,
305 java.lang.String description, java.lang.Integer[] types,
306 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return _roleLocalService.searchCount(companyId, name, description,
309 types, params);
310 }
311
312 public void setUserRoles(long userId, long[] roleIds)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 _roleLocalService.setUserRoles(userId, roleIds);
316 }
317
318 public void unsetUserRoles(long userId, long[] roleIds)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 _roleLocalService.unsetUserRoles(userId, roleIds);
322 }
323
324 public com.liferay.portal.model.Role updateRole(long roleId,
325 java.lang.String name,
326 java.util.Map<java.util.Locale, java.lang.String> titleMap,
327 java.lang.String description, java.lang.String subtype)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return _roleLocalService.updateRole(roleId, name, titleMap,
331 description, subtype);
332 }
333
334 public RoleLocalService getWrappedRoleLocalService() {
335 return _roleLocalService;
336 }
337
338 private RoleLocalService _roleLocalService;
339 }