001    /**
002     * Copyright (c) 2000-2010 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    /**
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 com.liferay.portal.model.UserGroup addUserGroup(
038                    java.lang.String name, java.lang.String description)
039                    throws com.liferay.portal.kernel.exception.PortalException,
040                            com.liferay.portal.kernel.exception.SystemException {
041                    return _userGroupService.addUserGroup(name, description);
042            }
043    
044            public void deleteUserGroup(long userGroupId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _userGroupService.deleteUserGroup(userGroupId);
048            }
049    
050            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    return _userGroupService.getUserGroup(userGroupId);
054            }
055    
056            public com.liferay.portal.model.UserGroup getUserGroup(
057                    java.lang.String name)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _userGroupService.getUserGroup(name);
061            }
062    
063            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
064                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
065                    return _userGroupService.getUserUserGroups(userId);
066            }
067    
068            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
072            }
073    
074            public com.liferay.portal.model.UserGroup updateUserGroup(
075                    long userGroupId, java.lang.String name, java.lang.String description)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return _userGroupService.updateUserGroup(userGroupId, name, description);
079            }
080    
081            public UserGroupService getWrappedUserGroupService() {
082                    return _userGroupService;
083            }
084    
085            private UserGroupService _userGroupService;
086    }