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