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 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            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            @Override
042            public java.lang.String getBeanIdentifier() {
043                    return _announcementsFlagService.getBeanIdentifier();
044            }
045    
046            /**
047            * Sets the Spring bean ID for this bean.
048            *
049            * @param beanIdentifier the Spring bean ID for this bean
050            */
051            @Override
052            public void setBeanIdentifier(java.lang.String beanIdentifier) {
053                    _announcementsFlagService.setBeanIdentifier(beanIdentifier);
054            }
055    
056            @Override
057            public void addFlag(long entryId, int value)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    _announcementsFlagService.addFlag(entryId, value);
061            }
062    
063            @Override
064            public void deleteFlag(long flagId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _announcementsFlagService.deleteFlag(flagId);
068            }
069    
070            @Override
071            public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag(
072                    long entryId, int value)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return _announcementsFlagService.getFlag(entryId, value);
076            }
077    
078            /**
079             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
080             */
081            public AnnouncementsFlagService getWrappedAnnouncementsFlagService() {
082                    return _announcementsFlagService;
083            }
084    
085            /**
086             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
087             */
088            public void setWrappedAnnouncementsFlagService(
089                    AnnouncementsFlagService announcementsFlagService) {
090                    _announcementsFlagService = announcementsFlagService;
091            }
092    
093            @Override
094            public AnnouncementsFlagService getWrappedService() {
095                    return _announcementsFlagService;
096            }
097    
098            @Override
099            public void setWrappedService(
100                    AnnouncementsFlagService announcementsFlagService) {
101                    _announcementsFlagService = announcementsFlagService;
102            }
103    
104            private AnnouncementsFlagService _announcementsFlagService;
105    }