001    /**
002     * Copyright (c) 2000-2012 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.calendar.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link CalEventService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       CalEventService
026     * @generated
027     */
028    public class CalEventServiceWrapper implements CalEventService,
029            ServiceWrapper<CalEventService> {
030            public CalEventServiceWrapper(CalEventService calEventService) {
031                    _calEventService = calEventService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            public java.lang.String getBeanIdentifier() {
040                    return _calEventService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _calEventService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            public com.liferay.portlet.calendar.model.CalEvent addEvent(
053                    java.lang.String title, java.lang.String description,
054                    java.lang.String location, int startDateMonth, int startDateDay,
055                    int startDateYear, int startDateHour, int startDateMinute,
056                    int durationHour, int durationMinute, boolean allDay,
057                    boolean timeZoneSensitive, java.lang.String type, boolean repeating,
058                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
059                    int firstReminder, int secondReminder,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _calEventService.addEvent(title, description, location,
064                            startDateMonth, startDateDay, startDateYear, startDateHour,
065                            startDateMinute, durationHour, durationMinute, allDay,
066                            timeZoneSensitive, type, repeating, recurrence, remindBy,
067                            firstReminder, secondReminder, serviceContext);
068            }
069    
070            /**
071            * @deprecated {@link #addEvent(String, String, String, int, int, int, int,
072            int, int, int, boolean, boolean, String, boolean,
073            TZSRecurrence, int, int, int, ServiceContext)}
074            */
075            public com.liferay.portlet.calendar.model.CalEvent addEvent(
076                    java.lang.String title, java.lang.String description,
077                    java.lang.String location, int startDateMonth, int startDateDay,
078                    int startDateYear, int startDateHour, int startDateMinute,
079                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
080                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
081                    java.lang.String type, boolean repeating,
082                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
083                    int firstReminder, int secondReminder,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _calEventService.addEvent(title, description, location,
088                            startDateMonth, startDateDay, startDateYear, startDateHour,
089                            startDateMinute, endDateMonth, endDateDay, endDateYear,
090                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
091                            repeating, recurrence, remindBy, firstReminder, secondReminder,
092                            serviceContext);
093            }
094    
095            public void deleteEvent(long eventId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    _calEventService.deleteEvent(eventId);
099            }
100    
101            public java.io.File exportEvent(long eventId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return _calEventService.exportEvent(eventId);
105            }
106    
107            public java.io.File exportEvents(
108                    java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
109                    java.lang.String fileName)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return _calEventService.exportEvents(events, fileName);
113            }
114    
115            public java.io.File exportGroupEvents(long groupId,
116                    java.lang.String fileName)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return _calEventService.exportGroupEvents(groupId, fileName);
120            }
121    
122            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _calEventService.getEvent(eventId);
126            }
127    
128            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
129                    long groupId, java.util.Calendar cal, java.lang.String type)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    return _calEventService.getEvents(groupId, cal, type);
133            }
134    
135            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
136                    long groupId, java.util.Calendar cal, java.lang.String[] types)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return _calEventService.getEvents(groupId, cal, types);
140            }
141    
142            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
143                    long groupId, java.lang.String type, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _calEventService.getEvents(groupId, type, start, end);
146            }
147    
148            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
149                    long groupId, java.lang.String[] types, int start, int end)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _calEventService.getEvents(groupId, types, start, end);
152            }
153    
154            public int getEventsCount(long groupId, java.lang.String type)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _calEventService.getEventsCount(groupId, type);
157            }
158    
159            public int getEventsCount(long groupId, java.lang.String[] types)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _calEventService.getEventsCount(groupId, types);
162            }
163    
164            public boolean hasEvents(long groupId, java.util.Calendar cal)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _calEventService.hasEvents(groupId, cal);
168            }
169    
170            public boolean hasEvents(long groupId, java.util.Calendar cal,
171                    java.lang.String type)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _calEventService.hasEvents(groupId, cal, type);
175            }
176    
177            public boolean hasEvents(long groupId, java.util.Calendar cal,
178                    java.lang.String[] types)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _calEventService.hasEvents(groupId, cal, types);
182            }
183    
184            public void importICal4j(long groupId, java.io.InputStream inputStream)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    _calEventService.importICal4j(groupId, inputStream);
188            }
189    
190            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
191                    long eventId, java.lang.String title, java.lang.String description,
192                    java.lang.String location, int startDateMonth, int startDateDay,
193                    int startDateYear, int startDateHour, int startDateMinute,
194                    int durationHour, int durationMinute, boolean allDay,
195                    boolean timeZoneSensitive, java.lang.String type, boolean repeating,
196                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
197                    int firstReminder, int secondReminder,
198                    com.liferay.portal.service.ServiceContext serviceContext)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return _calEventService.updateEvent(eventId, title, description,
202                            location, startDateMonth, startDateDay, startDateYear,
203                            startDateHour, startDateMinute, durationHour, durationMinute,
204                            allDay, timeZoneSensitive, type, repeating, recurrence, remindBy,
205                            firstReminder, secondReminder, serviceContext);
206            }
207    
208            /**
209            * @deprecated {@link #updateEvent(long, String, String, String, int, int,
210            int, int, int, int, int, boolean, boolean, String, boolean,
211            TZSRecurrence, int, int, int, ServiceContext)}
212            */
213            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
214                    long eventId, java.lang.String title, java.lang.String description,
215                    java.lang.String location, int startDateMonth, int startDateDay,
216                    int startDateYear, int startDateHour, int startDateMinute,
217                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
218                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
219                    java.lang.String type, boolean repeating,
220                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
221                    int firstReminder, int secondReminder,
222                    com.liferay.portal.service.ServiceContext serviceContext)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return _calEventService.updateEvent(eventId, title, description,
226                            location, startDateMonth, startDateDay, startDateYear,
227                            startDateHour, startDateMinute, endDateMonth, endDateDay,
228                            endDateYear, durationHour, durationMinute, allDay,
229                            timeZoneSensitive, type, repeating, recurrence, remindBy,
230                            firstReminder, secondReminder, serviceContext);
231            }
232    
233            /**
234             * @deprecated Renamed to {@link #getWrappedService}
235             */
236            public CalEventService getWrappedCalEventService() {
237                    return _calEventService;
238            }
239    
240            /**
241             * @deprecated Renamed to {@link #setWrappedService}
242             */
243            public void setWrappedCalEventService(CalEventService calEventService) {
244                    _calEventService = calEventService;
245            }
246    
247            public CalEventService getWrappedService() {
248                    return _calEventService;
249            }
250    
251            public void setWrappedService(CalEventService calEventService) {
252                    _calEventService = calEventService;
253            }
254    
255            private CalEventService _calEventService;
256    }