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.announcements.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 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            @Override
038            public com.liferay.announcements.kernel.model.AnnouncementsDelivery updateDelivery(
039                    long userId, java.lang.String type, boolean email, boolean sms,
040                    boolean website)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    return _announcementsDeliveryService.updateDelivery(userId, type,
043                            email, sms, website);
044            }
045    
046            /**
047            * Returns the OSGi service identifier.
048            *
049            * @return the OSGi service identifier
050            */
051            @Override
052            public java.lang.String getOSGiServiceIdentifier() {
053                    return _announcementsDeliveryService.getOSGiServiceIdentifier();
054            }
055    
056            @Override
057            public AnnouncementsDeliveryService getWrappedService() {
058                    return _announcementsDeliveryService;
059            }
060    
061            @Override
062            public void setWrappedService(
063                    AnnouncementsDeliveryService announcementsDeliveryService) {
064                    _announcementsDeliveryService = announcementsDeliveryService;
065            }
066    
067            private AnnouncementsDeliveryService _announcementsDeliveryService;
068    }