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