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