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.kernel.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            /**
035            * Returns the OSGi service identifier.
036            *
037            * @return the OSGi service identifier
038            */
039            @Override
040            public java.lang.String getOSGiServiceIdentifier() {
041                    return _userGroupRoleService.getOSGiServiceIdentifier();
042            }
043    
044            @Override
045            public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    _userGroupRoleService.addUserGroupRoles(userId, groupId, roleIds);
048            }
049    
050            @Override
051            public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
052                    throws com.liferay.portal.kernel.exception.PortalException {
053                    _userGroupRoleService.addUserGroupRoles(userIds, groupId, roleId);
054            }
055    
056            @Override
057            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    _userGroupRoleService.deleteUserGroupRoles(userId, groupId, roleIds);
060            }
061    
062            @Override
063            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    _userGroupRoleService.deleteUserGroupRoles(userIds, groupId, roleId);
066            }
067    
068            @Override
069            public void updateUserGroupRoles(long userId, long groupId,
070                    long[] addedRoleIds, long[] deletedRoleIds)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    _userGroupRoleService.updateUserGroupRoles(userId, groupId,
073                            addedRoleIds, deletedRoleIds);
074            }
075    
076            @Override
077            public UserGroupRoleService getWrappedService() {
078                    return _userGroupRoleService;
079            }
080    
081            @Override
082            public void setWrappedService(UserGroupRoleService userGroupRoleService) {
083                    _userGroupRoleService = userGroupRoleService;
084            }
085    
086            private UserGroupRoleService _userGroupRoleService;
087    }