001    /**
002     * Copyright (c) 2000-present 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.kernel.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            * Adds the user groups to the group.
035            *
036            * @param groupId the primary key of the group
037            * @param userGroupIds the primary keys of the user groups
038            */
039            @Override
040            public void addGroupUserGroups(long groupId, long[] userGroupIds)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    _userGroupService.addGroupUserGroups(groupId, userGroupIds);
043            }
044    
045            /**
046            * Adds the user groups to the team
047            *
048            * @param teamId the primary key of the team
049            * @param userGroupIds the primary keys of the user groups
050            */
051            @Override
052            public void addTeamUserGroups(long teamId, long[] userGroupIds)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    _userGroupService.addTeamUserGroups(teamId, userGroupIds);
055            }
056    
057            /**
058            * Adds a user group.
059            *
060            * <p>
061            * This method handles the creation and bookkeeping of the user group,
062            * including its resources, metadata, and internal data structures.
063            * </p>
064            *
065            * @param name the user group's name
066            * @param description the user group's description
067            * @return the user group
068            * @deprecated As of 6.2.0, replaced by {@link #addUserGroup(String, String,
069            ServiceContext)}
070            */
071            @Deprecated
072            @Override
073            public com.liferay.portal.kernel.model.UserGroup addUserGroup(
074                    java.lang.String name, java.lang.String description)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return _userGroupService.addUserGroup(name, description);
077            }
078    
079            /**
080            * Adds a user group.
081            *
082            * <p>
083            * This method handles the creation and bookkeeping of the user group,
084            * including its resources, metadata, and internal data structures.
085            * </p>
086            *
087            * @param name the user group's name
088            * @param description the user group's description
089            * @param serviceContext the service context to be applied (optionally
090            <code>null</code>). Can set expando bridge attributes for the
091            user group.
092            * @return the user group
093            */
094            @Override
095            public com.liferay.portal.kernel.model.UserGroup addUserGroup(
096                    java.lang.String name, java.lang.String description,
097                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _userGroupService.addUserGroup(name, description, serviceContext);
100            }
101    
102            /**
103            * Deletes the user group.
104            *
105            * @param userGroupId the primary key of the user group
106            */
107            @Override
108            public void deleteUserGroup(long userGroupId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    _userGroupService.deleteUserGroup(userGroupId);
111            }
112    
113            /**
114            * Fetches the user group with the primary key.
115            *
116            * @param userGroupId the primary key of the user group
117            * @return the user group with the primary key
118            */
119            @Override
120            public com.liferay.portal.kernel.model.UserGroup fetchUserGroup(
121                    long userGroupId)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _userGroupService.fetchUserGroup(userGroupId);
124            }
125    
126            /**
127            * Returns the OSGi service identifier.
128            *
129            * @return the OSGi service identifier
130            */
131            @Override
132            public java.lang.String getOSGiServiceIdentifier() {
133                    return _userGroupService.getOSGiServiceIdentifier();
134            }
135    
136            /**
137            * Returns the user group with the name.
138            *
139            * @param name the user group's name
140            * @return the user group with the name
141            */
142            @Override
143            public com.liferay.portal.kernel.model.UserGroup getUserGroup(
144                    java.lang.String name)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    return _userGroupService.getUserGroup(name);
147            }
148    
149            /**
150            * Returns the user group with the primary key.
151            *
152            * @param userGroupId the primary key of the user group
153            * @return the user group with the primary key
154            */
155            @Override
156            public com.liferay.portal.kernel.model.UserGroup getUserGroup(
157                    long userGroupId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    return _userGroupService.getUserGroup(userGroupId);
160            }
161    
162            @Override
163            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(
164                    long companyId)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    return _userGroupService.getUserGroups(companyId);
167            }
168    
169            /**
170            * Returns all the user groups to which the user belongs.
171            *
172            * @param userId the primary key of the user
173            * @return the user groups to which the user belongs
174            */
175            @Override
176            public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
177                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
178                    return _userGroupService.getUserUserGroups(userId);
179            }
180    
181            /**
182            * Removes the user groups from the group.
183            *
184            * @param groupId the primary key of the group
185            * @param userGroupIds the primary keys of the user groups
186            */
187            @Override
188            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
189                    throws com.liferay.portal.kernel.exception.PortalException {
190                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
191            }
192    
193            /**
194            * Removes the user groups from the team.
195            *
196            * @param teamId the primary key of the team
197            * @param userGroupIds the primary keys of the user groups
198            */
199            @Override
200            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
201                    throws com.liferay.portal.kernel.exception.PortalException {
202                    _userGroupService.unsetTeamUserGroups(teamId, userGroupIds);
203            }
204    
205            /**
206            * Updates the user group.
207            *
208            * @param userGroupId the primary key of the user group
209            * @param name the user group's name
210            * @param description the the user group's description
211            * @return the user group
212            * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long,
213            String, String, ServiceContext)}
214            */
215            @Deprecated
216            @Override
217            public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
218                    long userGroupId, java.lang.String name, java.lang.String description)
219                    throws com.liferay.portal.kernel.exception.PortalException {
220                    return _userGroupService.updateUserGroup(userGroupId, name, description);
221            }
222    
223            /**
224            * Updates the user group.
225            *
226            * @param userGroupId the primary key of the user group
227            * @param name the user group's name
228            * @param description the the user group's description
229            * @param serviceContext the service context to be applied (optionally
230            <code>null</code>). Can set expando bridge attributes for the
231            user group.
232            * @return the user group
233            */
234            @Override
235            public com.liferay.portal.kernel.model.UserGroup updateUserGroup(
236                    long userGroupId, java.lang.String name, java.lang.String description,
237                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
238                    throws com.liferay.portal.kernel.exception.PortalException {
239                    return _userGroupService.updateUserGroup(userGroupId, name,
240                            description, serviceContext);
241            }
242    
243            @Override
244            public UserGroupService getWrappedService() {
245                    return _userGroupService;
246            }
247    
248            @Override
249            public void setWrappedService(UserGroupService userGroupService) {
250                    _userGroupService = userGroupService;
251            }
252    
253            private UserGroupService _userGroupService;
254    }