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