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