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