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