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.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.PortalException,
51              com.liferay.portal.SystemException {
52          _roleLocalService.deleteRole(roleId);
53      }
54  
55      public void deleteRole(com.liferay.portal.model.Role role)
56          throws com.liferay.portal.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.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.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.PortalException,
74              com.liferay.portal.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.SystemException {
80          return _roleLocalService.getRoles(start, end);
81      }
82  
83      public int getRolesCount() throws com.liferay.portal.SystemException {
84          return _roleLocalService.getRolesCount();
85      }
86  
87      public com.liferay.portal.model.Role updateRole(
88          com.liferay.portal.model.Role role)
89          throws com.liferay.portal.SystemException {
90          return _roleLocalService.updateRole(role);
91      }
92  
93      public com.liferay.portal.model.Role updateRole(
94          com.liferay.portal.model.Role role, boolean merge)
95          throws com.liferay.portal.SystemException {
96          return _roleLocalService.updateRole(role, merge);
97      }
98  
99      public com.liferay.portal.model.Role addRole(long userId, long companyId,
100         java.lang.String name, java.lang.String description, int type)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException {
103         return _roleLocalService.addRole(userId, companyId, name, description,
104             type);
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         java.lang.String className, long classPK)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException {
112         return _roleLocalService.addRole(userId, companyId, name, description,
113             type, className, classPK);
114     }
115 
116     public void addUserRoles(long userId, long[] roleIds)
117         throws com.liferay.portal.SystemException {
118         _roleLocalService.addUserRoles(userId, roleIds);
119     }
120 
121     public void checkSystemRoles(long companyId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _roleLocalService.checkSystemRoles(companyId);
125     }
126 
127     public com.liferay.portal.model.Role getGroupRole(long companyId,
128         long groupId)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return _roleLocalService.getGroupRole(companyId, groupId);
132     }
133 
134     public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
135         long groupId) throws com.liferay.portal.SystemException {
136         return _roleLocalService.getGroupRoles(groupId);
137     }
138 
139     public java.util.Map<String, java.util.List<String>> getResourceRoles(
140         long companyId, java.lang.String name, int scope,
141         java.lang.String primKey) throws com.liferay.portal.SystemException {
142         return _roleLocalService.getResourceRoles(companyId, name, scope,
143             primKey);
144     }
145 
146     public com.liferay.portal.model.Role getRole(long companyId,
147         java.lang.String name)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         return _roleLocalService.getRole(companyId, name);
151     }
152 
153     public java.util.List<com.liferay.portal.model.Role> getRoles(
154         long companyId) throws com.liferay.portal.SystemException {
155         return _roleLocalService.getRoles(companyId);
156     }
157 
158     public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
159         long userId, long groupId) throws com.liferay.portal.SystemException {
160         return _roleLocalService.getUserGroupRoles(userId, groupId);
161     }
162 
163     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
164         long userId, long groupId) throws com.liferay.portal.SystemException {
165         return _roleLocalService.getUserRelatedRoles(userId, groupId);
166     }
167 
168     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
169         long userId, long[] groupIds) throws com.liferay.portal.SystemException {
170         return _roleLocalService.getUserRelatedRoles(userId, groupIds);
171     }
172 
173     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
174         long userId, java.util.List<com.liferay.portal.model.Group> groups)
175         throws com.liferay.portal.SystemException {
176         return _roleLocalService.getUserRelatedRoles(userId, groups);
177     }
178 
179     public java.util.List<com.liferay.portal.model.Role> getUserRoles(
180         long userId) throws com.liferay.portal.SystemException {
181         return _roleLocalService.getUserRoles(userId);
182     }
183 
184     public boolean hasUserRole(long userId, long roleId)
185         throws com.liferay.portal.SystemException {
186         return _roleLocalService.hasUserRole(userId, roleId);
187     }
188 
189     public boolean hasUserRole(long userId, long companyId,
190         java.lang.String name, boolean inherited)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         return _roleLocalService.hasUserRole(userId, companyId, name, inherited);
194     }
195 
196     public boolean hasUserRoles(long userId, long companyId,
197         java.lang.String[] names, boolean inherited)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException {
200         return _roleLocalService.hasUserRoles(userId, companyId, names,
201             inherited);
202     }
203 
204     public java.util.List<com.liferay.portal.model.Role> search(
205         long companyId, java.lang.String name, java.lang.String description,
206         java.lang.Integer type, int start, int end,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException {
209         return _roleLocalService.search(companyId, name, description, type,
210             start, end, obc);
211     }
212 
213     public java.util.List<com.liferay.portal.model.Role> search(
214         long companyId, java.lang.String name, java.lang.String description,
215         java.lang.Integer type, java.util.LinkedHashMap<String, Object> params,
216         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException {
218         return _roleLocalService.search(companyId, name, description, type,
219             params, start, end, obc);
220     }
221 
222     public int searchCount(long companyId, java.lang.String name,
223         java.lang.String description, java.lang.Integer type)
224         throws com.liferay.portal.SystemException {
225         return _roleLocalService.searchCount(companyId, name, description, type);
226     }
227 
228     public int searchCount(long companyId, java.lang.String name,
229         java.lang.String description, java.lang.Integer type,
230         java.util.LinkedHashMap<String, Object> params)
231         throws com.liferay.portal.SystemException {
232         return _roleLocalService.searchCount(companyId, name, description,
233             type, params);
234     }
235 
236     public void setUserRoles(long userId, long[] roleIds)
237         throws com.liferay.portal.SystemException {
238         _roleLocalService.setUserRoles(userId, roleIds);
239     }
240 
241     public void unsetUserRoles(long userId, long[] roleIds)
242         throws com.liferay.portal.SystemException {
243         _roleLocalService.unsetUserRoles(userId, roleIds);
244     }
245 
246     public com.liferay.portal.model.Role updateRole(long roleId,
247         java.lang.String name, java.lang.String description)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException {
250         return _roleLocalService.updateRole(roleId, name, description);
251     }
252 
253     public RoleLocalService getWrappedRoleLocalService() {
254         return _roleLocalService;
255     }
256 
257     private RoleLocalService _roleLocalService;
258 }