001    /**
002     * Copyright (c) 2000-2013 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            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            @Override
040            public java.lang.String getBeanIdentifier() {
041                    return _userGroupRoleService.getBeanIdentifier();
042            }
043    
044            /**
045            * Sets the Spring bean ID for this bean.
046            *
047            * @param beanIdentifier the Spring bean ID for this bean
048            */
049            @Override
050            public void setBeanIdentifier(java.lang.String beanIdentifier) {
051                    _userGroupRoleService.setBeanIdentifier(beanIdentifier);
052            }
053    
054            @Override
055            public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    _userGroupRoleService.addUserGroupRoles(userId, groupId, roleIds);
059            }
060    
061            @Override
062            public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _userGroupRoleService.addUserGroupRoles(userIds, groupId, roleId);
066            }
067    
068            @Override
069            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    _userGroupRoleService.deleteUserGroupRoles(userId, groupId, roleIds);
073            }
074    
075            @Override
076            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _userGroupRoleService.deleteUserGroupRoles(userIds, groupId, roleId);
080            }
081    
082            /**
083             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
084             */
085            public UserGroupRoleService getWrappedUserGroupRoleService() {
086                    return _userGroupRoleService;
087            }
088    
089            /**
090             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
091             */
092            public void setWrappedUserGroupRoleService(
093                    UserGroupRoleService userGroupRoleService) {
094                    _userGroupRoleService = userGroupRoleService;
095            }
096    
097            @Override
098            public UserGroupRoleService getWrappedService() {
099                    return _userGroupRoleService;
100            }
101    
102            @Override
103            public void setWrappedService(UserGroupRoleService userGroupRoleService) {
104                    _userGroupRoleService = userGroupRoleService;
105            }
106    
107            private UserGroupRoleService _userGroupRoleService;
108    }