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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AnnouncementsEntryService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AnnouncementsEntryService
026     * @generated
027     */
028    public class AnnouncementsEntryServiceWrapper
029            implements AnnouncementsEntryService,
030                    ServiceWrapper<AnnouncementsEntryService> {
031            public AnnouncementsEntryServiceWrapper(
032                    AnnouncementsEntryService announcementsEntryService) {
033                    _announcementsEntryService = announcementsEntryService;
034            }
035    
036            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            public java.lang.String getBeanIdentifier() {
042                    return _announcementsEntryService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            public void setBeanIdentifier(java.lang.String beanIdentifier) {
051                    _announcementsEntryService.setBeanIdentifier(beanIdentifier);
052            }
053    
054            public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
055                    long plid, long classNameId, long classPK, java.lang.String title,
056                    java.lang.String content, java.lang.String url, java.lang.String type,
057                    int displayDateMonth, int displayDateDay, int displayDateYear,
058                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
059                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
060                    int expirationDateMinute, int priority, boolean alert)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _announcementsEntryService.addEntry(plid, classNameId, classPK,
064                            title, content, url, type, displayDateMonth, displayDateDay,
065                            displayDateYear, displayDateHour, displayDateMinute,
066                            expirationDateMonth, expirationDateDay, expirationDateYear,
067                            expirationDateHour, expirationDateMinute, priority, alert);
068            }
069    
070            public void deleteEntry(long entryId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    _announcementsEntryService.deleteEntry(entryId);
074            }
075    
076            public com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
077                    long entryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return _announcementsEntryService.getEntry(entryId);
081            }
082    
083            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
084                    long entryId, java.lang.String title, java.lang.String content,
085                    java.lang.String url, java.lang.String type, int displayDateMonth,
086                    int displayDateDay, int displayDateYear, int displayDateHour,
087                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
088                    int expirationDateYear, int expirationDateHour,
089                    int expirationDateMinute, int priority)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _announcementsEntryService.updateEntry(entryId, title, content,
093                            url, type, displayDateMonth, displayDateDay, displayDateYear,
094                            displayDateHour, displayDateMinute, expirationDateMonth,
095                            expirationDateDay, expirationDateYear, expirationDateHour,
096                            expirationDateMinute, priority);
097            }
098    
099            /**
100             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
101             */
102            public AnnouncementsEntryService getWrappedAnnouncementsEntryService() {
103                    return _announcementsEntryService;
104            }
105    
106            /**
107             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
108             */
109            public void setWrappedAnnouncementsEntryService(
110                    AnnouncementsEntryService announcementsEntryService) {
111                    _announcementsEntryService = announcementsEntryService;
112            }
113    
114            public AnnouncementsEntryService getWrappedService() {
115                    return _announcementsEntryService;
116            }
117    
118            public void setWrappedService(
119                    AnnouncementsEntryService announcementsEntryService) {
120                    _announcementsEntryService = announcementsEntryService;
121            }
122    
123            private AnnouncementsEntryService _announcementsEntryService;
124    }