001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link RoleLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       RoleLocalService
025     * @generated
026     */
027    public class RoleLocalServiceWrapper implements RoleLocalService {
028            public RoleLocalServiceWrapper(RoleLocalService roleLocalService) {
029                    _roleLocalService = roleLocalService;
030            }
031    
032            public com.liferay.portal.model.Role addRole(
033                    com.liferay.portal.model.Role role)
034                    throws com.liferay.portal.kernel.exception.SystemException {
035                    return _roleLocalService.addRole(role);
036            }
037    
038            public com.liferay.portal.model.Role createRole(long roleId) {
039                    return _roleLocalService.createRole(roleId);
040            }
041    
042            public void deleteRole(long roleId)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    _roleLocalService.deleteRole(roleId);
046            }
047    
048            public void deleteRole(com.liferay.portal.model.Role role)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    _roleLocalService.deleteRole(role);
051            }
052    
053            @SuppressWarnings("unchecked")
054            public java.util.List dynamicQuery(
055                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    return _roleLocalService.dynamicQuery(dynamicQuery);
058            }
059    
060            @SuppressWarnings("unchecked")
061            public java.util.List dynamicQuery(
062                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
063                    int end) throws com.liferay.portal.kernel.exception.SystemException {
064                    return _roleLocalService.dynamicQuery(dynamicQuery, start, end);
065            }
066    
067            @SuppressWarnings("unchecked")
068            public java.util.List dynamicQuery(
069                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070                    int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return _roleLocalService.dynamicQuery(dynamicQuery, start, end,
074                            orderByComparator);
075            }
076    
077            public long dynamicQueryCount(
078                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return _roleLocalService.dynamicQueryCount(dynamicQuery);
081            }
082    
083            public com.liferay.portal.model.Role getRole(long roleId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _roleLocalService.getRole(roleId);
087            }
088    
089            public java.util.List<com.liferay.portal.model.Role> getRoles(int start,
090                    int end) throws com.liferay.portal.kernel.exception.SystemException {
091                    return _roleLocalService.getRoles(start, end);
092            }
093    
094            public int getRolesCount()
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _roleLocalService.getRolesCount();
097            }
098    
099            public com.liferay.portal.model.Role updateRole(
100                    com.liferay.portal.model.Role role)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _roleLocalService.updateRole(role);
103            }
104    
105            public com.liferay.portal.model.Role updateRole(
106                    com.liferay.portal.model.Role role, boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _roleLocalService.updateRole(role, merge);
109            }
110    
111            public com.liferay.portal.model.Role addRole(long userId, long companyId,
112                    java.lang.String name,
113                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
114                    java.lang.String description, int type)
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);
119            }
120    
121            public com.liferay.portal.model.Role addRole(long userId, long companyId,
122                    java.lang.String name,
123                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
124                    java.lang.String description, int type, java.lang.String className,
125                    long classPK)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    return _roleLocalService.addRole(userId, companyId, name, titleMap,
129                            description, type, className, classPK);
130            }
131    
132            public void addUserRoles(long userId, long[] roleIds)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    _roleLocalService.addUserRoles(userId, roleIds);
136            }
137    
138            public void checkSystemRoles(long companyId)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    _roleLocalService.checkSystemRoles(companyId);
142            }
143    
144            public com.liferay.portal.model.Role getDefaultGroupRole(long groupId)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    return _roleLocalService.getDefaultGroupRole(groupId);
148            }
149    
150            public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
151                    long groupId)
152                    throws com.liferay.portal.kernel.exception.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)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _roleLocalService.getResourceRoles(companyId, name, scope,
161                            primKey);
162            }
163    
164            public com.liferay.portal.model.Role getRole(long companyId,
165                    java.lang.String name)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _roleLocalService.getRole(companyId, name);
169            }
170    
171            public java.util.List<com.liferay.portal.model.Role> getRoles(
172                    long companyId)
173                    throws com.liferay.portal.kernel.exception.SystemException {
174                    return _roleLocalService.getRoles(companyId);
175            }
176    
177            public java.util.List<com.liferay.portal.model.Role> getRoles(
178                    long[] roleIds)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _roleLocalService.getRoles(roleIds);
182            }
183    
184            public java.util.List<com.liferay.portal.model.Role> getRoles(int type,
185                    java.lang.String subtype)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _roleLocalService.getRoles(type, subtype);
188            }
189    
190            public java.util.List<com.liferay.portal.model.Role> getSubtypeRoles(
191                    java.lang.String subtype)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _roleLocalService.getSubtypeRoles(subtype);
194            }
195    
196            public int getSubtypeRolesCount(java.lang.String subtype)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _roleLocalService.getSubtypeRolesCount(subtype);
199            }
200    
201            public com.liferay.portal.model.Role getTeamRole(long companyId, long teamId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _roleLocalService.getTeamRole(companyId, teamId);
205            }
206    
207            public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
208                    long userId, long groupId)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _roleLocalService.getUserGroupGroupRoles(userId, groupId);
211            }
212    
213            public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
214                    long userId, long groupId)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _roleLocalService.getUserGroupRoles(userId, groupId);
217            }
218    
219            public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
220                    long userId, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _roleLocalService.getUserRelatedRoles(userId, groupId);
223            }
224    
225            public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
226                    long userId, long[] groupIds)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _roleLocalService.getUserRelatedRoles(userId, groupIds);
229            }
230    
231            public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
232                    long userId, java.util.List<com.liferay.portal.model.Group> groups)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _roleLocalService.getUserRelatedRoles(userId, groups);
235            }
236    
237            public java.util.List<com.liferay.portal.model.Role> getUserRoles(
238                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
239                    return _roleLocalService.getUserRoles(userId);
240            }
241    
242            public boolean hasUserRole(long userId, long roleId)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _roleLocalService.hasUserRole(userId, roleId);
245            }
246    
247            /**
248            * Returns <code>true</code> if the user has the regular role.
249            *
250            * @return <code>true</code> if the user has the regular role
251            */
252            public boolean hasUserRole(long userId, long companyId,
253                    java.lang.String name, boolean inherited)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return _roleLocalService.hasUserRole(userId, companyId, name, inherited);
257            }
258    
259            /**
260            * Returns <code>true</code> if the user has any one of the specified
261            regular roles.
262            *
263            * @return <code>true</code> if the user has the regular role
264            */
265            public boolean hasUserRoles(long userId, long companyId,
266                    java.lang.String[] names, boolean inherited)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    return _roleLocalService.hasUserRoles(userId, companyId, names,
270                            inherited);
271            }
272    
273            public java.util.List<com.liferay.portal.model.Role> search(
274                    long companyId, java.lang.String name, java.lang.String description,
275                    java.lang.Integer[] types, int start, int end,
276                    com.liferay.portal.kernel.util.OrderByComparator obc)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return _roleLocalService.search(companyId, name, description, types,
279                            start, end, obc);
280            }
281    
282            public java.util.List<com.liferay.portal.model.Role> search(
283                    long companyId, java.lang.String name, java.lang.String description,
284                    java.lang.Integer[] types,
285                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
286                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _roleLocalService.search(companyId, name, description, types,
289                            params, start, end, obc);
290            }
291    
292            public int searchCount(long companyId, java.lang.String name,
293                    java.lang.String description, java.lang.Integer[] types)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    return _roleLocalService.searchCount(companyId, name, description, types);
296            }
297    
298            public int searchCount(long companyId, java.lang.String name,
299                    java.lang.String description, java.lang.Integer[] types,
300                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _roleLocalService.searchCount(companyId, name, description,
303                            types, params);
304            }
305    
306            public void setUserRoles(long userId, long[] roleIds)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _roleLocalService.setUserRoles(userId, roleIds);
310            }
311    
312            public void unsetUserRoles(long userId, long[] roleIds)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _roleLocalService.unsetUserRoles(userId, roleIds);
316            }
317    
318            public com.liferay.portal.model.Role updateRole(long roleId,
319                    java.lang.String name,
320                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
321                    java.lang.String description, java.lang.String subtype)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _roleLocalService.updateRole(roleId, name, titleMap,
325                            description, subtype);
326            }
327    
328            public RoleLocalService getWrappedRoleLocalService() {
329                    return _roleLocalService;
330            }
331    
332            private RoleLocalService _roleLocalService;
333    }