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="UserGroupLocalServiceUtil.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 UserGroupLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       UserGroupLocalService
40   * @generated
41   */
42  public class UserGroupLocalServiceWrapper implements UserGroupLocalService {
43      public UserGroupLocalServiceWrapper(
44          UserGroupLocalService userGroupLocalService) {
45          _userGroupLocalService = userGroupLocalService;
46      }
47  
48      public com.liferay.portal.model.UserGroup addUserGroup(
49          com.liferay.portal.model.UserGroup userGroup)
50          throws com.liferay.portal.SystemException {
51          return _userGroupLocalService.addUserGroup(userGroup);
52      }
53  
54      public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId) {
55          return _userGroupLocalService.createUserGroup(userGroupId);
56      }
57  
58      public void deleteUserGroup(long userGroupId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          _userGroupLocalService.deleteUserGroup(userGroupId);
62      }
63  
64      public void deleteUserGroup(com.liferay.portal.model.UserGroup userGroup)
65          throws com.liferay.portal.SystemException {
66          _userGroupLocalService.deleteUserGroup(userGroup);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71          throws com.liferay.portal.SystemException {
72          return _userGroupLocalService.dynamicQuery(dynamicQuery);
73      }
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end) throws com.liferay.portal.SystemException {
78          return _userGroupLocalService.dynamicQuery(dynamicQuery, start, end);
79      }
80  
81      public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return _userGroupLocalService.getUserGroup(userGroupId);
85      }
86  
87      public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
88          int start, int end) throws com.liferay.portal.SystemException {
89          return _userGroupLocalService.getUserGroups(start, end);
90      }
91  
92      public int getUserGroupsCount() throws com.liferay.portal.SystemException {
93          return _userGroupLocalService.getUserGroupsCount();
94      }
95  
96      public com.liferay.portal.model.UserGroup updateUserGroup(
97          com.liferay.portal.model.UserGroup userGroup)
98          throws com.liferay.portal.SystemException {
99          return _userGroupLocalService.updateUserGroup(userGroup);
100     }
101 
102     public com.liferay.portal.model.UserGroup updateUserGroup(
103         com.liferay.portal.model.UserGroup userGroup, boolean merge)
104         throws com.liferay.portal.SystemException {
105         return _userGroupLocalService.updateUserGroup(userGroup, merge);
106     }
107 
108     public void addGroupUserGroups(long groupId, long[] userGroupIds)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         _userGroupLocalService.addGroupUserGroups(groupId, userGroupIds);
112     }
113 
114     public com.liferay.portal.model.UserGroup addUserGroup(long userId,
115         long companyId, java.lang.String name, java.lang.String description)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return _userGroupLocalService.addUserGroup(userId, companyId, name,
119             description);
120     }
121 
122     public void clearUserUserGroups(long userId)
123         throws com.liferay.portal.SystemException {
124         _userGroupLocalService.clearUserUserGroups(userId);
125     }
126 
127     public void copyUserGroupLayouts(long userGroupId, long[] userIds)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         _userGroupLocalService.copyUserGroupLayouts(userGroupId, userIds);
131     }
132 
133     public void copyUserGroupLayouts(long[] userGroupIds, long userId)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         _userGroupLocalService.copyUserGroupLayouts(userGroupIds, userId);
137     }
138 
139     public void copyUserGroupLayouts(long userGroupId, long userId)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         _userGroupLocalService.copyUserGroupLayouts(userGroupId, userId);
143     }
144 
145     public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
146         java.lang.String name)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return _userGroupLocalService.getUserGroup(companyId, name);
150     }
151 
152     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
153         long companyId) throws com.liferay.portal.SystemException {
154         return _userGroupLocalService.getUserGroups(companyId);
155     }
156 
157     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
158         long[] userGroupIds)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         return _userGroupLocalService.getUserGroups(userGroupIds);
162     }
163 
164     public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
165         long userId) throws com.liferay.portal.SystemException {
166         return _userGroupLocalService.getUserUserGroups(userId);
167     }
168 
169     public boolean hasGroupUserGroup(long groupId, long userGroupId)
170         throws com.liferay.portal.SystemException {
171         return _userGroupLocalService.hasGroupUserGroup(groupId, userGroupId);
172     }
173 
174     public java.util.List<com.liferay.portal.model.UserGroup> search(
175         long companyId, java.lang.String name, java.lang.String description,
176         java.util.LinkedHashMap<String, Object> params, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException {
179         return _userGroupLocalService.search(companyId, name, description,
180             params, start, end, obc);
181     }
182 
183     public int searchCount(long companyId, java.lang.String name,
184         java.lang.String description,
185         java.util.LinkedHashMap<String, Object> params)
186         throws com.liferay.portal.SystemException {
187         return _userGroupLocalService.searchCount(companyId, name, description,
188             params);
189     }
190 
191     public void setUserUserGroups(long userId, long[] userGroupIds)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         _userGroupLocalService.setUserUserGroups(userId, userGroupIds);
195     }
196 
197     public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
198         throws com.liferay.portal.SystemException {
199         _userGroupLocalService.unsetGroupUserGroups(groupId, userGroupIds);
200     }
201 
202     public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
203         long userGroupId, java.lang.String name, java.lang.String description)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         return _userGroupLocalService.updateUserGroup(companyId, userGroupId,
207             name, description);
208     }
209 
210     public UserGroupLocalService getWrappedUserGroupLocalService() {
211         return _userGroupLocalService;
212     }
213 
214     private UserGroupLocalService _userGroupLocalService;
215 }