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         return _groupService.getUserGroupsGroups(userGroups);
105     }
106 
107     public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
108         long userId, int start, int end)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return _groupService.getUserOrganizationsGroups(userId, start, end);
112     }
113 
114     public boolean hasUserGroup(long userId, long groupId)
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return _groupService.hasUserGroup(userId, groupId);
117     }
118 
119     public java.util.List<com.liferay.portal.model.Group> search(
120         long companyId, java.lang.String name, java.lang.String description,
121         java.lang.String[] params, int start, int end)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return _groupService.search(companyId, name, description, params,
124             start, end);
125     }
126 
127     public int searchCount(long companyId, java.lang.String name,
128         java.lang.String description, java.lang.String[] params)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return _groupService.searchCount(companyId, name, description, params);
131     }
132 
133     public void setRoleGroups(long roleId, long[] groupIds)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         _groupService.setRoleGroups(roleId, groupIds);
137     }
138 
139     public void unsetRoleGroups(long roleId, long[] groupIds)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         _groupService.unsetRoleGroups(roleId, groupIds);
143     }
144 
145     public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
146         java.lang.String friendlyURL)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         return _groupService.updateFriendlyURL(groupId, friendlyURL);
150     }
151 
152     public com.liferay.portal.model.Group updateGroup(long groupId,
153         java.lang.String name, java.lang.String description, int type,
154         java.lang.String friendlyURL, boolean active,
155         com.liferay.portal.service.ServiceContext serviceContext)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return _groupService.updateGroup(groupId, name, description, type,
159             friendlyURL, active, serviceContext);
160     }
161 
162     public com.liferay.portal.model.Group updateGroup(long groupId,
163         java.lang.String typeSettings)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException {
166         return _groupService.updateGroup(groupId, typeSettings);
167     }
168 
169     public com.liferay.portal.model.Group updateWorkflow(long groupId,
170         boolean workflowEnabled, int workflowStages,
171         java.lang.String workflowRoleNames)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException {
174         return _groupService.updateWorkflow(groupId, workflowEnabled,
175             workflowStages, workflowRoleNames);
176     }
177 
178     public GroupService getWrappedGroupService() {
179         return _groupService;
180     }
181 
182     private GroupService _groupService;
183 }