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="GroupLocalServiceUtil.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 GroupLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       GroupLocalService
32   * @generated
33   */
34  public class GroupLocalServiceWrapper implements GroupLocalService {
35      public GroupLocalServiceWrapper(GroupLocalService groupLocalService) {
36          _groupLocalService = groupLocalService;
37      }
38  
39      public com.liferay.portal.model.Group addGroup(
40          com.liferay.portal.model.Group group)
41          throws com.liferay.portal.kernel.exception.SystemException {
42          return _groupLocalService.addGroup(group);
43      }
44  
45      public com.liferay.portal.model.Group createGroup(long groupId) {
46          return _groupLocalService.createGroup(groupId);
47      }
48  
49      public void deleteGroup(long groupId)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          _groupLocalService.deleteGroup(groupId);
53      }
54  
55      public void deleteGroup(com.liferay.portal.model.Group group)
56          throws com.liferay.portal.kernel.exception.SystemException {
57          _groupLocalService.deleteGroup(group);
58      }
59  
60      public java.util.List<Object> dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.kernel.exception.SystemException {
63          return _groupLocalService.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.kernel.exception.SystemException {
69          return _groupLocalService.dynamicQuery(dynamicQuery, start, end);
70      }
71  
72      public com.liferay.portal.model.Group getGroup(long groupId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException {
75          return _groupLocalService.getGroup(groupId);
76      }
77  
78      public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
79          int end) throws com.liferay.portal.kernel.exception.SystemException {
80          return _groupLocalService.getGroups(start, end);
81      }
82  
83      public int getGroupsCount()
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _groupLocalService.getGroupsCount();
86      }
87  
88      public com.liferay.portal.model.Group updateGroup(
89          com.liferay.portal.model.Group group)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _groupLocalService.updateGroup(group);
92      }
93  
94      public com.liferay.portal.model.Group updateGroup(
95          com.liferay.portal.model.Group group, boolean merge)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _groupLocalService.updateGroup(group, merge);
98      }
99  
100     public com.liferay.portal.model.Group addGroup(long userId,
101         java.lang.String className, long classPK, java.lang.String name,
102         java.lang.String description, int type, java.lang.String friendlyURL,
103         boolean active, com.liferay.portal.service.ServiceContext serviceContext)
104         throws com.liferay.portal.kernel.exception.PortalException,
105             com.liferay.portal.kernel.exception.SystemException {
106         return _groupLocalService.addGroup(userId, className, classPK, name,
107             description, type, friendlyURL, active, serviceContext);
108     }
109 
110     public com.liferay.portal.model.Group addGroup(long userId,
111         java.lang.String className, long classPK, long liveGroupId,
112         java.lang.String name, java.lang.String description, int type,
113         java.lang.String friendlyURL, boolean active,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException {
117         return _groupLocalService.addGroup(userId, className, classPK,
118             liveGroupId, name, description, type, friendlyURL, active,
119             serviceContext);
120     }
121 
122     public void addRoleGroups(long roleId, long[] groupIds)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         _groupLocalService.addRoleGroups(roleId, groupIds);
125     }
126 
127     public void addUserGroups(long userId, long[] groupIds)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         _groupLocalService.addUserGroups(userId, groupIds);
130     }
131 
132     public void checkCompanyGroup(long companyId)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         _groupLocalService.checkCompanyGroup(companyId);
136     }
137 
138     public void checkSystemGroups(long companyId)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         _groupLocalService.checkSystemGroups(companyId);
142     }
143 
144     public com.liferay.portal.model.Group getCompanyGroup(long companyId)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return _groupLocalService.getCompanyGroup(companyId);
148     }
149 
150     public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
151         long companyId, int start, int end)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         return _groupLocalService.getCompanyGroups(companyId, start, end);
154     }
155 
156     public int getCompanyGroupsCount(long companyId)
157         throws com.liferay.portal.kernel.exception.SystemException {
158         return _groupLocalService.getCompanyGroupsCount(companyId);
159     }
160 
161     public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
162         java.lang.String friendlyURL)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL);
166     }
167 
168     public com.liferay.portal.model.Group getGroup(long companyId,
169         java.lang.String name)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         return _groupLocalService.getGroup(companyId, name);
173     }
174 
175     public java.util.List<com.liferay.portal.model.Group> getGroups(
176         long[] groupIds)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         return _groupLocalService.getGroups(groupIds);
180     }
181 
182     public com.liferay.portal.model.Group getLayoutGroup(long companyId,
183         long plid)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         return _groupLocalService.getLayoutGroup(companyId, plid);
187     }
188 
189     public com.liferay.portal.model.Group getLayoutPrototypeGroup(
190         long companyId, long layoutPrototypeId)
191         throws com.liferay.portal.kernel.exception.PortalException,
192             com.liferay.portal.kernel.exception.SystemException {
193         return _groupLocalService.getLayoutPrototypeGroup(companyId,
194             layoutPrototypeId);
195     }
196 
197     public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
198         long companyId, long layoutSetPrototypeId)
199         throws com.liferay.portal.kernel.exception.PortalException,
200             com.liferay.portal.kernel.exception.SystemException {
201         return _groupLocalService.getLayoutSetPrototypeGroup(companyId,
202             layoutSetPrototypeId);
203     }
204 
205     public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
206         java.lang.String className, boolean privateLayout, int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return _groupLocalService.getNoLayoutsGroups(className, privateLayout,
209             start, end);
210     }
211 
212     public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return _groupLocalService.getNullFriendlyURLGroups();
215     }
216 
217     public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
218         long organizationId)
219         throws com.liferay.portal.kernel.exception.PortalException,
220             com.liferay.portal.kernel.exception.SystemException {
221         return _groupLocalService.getOrganizationGroup(companyId, organizationId);
222     }
223 
224     public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
225         java.util.List<com.liferay.portal.model.Organization> organizations) {
226         return _groupLocalService.getOrganizationsGroups(organizations);
227     }
228 
229     public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
230         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
231         return _groupLocalService.getRoleGroups(roleId);
232     }
233 
234     public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
235         throws com.liferay.portal.kernel.exception.PortalException,
236             com.liferay.portal.kernel.exception.SystemException {
237         return _groupLocalService.getStagingGroup(liveGroupId);
238     }
239 
240     public com.liferay.portal.model.Group getUserGroup(long companyId,
241         long userId)
242         throws com.liferay.portal.kernel.exception.PortalException,
243             com.liferay.portal.kernel.exception.SystemException {
244         return _groupLocalService.getUserGroup(companyId, userId);
245     }
246 
247     public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
248         long userGroupId)
249         throws com.liferay.portal.kernel.exception.PortalException,
250             com.liferay.portal.kernel.exception.SystemException {
251         return _groupLocalService.getUserGroupGroup(companyId, userGroupId);
252     }
253 
254     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
255         long userId)
256         throws com.liferay.portal.kernel.exception.PortalException,
257             com.liferay.portal.kernel.exception.SystemException {
258         return _groupLocalService.getUserGroups(userId);
259     }
260 
261     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
262         long userId, boolean inherit)
263         throws com.liferay.portal.kernel.exception.PortalException,
264             com.liferay.portal.kernel.exception.SystemException {
265         return _groupLocalService.getUserGroups(userId, inherit);
266     }
267 
268     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
269         long userId, int start, int end)
270         throws com.liferay.portal.kernel.exception.PortalException,
271             com.liferay.portal.kernel.exception.SystemException {
272         return _groupLocalService.getUserGroups(userId, start, end);
273     }
274 
275     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
276         long userId, boolean inherit, int start, int end)
277         throws com.liferay.portal.kernel.exception.PortalException,
278             com.liferay.portal.kernel.exception.SystemException {
279         return _groupLocalService.getUserGroups(userId, inherit, start, end);
280     }
281 
282     public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
283         java.util.List<com.liferay.portal.model.UserGroup> userGroups) {
284         return _groupLocalService.getUserGroupsGroups(userGroups);
285     }
286 
287     public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
288         long userId, int start, int end)
289         throws com.liferay.portal.kernel.exception.PortalException,
290             com.liferay.portal.kernel.exception.SystemException {
291         return _groupLocalService.getUserOrganizationsGroups(userId, start, end);
292     }
293 
294     public boolean hasRoleGroup(long roleId, long groupId)
295         throws com.liferay.portal.kernel.exception.SystemException {
296         return _groupLocalService.hasRoleGroup(roleId, groupId);
297     }
298 
299     public boolean hasStagingGroup(long liveGroupId)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return _groupLocalService.hasStagingGroup(liveGroupId);
302     }
303 
304     public boolean hasUserGroup(long userId, long groupId)
305         throws com.liferay.portal.kernel.exception.SystemException {
306         return _groupLocalService.hasUserGroup(userId, groupId);
307     }
308 
309     public java.util.List<com.liferay.portal.model.Group> search(
310         long companyId, java.lang.String name, java.lang.String description,
311         java.util.LinkedHashMap<String, Object> params, int start, int end)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return _groupLocalService.search(companyId, name, description, params,
314             start, end);
315     }
316 
317     public java.util.List<com.liferay.portal.model.Group> search(
318         long companyId, java.lang.String name, java.lang.String description,
319         java.util.LinkedHashMap<String, Object> params, int start, int end,
320         com.liferay.portal.kernel.util.OrderByComparator obc)
321         throws com.liferay.portal.kernel.exception.SystemException {
322         return _groupLocalService.search(companyId, name, description, params,
323             start, end, obc);
324     }
325 
326     public int searchCount(long companyId, java.lang.String name,
327         java.lang.String description,
328         java.util.LinkedHashMap<String, Object> params)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         return _groupLocalService.searchCount(companyId, name, description,
331             params);
332     }
333 
334     public void setRoleGroups(long roleId, long[] groupIds)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         _groupLocalService.setRoleGroups(roleId, groupIds);
337     }
338 
339     public void unsetRoleGroups(long roleId, long[] groupIds)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         _groupLocalService.unsetRoleGroups(roleId, groupIds);
342     }
343 
344     public void unsetUserGroups(long userId, long[] groupIds)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         _groupLocalService.unsetUserGroups(userId, groupIds);
347     }
348 
349     public void updateAsset(long userId, com.liferay.portal.model.Group group,
350         long[] assetCategoryIds, java.lang.String[] assetTagNames)
351         throws com.liferay.portal.kernel.exception.PortalException,
352             com.liferay.portal.kernel.exception.SystemException {
353         _groupLocalService.updateAsset(userId, group, assetCategoryIds,
354             assetTagNames);
355     }
356 
357     public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
358         java.lang.String friendlyURL)
359         throws com.liferay.portal.kernel.exception.PortalException,
360             com.liferay.portal.kernel.exception.SystemException {
361         return _groupLocalService.updateFriendlyURL(groupId, friendlyURL);
362     }
363 
364     public com.liferay.portal.model.Group updateGroup(long groupId,
365         java.lang.String name, java.lang.String description, int type,
366         java.lang.String friendlyURL, boolean active,
367         com.liferay.portal.service.ServiceContext serviceContext)
368         throws com.liferay.portal.kernel.exception.PortalException,
369             com.liferay.portal.kernel.exception.SystemException {
370         return _groupLocalService.updateGroup(groupId, name, description, type,
371             friendlyURL, active, serviceContext);
372     }
373 
374     public com.liferay.portal.model.Group updateGroup(long groupId,
375         java.lang.String typeSettings)
376         throws com.liferay.portal.kernel.exception.PortalException,
377             com.liferay.portal.kernel.exception.SystemException {
378         return _groupLocalService.updateGroup(groupId, typeSettings);
379     }
380 
381     public com.liferay.portal.model.Group updateWorkflow(long groupId,
382         boolean workflowEnabled, int workflowStages,
383         java.lang.String workflowRoleNames)
384         throws com.liferay.portal.kernel.exception.PortalException,
385             com.liferay.portal.kernel.exception.SystemException {
386         return _groupLocalService.updateWorkflow(groupId, workflowEnabled,
387             workflowStages, workflowRoleNames);
388     }
389 
390     public GroupLocalService getWrappedGroupLocalService() {
391         return _groupLocalService;
392     }
393 
394     private GroupLocalService _groupLocalService;
395 }