001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroupService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupService
024     * @generated
025     */
026    public class UserGroupServiceWrapper implements UserGroupService {
027            public UserGroupServiceWrapper(UserGroupService userGroupService) {
028                    _userGroupService = userGroupService;
029            }
030    
031            public void addGroupUserGroups(long groupId, long[] userGroupIds)
032                    throws com.liferay.portal.kernel.exception.PortalException,
033                            com.liferay.portal.kernel.exception.SystemException {
034                    _userGroupService.addGroupUserGroups(groupId, userGroupIds);
035            }
036    
037            public void addTeamUserGroups(long teamId, long[] userGroupIds)
038                    throws com.liferay.portal.kernel.exception.PortalException,
039                            com.liferay.portal.kernel.exception.SystemException {
040                    _userGroupService.addTeamUserGroups(teamId, userGroupIds);
041            }
042    
043            public com.liferay.portal.model.UserGroup addUserGroup(
044                    java.lang.String name, java.lang.String description)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return _userGroupService.addUserGroup(name, description);
048            }
049    
050            public void deleteUserGroup(long userGroupId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    _userGroupService.deleteUserGroup(userGroupId);
054            }
055    
056            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return _userGroupService.getUserGroup(userGroupId);
060            }
061    
062            public com.liferay.portal.model.UserGroup getUserGroup(
063                    java.lang.String name)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _userGroupService.getUserGroup(name);
067            }
068    
069            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
070                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
071                    return _userGroupService.getUserUserGroups(userId);
072            }
073    
074            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
078            }
079    
080            public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    _userGroupService.unsetTeamUserGroups(teamId, userGroupIds);
084            }
085    
086            public com.liferay.portal.model.UserGroup updateUserGroup(
087                    long userGroupId, java.lang.String name, java.lang.String description)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _userGroupService.updateUserGroup(userGroupId, name, description);
091            }
092    
093            public UserGroupService getWrappedUserGroupService() {
094                    return _userGroupService;
095            }
096    
097            public void setWrappedUserGroupService(UserGroupService userGroupService) {
098                    _userGroupService = userGroupService;
099            }
100    
101            private UserGroupService _userGroupService;
102    }