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