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.message.boards.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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            @Override
036            public com.liferay.message.boards.kernel.model.MBBan addBan(
037                    long banUserId,
038                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
039                    throws com.liferay.portal.kernel.exception.PortalException {
040                    return _mbBanService.addBan(banUserId, serviceContext);
041            }
042    
043            /**
044            * Returns the OSGi service identifier.
045            *
046            * @return the OSGi service identifier
047            */
048            @Override
049            public java.lang.String getOSGiServiceIdentifier() {
050                    return _mbBanService.getOSGiServiceIdentifier();
051            }
052    
053            @Override
054            public void deleteBan(long banUserId,
055                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    _mbBanService.deleteBan(banUserId, serviceContext);
058            }
059    
060            @Override
061            public MBBanService getWrappedService() {
062                    return _mbBanService;
063            }
064    
065            @Override
066            public void setWrappedService(MBBanService mbBanService) {
067                    _mbBanService = mbBanService;
068            }
069    
070            private MBBanService _mbBanService;
071    }