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 UserGroupRoleService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see UserGroupRoleService
024     * @generated
025     */
026    @ProviderType
027    public class UserGroupRoleServiceWrapper implements UserGroupRoleService,
028            ServiceWrapper<UserGroupRoleService> {
029            public UserGroupRoleServiceWrapper(
030                    UserGroupRoleService userGroupRoleService) {
031                    _userGroupRoleService = userGroupRoleService;
032            }
033    
034            @Override
035            public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
036                    throws com.liferay.portal.kernel.exception.PortalException {
037                    _userGroupRoleService.addUserGroupRoles(userId, groupId, roleIds);
038            }
039    
040            @Override
041            public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
042                    throws com.liferay.portal.kernel.exception.PortalException {
043                    _userGroupRoleService.addUserGroupRoles(userIds, groupId, roleId);
044            }
045    
046            @Override
047            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    _userGroupRoleService.deleteUserGroupRoles(userId, groupId, roleIds);
050            }
051    
052            @Override
053            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    _userGroupRoleService.deleteUserGroupRoles(userIds, groupId, roleId);
056            }
057    
058            /**
059            * Returns the OSGi service identifier.
060            *
061            * @return the OSGi service identifier
062            */
063            @Override
064            public java.lang.String getOSGiServiceIdentifier() {
065                    return _userGroupRoleService.getOSGiServiceIdentifier();
066            }
067    
068            /**
069             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
070             */
071            @Deprecated
072            public UserGroupRoleService getWrappedUserGroupRoleService() {
073                    return _userGroupRoleService;
074            }
075    
076            /**
077             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
078             */
079            @Deprecated
080            public void setWrappedUserGroupRoleService(
081                    UserGroupRoleService userGroupRoleService) {
082                    _userGroupRoleService = userGroupRoleService;
083            }
084    
085            @Override
086            public UserGroupRoleService getWrappedService() {
087                    return _userGroupRoleService;
088            }
089    
090            @Override
091            public void setWrappedService(UserGroupRoleService userGroupRoleService) {
092                    _userGroupRoleService = userGroupRoleService;
093            }
094    
095            private UserGroupRoleService _userGroupRoleService;
096    }