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)
42          throws com.liferay.portal.PortalException,
43              com.liferay.portal.SystemException, java.rmi.RemoteException {
44          return _groupService.addGroup(name, description, type, friendlyURL,
45              active);
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          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException, java.rmi.RemoteException {
53          return _groupService.addGroup(liveGroupId, name, description, type,
54              friendlyURL, active);
55      }
56  
57      public void addRoleGroups(long roleId, long[] groupIds)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException, java.rmi.RemoteException {
60          _groupService.addRoleGroups(roleId, groupIds);
61      }
62  
63      public void deleteGroup(long groupId)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException, java.rmi.RemoteException {
66          _groupService.deleteGroup(groupId);
67      }
68  
69      public com.liferay.portal.model.Group getGroup(long groupId)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException, java.rmi.RemoteException {
72          return _groupService.getGroup(groupId);
73      }
74  
75      public com.liferay.portal.model.Group getGroup(long companyId,
76          java.lang.String name)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException, java.rmi.RemoteException {
79          return _groupService.getGroup(companyId, name);
80      }
81  
82      public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
83          java.util.List<com.liferay.portal.model.Organization> organizations)
84          throws java.rmi.RemoteException {
85          return _groupService.getOrganizationsGroups(organizations);
86      }
87  
88      public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
89          java.util.List<com.liferay.portal.model.UserGroup> userGroups)
90          throws java.rmi.RemoteException {
91          return _groupService.getUserGroupsGroups(userGroups);
92      }
93  
94      public boolean hasUserGroup(long userId, long groupId)
95          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
96          return _groupService.hasUserGroup(userId, groupId);
97      }
98  
99      public java.util.List<com.liferay.portal.model.Group> search(
100         long companyId, java.lang.String name, java.lang.String description,
101         java.lang.String[] params, int start, int end)
102         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
103         return _groupService.search(companyId, name, description, params,
104             start, end);
105     }
106 
107     public int searchCount(long companyId, java.lang.String name,
108         java.lang.String description, java.lang.String[] params)
109         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
110         return _groupService.searchCount(companyId, name, description, params);
111     }
112 
113     public void setRoleGroups(long roleId, long[] groupIds)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException, java.rmi.RemoteException {
116         _groupService.setRoleGroups(roleId, groupIds);
117     }
118 
119     public void unsetRoleGroups(long roleId, long[] groupIds)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException, java.rmi.RemoteException {
122         _groupService.unsetRoleGroups(roleId, groupIds);
123     }
124 
125     public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
126         java.lang.String friendlyURL)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException, java.rmi.RemoteException {
129         return _groupService.updateFriendlyURL(groupId, friendlyURL);
130     }
131 
132     public com.liferay.portal.model.Group updateGroup(long groupId,
133         java.lang.String name, java.lang.String description, int type,
134         java.lang.String friendlyURL, boolean active)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException, java.rmi.RemoteException {
137         return _groupService.updateGroup(groupId, name, description, type,
138             friendlyURL, active);
139     }
140 
141     public com.liferay.portal.model.Group updateGroup(long groupId,
142         java.lang.String typeSettings)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException, java.rmi.RemoteException {
145         return _groupService.updateGroup(groupId, typeSettings);
146     }
147 
148     public com.liferay.portal.model.Group updateWorkflow(long groupId,
149         boolean workflowEnabled, int workflowStages,
150         java.lang.String workflowRoleNames)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException, java.rmi.RemoteException {
153         return _groupService.updateWorkflow(groupId, workflowEnabled,
154             workflowStages, workflowRoleNames);
155     }
156 
157     public GroupService getWrappedGroupService() {
158         return _groupService;
159     }
160 
161     private GroupService _groupService;
162 }