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