001    /**
002     * Copyright (c) 2000-2012 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     * <p>
019     * This class is a wrapper for {@link UserGroupService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupService
024     * @generated
025     */
026    public class UserGroupServiceWrapper implements UserGroupService,
027            ServiceWrapper<UserGroupService> {
028            public UserGroupServiceWrapper(UserGroupService userGroupService) {
029                    _userGroupService = userGroupService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            public java.lang.String getBeanIdentifier() {
038                    return _userGroupService.getBeanIdentifier();
039            }
040    
041            /**
042            * Sets the Spring bean ID for this bean.
043            *
044            * @param beanIdentifier the Spring bean ID for this bean
045            */
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _userGroupService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            /**
051            * Adds the user groups to the group.
052            *
053            * @param groupId the primary key of the group
054            * @param userGroupIds the primary keys of the user groups
055            * @throws PortalException if a group or user group with the primary key
056            could not be found, or if the user did not have permission to
057            assign group members
058            * @throws SystemException if a system exception occurred
059            */
060            public void addGroupUserGroups(long groupId, long[] userGroupIds)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    _userGroupService.addGroupUserGroups(groupId, userGroupIds);
064            }
065    
066            /**
067            * Adds the user groups to the team
068            *
069            * @param teamId the primary key of the team
070            * @param userGroupIds the primary keys of the user groups
071            * @throws PortalException if a team or user group with the primary key
072            could not be found, or if the user did not have permission to
073            assign team members
074            * @throws SystemException if a system exception occurred
075            */
076            public void addTeamUserGroups(long teamId, long[] userGroupIds)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _userGroupService.addTeamUserGroups(teamId, userGroupIds);
080            }
081    
082            /**
083            * Adds a user group.
084            *
085            * <p>
086            * This method handles the creation and bookkeeping of the user group,
087            * including its resources, metadata, and internal data structures.
088            * </p>
089            *
090            * @param name the user group's name
091            * @param description the user group's description
092            * @return the user group
093            * @throws PortalException if the user group's information was invalid
094            or if the user did not have permission to add the user group
095            * @throws SystemException if a system exception occurred
096            * @deprecated {@link #addUserGroup(String, String, serviceContext)}
097            */
098            public com.liferay.portal.model.UserGroup addUserGroup(
099                    java.lang.String name, java.lang.String description)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return _userGroupService.addUserGroup(name, description);
103            }
104    
105            /**
106            * Adds a user group.
107            *
108            * <p>
109            * This method handles the creation and bookkeeping of the user group,
110            * including its resources, metadata, and internal data structures.
111            * </p>
112            *
113            * @param name the user group's name
114            * @param description the user group's description
115            * @param serviceContext the user group's service context (optionally
116            <code>null</code>). Can set expando bridge attributes for the
117            user group.
118            * @return the user group
119            * @throws PortalException if the user group's information was invalid or if
120            the user did not have permission to add the user group
121            * @throws SystemException if a system exception occurred
122            */
123            public com.liferay.portal.model.UserGroup addUserGroup(
124                    java.lang.String name, java.lang.String description,
125                    com.liferay.portal.service.ServiceContext serviceContext)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    return _userGroupService.addUserGroup(name, description, serviceContext);
129            }
130    
131            /**
132            * Deletes the user group.
133            *
134            * @param userGroupId the primary key of the user group
135            * @throws PortalException if a user group with the primary key could not be
136            found, if the user did not have permission to delete the user
137            group, or if the user group had a workflow in approved status
138            * @throws SystemException if a system exception occurred
139            */
140            public void deleteUserGroup(long userGroupId)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    _userGroupService.deleteUserGroup(userGroupId);
144            }
145    
146            /**
147            * Returns the user group with the primary key.
148            *
149            * @param userGroupId the primary key of the user group
150            * @return Returns the user group with the primary key
151            * @throws PortalException if a user group with the primary key could not be
152            found or if the user did not have permission to view the user
153            group
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return _userGroupService.getUserGroup(userGroupId);
160            }
161    
162            /**
163            * Returns the user group with the name.
164            *
165            * @param name the user group's name
166            * @return Returns the user group with the name
167            * @throws PortalException if a user group with the name could not be found
168            or if the user did not have permission to view the user group
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portal.model.UserGroup getUserGroup(
172                    java.lang.String name)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _userGroupService.getUserGroup(name);
176            }
177    
178            /**
179            * Returns all the user groups to which the user belongs.
180            *
181            * @param userId the primary key of the user
182            * @return the user groups to which the user belongs
183            * @throws PortalException if the current user did not have permission to
184            view the user or any one of the user group members
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
188                    long userId)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    return _userGroupService.getUserUserGroups(userId);
192            }
193    
194            /**
195            * Removes the user groups from the group.
196            *
197            * @param groupId the primary key of the group
198            * @param userGroupIds the primary keys of the user groups
199            * @throws PortalException if the user did not have permission to assign
200            group members
201            * @throws SystemException if a system exception occurred
202            */
203            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
207            }
208    
209            /**
210            * Removes the user groups from the team.
211            *
212            * @param teamId the primary key of the team
213            * @param userGroupIds the primary keys of the user groups
214            * @throws PortalException if the user did not have permission to assign
215            team members
216            * @throws SystemException if a system exception occurred
217            */
218            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    _userGroupService.unsetTeamUserGroups(teamId, userGroupIds);
222            }
223    
224            /**
225            * Updates the user group.
226            *
227            * @param userGroupId the primary key of the user group
228            * @param name the user group's name
229            * @param description the the user group's description
230            * @return the user group
231            * @throws PortalException if a user group with the primary key was not
232            found, if the new information was invalid, or if the user did
233            not have permission to update the user group information
234            * @throws SystemException if a system exception occurred
235            * @deprecated {@link #updateUserGroup(long, String, String,
236            serviceContext)}
237            */
238            public com.liferay.portal.model.UserGroup updateUserGroup(
239                    long userGroupId, java.lang.String name, java.lang.String description)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _userGroupService.updateUserGroup(userGroupId, name, description);
243            }
244    
245            /**
246            * Updates the user group.
247            *
248            * @param userGroupId the primary key of the user group
249            * @param name the user group's name
250            * @param description the the user group's description
251            * @param serviceContext the user group's service context (optionally
252            <code>null</code>). Can set expando bridge attributes for the
253            user group.
254            * @return the user group
255            * @throws PortalException if a user group with the primary key was not
256            found, if the new information was invalid, or if the user did not
257            have permission to update the user group information
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portal.model.UserGroup updateUserGroup(
261                    long userGroupId, java.lang.String name, java.lang.String description,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _userGroupService.updateUserGroup(userGroupId, name,
266                            description, serviceContext);
267            }
268    
269            /**
270             * @deprecated Renamed to {@link #getWrappedService}
271             */
272            public UserGroupService getWrappedUserGroupService() {
273                    return _userGroupService;
274            }
275    
276            /**
277             * @deprecated Renamed to {@link #setWrappedService}
278             */
279            public void setWrappedUserGroupService(UserGroupService userGroupService) {
280                    _userGroupService = userGroupService;
281            }
282    
283            public UserGroupService getWrappedService() {
284                    return _userGroupService;
285            }
286    
287            public void setWrappedService(UserGroupService userGroupService) {
288                    _userGroupService = userGroupService;
289            }
290    
291            private UserGroupService _userGroupService;
292    }