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.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.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.model.UserGroup addUserGroup(
096                    java.lang.String name, java.lang.String description,
097                    com.liferay.portal.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.model.UserGroup fetchUserGroup(long userGroupId)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    return _userGroupService.fetchUserGroup(userGroupId);
123            }
124    
125            /**
126            * Returns the OSGi service identifier.
127            *
128            * @return the OSGi service identifier
129            */
130            @Override
131            public java.lang.String getOSGiServiceIdentifier() {
132                    return _userGroupService.getOSGiServiceIdentifier();
133            }
134    
135            /**
136            * Returns the user group with the name.
137            *
138            * @param name the user group's name
139            * @return the user group with the name
140            */
141            @Override
142            public com.liferay.portal.model.UserGroup getUserGroup(
143                    java.lang.String name)
144                    throws com.liferay.portal.kernel.exception.PortalException {
145                    return _userGroupService.getUserGroup(name);
146            }
147    
148            /**
149            * Returns the user group with the primary key.
150            *
151            * @param userGroupId the primary key of the user group
152            * @return the user group with the primary key
153            */
154            @Override
155            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
156                    throws com.liferay.portal.kernel.exception.PortalException {
157                    return _userGroupService.getUserGroup(userGroupId);
158            }
159    
160            @Override
161            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
162                    long companyId)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return _userGroupService.getUserGroups(companyId);
165            }
166    
167            /**
168            * Returns all the user groups to which the user belongs.
169            *
170            * @param userId the primary key of the user
171            * @return the user groups to which the user belongs
172            */
173            @Override
174            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
175                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
176                    return _userGroupService.getUserUserGroups(userId);
177            }
178    
179            /**
180            * Removes the user groups from the group.
181            *
182            * @param groupId the primary key of the group
183            * @param userGroupIds the primary keys of the user groups
184            */
185            @Override
186            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
187                    throws com.liferay.portal.kernel.exception.PortalException {
188                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
189            }
190    
191            /**
192            * Removes the user groups from the team.
193            *
194            * @param teamId the primary key of the team
195            * @param userGroupIds the primary keys of the user groups
196            */
197            @Override
198            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
199                    throws com.liferay.portal.kernel.exception.PortalException {
200                    _userGroupService.unsetTeamUserGroups(teamId, userGroupIds);
201            }
202    
203            /**
204            * Updates the user group.
205            *
206            * @param userGroupId the primary key of the user group
207            * @param name the user group's name
208            * @param description the the user group's description
209            * @return the user group
210            * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long,
211            String, String, ServiceContext)}
212            */
213            @Deprecated
214            @Override
215            public com.liferay.portal.model.UserGroup updateUserGroup(
216                    long userGroupId, java.lang.String name, java.lang.String description)
217                    throws com.liferay.portal.kernel.exception.PortalException {
218                    return _userGroupService.updateUserGroup(userGroupId, name, description);
219            }
220    
221            /**
222            * Updates the user group.
223            *
224            * @param userGroupId the primary key of the user group
225            * @param name the user group's name
226            * @param description the the user group's description
227            * @param serviceContext the service context to be applied (optionally
228            <code>null</code>). Can set expando bridge attributes for the
229            user group.
230            * @return the user group
231            */
232            @Override
233            public com.liferay.portal.model.UserGroup updateUserGroup(
234                    long userGroupId, java.lang.String name, java.lang.String description,
235                    com.liferay.portal.service.ServiceContext serviceContext)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _userGroupService.updateUserGroup(userGroupId, name,
238                            description, serviceContext);
239            }
240    
241            @Override
242            public UserGroupService getWrappedService() {
243                    return _userGroupService;
244            }
245    
246            @Override
247            public void setWrappedService(UserGroupService userGroupService) {
248                    _userGroupService = userGroupService;
249            }
250    
251            private UserGroupService _userGroupService;
252    }