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    /**
019     * <p>
020     * This class is a wrapper for {@link UserGroupService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       UserGroupService
025     * @generated
026     */
027    public class UserGroupServiceWrapper implements UserGroupService {
028            public UserGroupServiceWrapper(UserGroupService userGroupService) {
029                    _userGroupService = userGroupService;
030            }
031    
032            public void addGroupUserGroups(long groupId, long[] userGroupIds)
033                    throws com.liferay.portal.kernel.exception.PortalException,
034                            com.liferay.portal.kernel.exception.SystemException {
035                    _userGroupService.addGroupUserGroups(groupId, userGroupIds);
036            }
037    
038            public com.liferay.portal.model.UserGroup addUserGroup(
039                    java.lang.String name, java.lang.String description)
040                    throws com.liferay.portal.kernel.exception.PortalException,
041                            com.liferay.portal.kernel.exception.SystemException {
042                    return _userGroupService.addUserGroup(name, description);
043            }
044    
045            public void deleteUserGroup(long userGroupId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _userGroupService.deleteUserGroup(userGroupId);
049            }
050    
051            public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    return _userGroupService.getUserGroup(userGroupId);
055            }
056    
057            public com.liferay.portal.model.UserGroup getUserGroup(
058                    java.lang.String name)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _userGroupService.getUserGroup(name);
062            }
063    
064            public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
065                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
066                    return _userGroupService.getUserUserGroups(userId);
067            }
068    
069            public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    _userGroupService.unsetGroupUserGroups(groupId, userGroupIds);
073            }
074    
075            public com.liferay.portal.model.UserGroup updateUserGroup(
076                    long userGroupId, java.lang.String name, java.lang.String description)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return _userGroupService.updateUserGroup(userGroupId, name, description);
080            }
081    
082            public UserGroupService getWrappedUserGroupService() {
083                    return _userGroupService;
084            }
085    
086            private UserGroupService _userGroupService;
087    }