001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBBanService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBBanService
026     * @generated
027     */
028    @ProviderType
029    public class MBBanServiceWrapper implements MBBanService,
030            ServiceWrapper<MBBanService> {
031            public MBBanServiceWrapper(MBBanService mbBanService) {
032                    _mbBanService = mbBanService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            @Override
041            public java.lang.String getBeanIdentifier() {
042                    return _mbBanService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            @Override
051            public void setBeanIdentifier(java.lang.String beanIdentifier) {
052                    _mbBanService.setBeanIdentifier(beanIdentifier);
053            }
054    
055            @Override
056            public com.liferay.portlet.messageboards.model.MBBan addBan(
057                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _mbBanService.addBan(banUserId, serviceContext);
061            }
062    
063            @Override
064            public void deleteBan(long banUserId,
065                    com.liferay.portal.service.ServiceContext serviceContext)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _mbBanService.deleteBan(banUserId, serviceContext);
069            }
070    
071            /**
072             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
073             */
074            public MBBanService getWrappedMBBanService() {
075                    return _mbBanService;
076            }
077    
078            /**
079             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
080             */
081            public void setWrappedMBBanService(MBBanService mbBanService) {
082                    _mbBanService = mbBanService;
083            }
084    
085            @Override
086            public MBBanService getWrappedService() {
087                    return _mbBanService;
088            }
089    
090            @Override
091            public void setWrappedService(MBBanService mbBanService) {
092                    _mbBanService = mbBanService;
093            }
094    
095            private MBBanService _mbBanService;
096    }