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.portlet.messageboards.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link MBBanService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see MBBanService
024     * @generated
025     */
026    public class MBBanServiceWrapper implements MBBanService,
027            ServiceWrapper<MBBanService> {
028            public MBBanServiceWrapper(MBBanService mbBanService) {
029                    _mbBanService = mbBanService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            @Override
038            public java.lang.String getBeanIdentifier() {
039                    return _mbBanService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            @Override
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _mbBanService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            @Override
053            public com.liferay.portlet.messageboards.model.MBBan addBan(
054                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return _mbBanService.addBan(banUserId, serviceContext);
058            }
059    
060            @Override
061            public void deleteBan(long banUserId,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _mbBanService.deleteBan(banUserId, serviceContext);
066            }
067    
068            /**
069             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
070             */
071            public MBBanService getWrappedMBBanService() {
072                    return _mbBanService;
073            }
074    
075            /**
076             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
077             */
078            public void setWrappedMBBanService(MBBanService mbBanService) {
079                    _mbBanService = mbBanService;
080            }
081    
082            @Override
083            public MBBanService getWrappedService() {
084                    return _mbBanService;
085            }
086    
087            @Override
088            public void setWrappedService(MBBanService mbBanService) {
089                    _mbBanService = mbBanService;
090            }
091    
092            private MBBanService _mbBanService;
093    }