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="GroupServiceUtil.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 GroupService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       GroupService
32   * @generated
33   */
34  public class GroupServiceWrapper implements GroupService {
35      public GroupServiceWrapper(GroupService groupService) {
36          _groupService = groupService;
37      }
38  
39      public com.liferay.portal.model.Group addGroup(java.lang.String name,
40          java.lang.String description, int type, java.lang.String friendlyURL,
41          boolean active, com.liferay.portal.service.ServiceContext serviceContext)
42          throws com.liferay.portal.kernel.exception.PortalException,
43              com.liferay.portal.kernel.exception.SystemException {
44          return _groupService.addGroup(name, description, type, friendlyURL,
45              active, serviceContext);
46      }
47  
48      public com.liferay.portal.model.Group addGroup(long liveGroupId,
49          java.lang.String name, java.lang.String description, int type,
50          java.lang.String friendlyURL, boolean active,
51          com.liferay.portal.service.ServiceContext serviceContext)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          return _groupService.addGroup(liveGroupId, name, description, type,
55              friendlyURL, active, serviceContext);
56      }
57  
58      public void addRoleGroups(long roleId, long[] groupIds)
59          throws com.liferay.portal.kernel.exception.PortalException,
60              com.liferay.portal.kernel.exception.SystemException {
61          _groupService.addRoleGroups(roleId, groupIds);
62      }
63  
64      public void deleteGroup(long groupId)
65          throws com.liferay.portal.kernel.exception.PortalException,
66              com.liferay.portal.kernel.exception.SystemException {
67          _groupService.deleteGroup(groupId);
68      }
69  
70      public com.liferay.portal.model.Group getGroup(long groupId)
71          throws com.liferay.portal.kernel.exception.PortalException,
72              com.liferay.portal.kernel.exception.SystemException {
73          return _groupService.getGroup(groupId);
74      }
75  
76      public com.liferay.portal.model.Group getGroup(long companyId,
77          java.lang.String name)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException {
80          return _groupService.getGroup(companyId, name);
81      }
82  
83      public java.util.List<com.liferay.portal.model.Group> getManageableGroups(
84          java.lang.String actionId, int max)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException {
87          return _groupService.getManageableGroups(actionId, max);
88      }
89  
90      public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
91          java.util.List<com.liferay.portal.model.Organization> organizations) {
92          return _groupService.getOrganizationsGroups(organizations);
93      }
94  
95      public com.liferay.portal.model.Group getUserGroup(long companyId,
96          long userId)
97          throws com.liferay.portal.kernel.exception.PortalException,
98              com.liferay.portal.kernel.exception.SystemException {
99          return _groupService.getUserGroup(companyId, userId);
100     }
101 
102     public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
103         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
104         throws com.liferay.portal.kernel.exception.PortalException,
105             com.liferay.portal.kernel.exception.SystemException {
106         return _groupService.getUserGroupsGroups(userGroups);
107     }
108 
109     public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
110         long userId, int start, int end)
111         throws com.liferay.portal.kernel.exception.PortalException,
112             com.liferay.portal.kernel.exception.SystemException {
113         return _groupService.getUserOrganizationsGroups(userId, start, end);
114     }
115 
116     public boolean hasUserGroup(long userId, long groupId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return _groupService.hasUserGroup(userId, groupId);
119     }
120 
121     public java.util.List<com.liferay.portal.model.Group> search(
122         long companyId, java.lang.String name, java.lang.String description,
123         java.lang.String[] params, int start, int end)
124         throws com.liferay.portal.kernel.exception.SystemException {
125         return _groupService.search(companyId, name, description, params,
126             start, end);
127     }
128 
129     public int searchCount(long companyId, java.lang.String name,
130         java.lang.String description, java.lang.String[] params)
131         throws com.liferay.portal.kernel.exception.SystemException {
132         return _groupService.searchCount(companyId, name, description, params);
133     }
134 
135     public void setRoleGroups(long roleId, long[] groupIds)
136         throws com.liferay.portal.kernel.exception.PortalException,
137             com.liferay.portal.kernel.exception.SystemException {
138         _groupService.setRoleGroups(roleId, groupIds);
139     }
140 
141     public void unsetRoleGroups(long roleId, long[] groupIds)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         _groupService.unsetRoleGroups(roleId, groupIds);
145     }
146 
147     public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
148         java.lang.String friendlyURL)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         return _groupService.updateFriendlyURL(groupId, friendlyURL);
152     }
153 
154     public com.liferay.portal.model.Group updateGroup(long groupId,
155         java.lang.String name, java.lang.String description, int type,
156         java.lang.String friendlyURL, boolean active,
157         com.liferay.portal.service.ServiceContext serviceContext)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         return _groupService.updateGroup(groupId, name, description, type,
161             friendlyURL, active, serviceContext);
162     }
163 
164     public com.liferay.portal.model.Group updateGroup(long groupId,
165         java.lang.String typeSettings)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException {
168         return _groupService.updateGroup(groupId, typeSettings);
169     }
170 
171     public com.liferay.portal.model.Group updateWorkflow(long groupId,
172         boolean workflowEnabled, int workflowStages,
173         java.lang.String workflowRoleNames)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         return _groupService.updateWorkflow(groupId, workflowEnabled,
177             workflowStages, workflowRoleNames);
178     }
179 
180     public GroupService getWrappedGroupService() {
181         return _groupService;
182     }
183 
184     private GroupService _groupService;
185 }