1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="RoleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link RoleLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       RoleLocalService
32   * @generated
33   */
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 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.kernel.exception.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.kernel.exception.SystemException {
84          return _roleLocalService.dynamicQueryCount(dynamicQuery);
85      }
86  
87      public com.liferay.portal.model.Role getRole(long roleId)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
95          return _roleLocalService.getRoles(start, end);
96      }
97  
98      public int getRolesCount()
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return _roleLocalService.getRolesCount();
101     }
102 
103     public com.liferay.portal.model.Role updateRole(
104         com.liferay.portal.model.Role role)
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return _roleLocalService.updateRole(role);
107     }
108 
109     public com.liferay.portal.model.Role updateRole(
110         com.liferay.portal.model.Role role, boolean merge)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _roleLocalService.updateRole(role, merge);
113     }
114 
115     public com.liferay.portal.model.Role addRole(long userId, long companyId,
116         java.lang.String name,
117         java.util.Map<java.util.Locale, String> titleMap,
118         java.lang.String description, int type)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException {
121         return _roleLocalService.addRole(userId, companyId, name, titleMap,
122             description, type);
123     }
124 
125     public com.liferay.portal.model.Role addRole(long userId, long companyId,
126         java.lang.String name,
127         java.util.Map<java.util.Locale, String> titleMap,
128         java.lang.String description, int type, java.lang.String className,
129         long classPK)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         return _roleLocalService.addRole(userId, companyId, name, titleMap,
133             description, type, className, classPK);
134     }
135 
136     public void addUserRoles(long userId, long[] roleIds)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         _roleLocalService.addUserRoles(userId, roleIds);
140     }
141 
142     public void checkSystemRoles(long companyId)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         _roleLocalService.checkSystemRoles(companyId);
146     }
147 
148     public com.liferay.portal.model.Role getDefaultGroupRole(long groupId)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         return _roleLocalService.getDefaultGroupRole(groupId);
152     }
153 
154     public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
155         long groupId)
156         throws com.liferay.portal.kernel.exception.SystemException {
157         return _roleLocalService.getGroupRoles(groupId);
158     }
159 
160     public java.util.Map<String, java.util.List<String>> getResourceRoles(
161         long companyId, java.lang.String name, int scope,
162         java.lang.String primKey)
163         throws com.liferay.portal.kernel.exception.SystemException {
164         return _roleLocalService.getResourceRoles(companyId, name, scope,
165             primKey);
166     }
167 
168     public com.liferay.portal.model.Role getRole(long companyId,
169         java.lang.String name)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         return _roleLocalService.getRole(companyId, name);
173     }
174 
175     public java.util.List<com.liferay.portal.model.Role> getRoles(
176         long companyId)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return _roleLocalService.getRoles(companyId);
179     }
180 
181     public java.util.List<com.liferay.portal.model.Role> getRoles(
182         long[] roleIds)
183         throws com.liferay.portal.kernel.exception.PortalException,
184             com.liferay.portal.kernel.exception.SystemException {
185         return _roleLocalService.getRoles(roleIds);
186     }
187 
188     public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
189         java.lang.String subtype)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return _roleLocalService.getRoles(type, subtype);
192     }
193 
194     public java.util.List<com.liferay.portal.model.Role> getSubtypeRoles(
195         java.lang.String subtype)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return _roleLocalService.getSubtypeRoles(subtype);
198     }
199 
200     public int getSubtypeRolesCount(java.lang.String subtype)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return _roleLocalService.getSubtypeRolesCount(subtype);
203     }
204 
205     public com.liferay.portal.model.Role getTeamRole(long companyId, long teamId)
206         throws com.liferay.portal.kernel.exception.PortalException,
207             com.liferay.portal.kernel.exception.SystemException {
208         return _roleLocalService.getTeamRole(companyId, teamId);
209     }
210 
211     public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
212         long userId, long groupId)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return _roleLocalService.getUserGroupGroupRoles(userId, groupId);
215     }
216 
217     public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
218         long userId, long groupId)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return _roleLocalService.getUserGroupRoles(userId, groupId);
221     }
222 
223     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
224         long userId, long groupId)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return _roleLocalService.getUserRelatedRoles(userId, groupId);
227     }
228 
229     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
230         long userId, long[] groupIds)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return _roleLocalService.getUserRelatedRoles(userId, groupIds);
233     }
234 
235     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
236         long userId, java.util.List<com.liferay.portal.model.Group> groups)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return _roleLocalService.getUserRelatedRoles(userId, groups);
239     }
240 
241     public java.util.List<com.liferay.portal.model.Role> getUserRoles(
242         long userId) throws com.liferay.portal.kernel.exception.SystemException {
243         return _roleLocalService.getUserRoles(userId);
244     }
245 
246     public boolean hasUserRole(long userId, long roleId)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return _roleLocalService.hasUserRole(userId, roleId);
249     }
250 
251     public boolean hasUserRole(long userId, long companyId,
252         java.lang.String name, boolean inherited)
253         throws com.liferay.portal.kernel.exception.PortalException,
254             com.liferay.portal.kernel.exception.SystemException {
255         return _roleLocalService.hasUserRole(userId, companyId, name, inherited);
256     }
257 
258     public boolean hasUserRoles(long userId, long companyId,
259         java.lang.String[] names, boolean inherited)
260         throws com.liferay.portal.kernel.exception.PortalException,
261             com.liferay.portal.kernel.exception.SystemException {
262         return _roleLocalService.hasUserRoles(userId, companyId, names,
263             inherited);
264     }
265 
266     public java.util.List<com.liferay.portal.model.Role> search(
267         long companyId, java.lang.String name, java.lang.String description,
268         java.lang.Integer[] types, int start, int end,
269         com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return _roleLocalService.search(companyId, name, description, types,
272             start, end, obc);
273     }
274 
275     public java.util.List<com.liferay.portal.model.Role> search(
276         long companyId, java.lang.String name, java.lang.String description,
277         java.lang.Integer[] types,
278         java.util.LinkedHashMap<String, Object> params, int start, int end,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return _roleLocalService.search(companyId, name, description, types,
282             params, start, end, obc);
283     }
284 
285     public int searchCount(long companyId, java.lang.String name,
286         java.lang.String description, java.lang.Integer[] types)
287         throws com.liferay.portal.kernel.exception.SystemException {
288         return _roleLocalService.searchCount(companyId, name, description, types);
289     }
290 
291     public int searchCount(long companyId, java.lang.String name,
292         java.lang.String description, java.lang.Integer[] types,
293         java.util.LinkedHashMap<String, Object> params)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return _roleLocalService.searchCount(companyId, name, description,
296             types, params);
297     }
298 
299     public void setUserRoles(long userId, long[] roleIds)
300         throws com.liferay.portal.kernel.exception.PortalException,
301             com.liferay.portal.kernel.exception.SystemException {
302         _roleLocalService.setUserRoles(userId, roleIds);
303     }
304 
305     public void unsetUserRoles(long userId, long[] roleIds)
306         throws com.liferay.portal.kernel.exception.PortalException,
307             com.liferay.portal.kernel.exception.SystemException {
308         _roleLocalService.unsetUserRoles(userId, roleIds);
309     }
310 
311     public com.liferay.portal.model.Role updateRole(long roleId,
312         java.lang.String name,
313         java.util.Map<java.util.Locale, String> titleMap,
314         java.lang.String description, java.lang.String subtype)
315         throws com.liferay.portal.kernel.exception.PortalException,
316             com.liferay.portal.kernel.exception.SystemException {
317         return _roleLocalService.updateRole(roleId, name, titleMap,
318             description, subtype);
319     }
320 
321     public RoleLocalService getWrappedRoleLocalService() {
322         return _roleLocalService;
323     }
324 
325     private RoleLocalService _roleLocalService;
326 }