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