1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="UserGroupRoleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link UserGroupRoleLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       UserGroupRoleLocalService
40   * @generated
41   */
42  public class UserGroupRoleLocalServiceWrapper
43      implements UserGroupRoleLocalService {
44      public UserGroupRoleLocalServiceWrapper(
45          UserGroupRoleLocalService userGroupRoleLocalService) {
46          _userGroupRoleLocalService = userGroupRoleLocalService;
47      }
48  
49      public com.liferay.portal.model.UserGroupRole addUserGroupRole(
50          com.liferay.portal.model.UserGroupRole userGroupRole)
51          throws com.liferay.portal.SystemException {
52          return _userGroupRoleLocalService.addUserGroupRole(userGroupRole);
53      }
54  
55      public com.liferay.portal.model.UserGroupRole createUserGroupRole(
56          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
57          return _userGroupRoleLocalService.createUserGroupRole(userGroupRolePK);
58      }
59  
60      public void deleteUserGroupRole(
61          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException {
64          _userGroupRoleLocalService.deleteUserGroupRole(userGroupRolePK);
65      }
66  
67      public void deleteUserGroupRole(
68          com.liferay.portal.model.UserGroupRole userGroupRole)
69          throws com.liferay.portal.SystemException {
70          _userGroupRoleLocalService.deleteUserGroupRole(userGroupRole);
71      }
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75          throws com.liferay.portal.SystemException {
76          return _userGroupRoleLocalService.dynamicQuery(dynamicQuery);
77      }
78  
79      public java.util.List<Object> dynamicQuery(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
81          int end) throws com.liferay.portal.SystemException {
82          return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start, end);
83      }
84  
85      public com.liferay.portal.model.UserGroupRole getUserGroupRole(
86          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException {
89          return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
90      }
91  
92      public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
93          int start, int end) throws com.liferay.portal.SystemException {
94          return _userGroupRoleLocalService.getUserGroupRoles(start, end);
95      }
96  
97      public int getUserGroupRolesCount()
98          throws com.liferay.portal.SystemException {
99          return _userGroupRoleLocalService.getUserGroupRolesCount();
100     }
101 
102     public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
103         com.liferay.portal.model.UserGroupRole userGroupRole)
104         throws com.liferay.portal.SystemException {
105         return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
106     }
107 
108     public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
109         com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole,
112             merge);
113     }
114 
115     public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         _userGroupRoleLocalService.addUserGroupRoles(userId, groupId, roleIds);
119     }
120 
121     public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _userGroupRoleLocalService.addUserGroupRoles(userIds, groupId, roleId);
125     }
126 
127     public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
128         throws com.liferay.portal.SystemException {
129         _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupId, roleIds);
130     }
131 
132     public void deleteUserGroupRoles(long userId, long[] groupIds)
133         throws com.liferay.portal.SystemException {
134         _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupIds);
135     }
136 
137     public void deleteUserGroupRoles(long[] userIds, long groupId)
138         throws com.liferay.portal.SystemException {
139         _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId);
140     }
141 
142     public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
143         throws com.liferay.portal.SystemException {
144         _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId, roleId);
145     }
146 
147     public void deleteUserGroupRolesByGroupId(long groupId)
148         throws com.liferay.portal.SystemException {
149         _userGroupRoleLocalService.deleteUserGroupRolesByGroupId(groupId);
150     }
151 
152     public void deleteUserGroupRolesByRoleId(long roleId)
153         throws com.liferay.portal.SystemException {
154         _userGroupRoleLocalService.deleteUserGroupRolesByRoleId(roleId);
155     }
156 
157     public void deleteUserGroupRolesByUserId(long userId)
158         throws com.liferay.portal.SystemException {
159         _userGroupRoleLocalService.deleteUserGroupRolesByUserId(userId);
160     }
161 
162     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
163         long userId) throws com.liferay.portal.SystemException {
164         return _userGroupRoleLocalService.getUserGroupRoles(userId);
165     }
166 
167     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
168         long userId, long groupId) throws com.liferay.portal.SystemException {
169         return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
170     }
171 
172     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
173         long groupId, long roleId) throws com.liferay.portal.SystemException {
174         return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
175             roleId);
176     }
177 
178     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
179         long userId, long groupId) throws com.liferay.portal.SystemException {
180         return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
181             groupId);
182     }
183 
184     public boolean hasUserGroupRole(long userId, long groupId, long roleId)
185         throws com.liferay.portal.SystemException {
186         return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
187             roleId);
188     }
189 
190     public boolean hasUserGroupRole(long userId, long groupId, long roleId,
191         boolean inherit) throws com.liferay.portal.SystemException {
192         return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
193             roleId, inherit);
194     }
195 
196     public boolean hasUserGroupRole(long userId, long groupId,
197         java.lang.String roleName)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException {
200         return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
201             roleName);
202     }
203 
204     public boolean hasUserGroupRole(long userId, long groupId,
205         java.lang.String roleName, boolean inherit)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
209             roleName, inherit);
210     }
211 
212     public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
213         return _userGroupRoleLocalService;
214     }
215 
216     private UserGroupRoleLocalService _userGroupRoleLocalService;
217 }