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.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 AnnouncementsFlagService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AnnouncementsFlagService
026     * @generated
027     */
028    @ProviderType
029    public class AnnouncementsFlagServiceWrapper implements AnnouncementsFlagService,
030            ServiceWrapper<AnnouncementsFlagService> {
031            public AnnouncementsFlagServiceWrapper(
032                    AnnouncementsFlagService announcementsFlagService) {
033                    _announcementsFlagService = announcementsFlagService;
034            }
035    
036            @Override
037            public void addFlag(long entryId, int value)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    _announcementsFlagService.addFlag(entryId, value);
040            }
041    
042            @Override
043            public void deleteFlag(long flagId)
044                    throws com.liferay.portal.kernel.exception.PortalException {
045                    _announcementsFlagService.deleteFlag(flagId);
046            }
047    
048            @Override
049            public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag(
050                    long entryId, int value)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    return _announcementsFlagService.getFlag(entryId, value);
053            }
054    
055            /**
056            * Returns the OSGi service identifier.
057            *
058            * @return the OSGi service identifier
059            */
060            @Override
061            public java.lang.String getOSGiServiceIdentifier() {
062                    return _announcementsFlagService.getOSGiServiceIdentifier();
063            }
064    
065            @Override
066            public AnnouncementsFlagService getWrappedService() {
067                    return _announcementsFlagService;
068            }
069    
070            @Override
071            public void setWrappedService(
072                    AnnouncementsFlagService announcementsFlagService) {
073                    _announcementsFlagService = announcementsFlagService;
074            }
075    
076            private AnnouncementsFlagService _announcementsFlagService;
077    }