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 public java.util.List<Object> dynamicQuery(
61 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
69 return _roleLocalService.dynamicQuery(dynamicQuery, start, end);
70 }
71
72 public com.liferay.portal.model.Role getRole(long roleId)
73 throws com.liferay.portal.kernel.exception.PortalException,
74 com.liferay.portal.kernel.exception.SystemException {
75 return _roleLocalService.getRole(roleId);
76 }
77
78 public java.util.List<com.liferay.portal.model.Role> getRoles(int start,
79 int end) throws com.liferay.portal.kernel.exception.SystemException {
80 return _roleLocalService.getRoles(start, end);
81 }
82
83 public int getRolesCount()
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return _roleLocalService.getRolesCount();
86 }
87
88 public com.liferay.portal.model.Role updateRole(
89 com.liferay.portal.model.Role role)
90 throws com.liferay.portal.kernel.exception.SystemException {
91 return _roleLocalService.updateRole(role);
92 }
93
94 public com.liferay.portal.model.Role updateRole(
95 com.liferay.portal.model.Role role, boolean merge)
96 throws com.liferay.portal.kernel.exception.SystemException {
97 return _roleLocalService.updateRole(role, merge);
98 }
99
100 public com.liferay.portal.model.Role addRole(long userId, long companyId,
101 java.lang.String name,
102 java.util.Map<java.util.Locale, String> titleMap,
103 java.lang.String description, int type)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return _roleLocalService.addRole(userId, companyId, name, titleMap,
107 description, type);
108 }
109
110 public com.liferay.portal.model.Role addRole(long userId, long companyId,
111 java.lang.String name,
112 java.util.Map<java.util.Locale, String> titleMap,
113 java.lang.String description, int type, java.lang.String className,
114 long classPK)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 return _roleLocalService.addRole(userId, companyId, name, titleMap,
118 description, type, className, classPK);
119 }
120
121 public void addUserRoles(long userId, long[] roleIds)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 _roleLocalService.addUserRoles(userId, roleIds);
125 }
126
127 public void checkSystemRoles(long companyId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 _roleLocalService.checkSystemRoles(companyId);
131 }
132
133 public com.liferay.portal.model.Role getGroupRole(long companyId,
134 long groupId)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return _roleLocalService.getGroupRole(companyId, groupId);
138 }
139
140 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
141 long groupId)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return _roleLocalService.getGroupRoles(groupId);
144 }
145
146 public java.util.Map<String, java.util.List<String>> getResourceRoles(
147 long companyId, java.lang.String name, int scope,
148 java.lang.String primKey)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return _roleLocalService.getResourceRoles(companyId, name, scope,
151 primKey);
152 }
153
154 public com.liferay.portal.model.Role getRole(long companyId,
155 java.lang.String name)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return _roleLocalService.getRole(companyId, name);
159 }
160
161 public java.util.List<com.liferay.portal.model.Role> getRoles(
162 long companyId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return _roleLocalService.getRoles(companyId);
165 }
166
167 public java.util.List<com.liferay.portal.model.Role> getRoles(
168 long[] roleIds)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException {
171 return _roleLocalService.getRoles(roleIds);
172 }
173
174 public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
175 java.lang.String subtype)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return _roleLocalService.getRoles(type, subtype);
178 }
179
180 public java.util.List<com.liferay.portal.model.Role> getSubtypeRoles(
181 java.lang.String subtype)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return _roleLocalService.getSubtypeRoles(subtype);
184 }
185
186 public int getSubtypeRolesCount(java.lang.String subtype)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return _roleLocalService.getSubtypeRolesCount(subtype);
189 }
190
191 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
192 long userId, long groupId)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return _roleLocalService.getUserGroupGroupRoles(userId, groupId);
195 }
196
197 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
198 long userId, long groupId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return _roleLocalService.getUserGroupRoles(userId, groupId);
201 }
202
203 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
204 long userId, long groupId)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return _roleLocalService.getUserRelatedRoles(userId, groupId);
207 }
208
209 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
210 long userId, long[] groupIds)
211 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
223 return _roleLocalService.getUserRoles(userId);
224 }
225
226 public boolean hasUserRole(long userId, long roleId)
227 throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 _roleLocalService.setUserRoles(userId, roleIds);
282 }
283
284 public void unsetUserRoles(long userId, long[] roleIds)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.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> titleMap,
293 java.lang.String description, java.lang.String subtype)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return _roleLocalService.updateRole(roleId, name, titleMap,
297 description, subtype);
298 }
299
300 public RoleLocalService getWrappedRoleLocalService() {
301 return _roleLocalService;
302 }
303
304 private RoleLocalService _roleLocalService;
305 }