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