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 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 com.liferay.announcements.kernel.model.AnnouncementsFlag getFlag(
038                    long entryId, int value)
039                    throws com.liferay.portal.kernel.exception.PortalException {
040                    return _announcementsFlagService.getFlag(entryId, value);
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 _announcementsFlagService.getOSGiServiceIdentifier();
051            }
052    
053            @Override
054            public void addFlag(long entryId, int value)
055                    throws com.liferay.portal.kernel.exception.PortalException {
056                    _announcementsFlagService.addFlag(entryId, value);
057            }
058    
059            @Override
060            public void deleteFlag(long flagId)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    _announcementsFlagService.deleteFlag(flagId);
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    }