001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link GroupService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       GroupService
025     * @generated
026     */
027    public class GroupServiceWrapper implements GroupService {
028            public GroupServiceWrapper(GroupService groupService) {
029                    _groupService = groupService;
030            }
031    
032            public com.liferay.portal.model.Group addGroup(java.lang.String name,
033                    java.lang.String description, int type, java.lang.String friendlyURL,
034                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return _groupService.addGroup(name, description, type, friendlyURL,
038                            active, serviceContext);
039            }
040    
041            public com.liferay.portal.model.Group addGroup(long liveGroupId,
042                    java.lang.String name, java.lang.String description, int type,
043                    java.lang.String friendlyURL, boolean active,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return _groupService.addGroup(liveGroupId, name, description, type,
048                            friendlyURL, active, serviceContext);
049            }
050    
051            public void addRoleGroups(long roleId, long[] groupIds)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    _groupService.addRoleGroups(roleId, groupIds);
055            }
056    
057            public void deleteGroup(long groupId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    _groupService.deleteGroup(groupId);
061            }
062    
063            public com.liferay.portal.model.Group getGroup(long groupId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _groupService.getGroup(groupId);
067            }
068    
069            public com.liferay.portal.model.Group getGroup(long companyId,
070                    java.lang.String name)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _groupService.getGroup(companyId, name);
074            }
075    
076            public java.util.List<com.liferay.portal.model.Group> getManageableGroups(
077                    java.lang.String actionId, int max)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return _groupService.getManageableGroups(actionId, max);
081            }
082    
083            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
084                    java.util.List<com.liferay.portal.model.Organization> organizations) {
085                    return _groupService.getOrganizationsGroups(organizations);
086            }
087    
088            public com.liferay.portal.model.Group getUserGroup(long companyId,
089                    long userId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _groupService.getUserGroup(companyId, userId);
093            }
094    
095            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
096                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return _groupService.getUserGroupsGroups(userGroups);
100            }
101    
102            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
103                    long userId, int start, int end)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return _groupService.getUserOrganizationsGroups(userId, start, end);
107            }
108    
109            public boolean hasUserGroup(long userId, long groupId)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return _groupService.hasUserGroup(userId, groupId);
112            }
113    
114            public java.util.List<com.liferay.portal.model.Group> search(
115                    long companyId, java.lang.String name, java.lang.String description,
116                    java.lang.String[] params, int start, int end)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return _groupService.search(companyId, name, description, params,
119                            start, end);
120            }
121    
122            public int searchCount(long companyId, java.lang.String name,
123                    java.lang.String description, java.lang.String[] params)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return _groupService.searchCount(companyId, name, description, params);
126            }
127    
128            public void setRoleGroups(long roleId, long[] groupIds)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    _groupService.setRoleGroups(roleId, groupIds);
132            }
133    
134            public void unsetRoleGroups(long roleId, long[] groupIds)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException {
137                    _groupService.unsetRoleGroups(roleId, groupIds);
138            }
139    
140            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
141                    java.lang.String friendlyURL)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    return _groupService.updateFriendlyURL(groupId, friendlyURL);
145            }
146    
147            public com.liferay.portal.model.Group updateGroup(long groupId,
148                    java.lang.String name, java.lang.String description, int type,
149                    java.lang.String friendlyURL, boolean active,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return _groupService.updateGroup(groupId, name, description, type,
154                            friendlyURL, active, serviceContext);
155            }
156    
157            public com.liferay.portal.model.Group updateGroup(long groupId,
158                    java.lang.String typeSettings)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return _groupService.updateGroup(groupId, typeSettings);
162            }
163    
164            public com.liferay.portal.model.Group updateWorkflow(long groupId,
165                    boolean workflowEnabled, int workflowStages,
166                    java.lang.String workflowRoleNames)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _groupService.updateWorkflow(groupId, workflowEnabled,
170                            workflowStages, workflowRoleNames);
171            }
172    
173            public GroupService getWrappedGroupService() {
174                    return _groupService;
175            }
176    
177            private GroupService _groupService;
178    }