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            public com.liferay.portlet.calendar.model.CalEvent addEvent(
035                    java.lang.String title, java.lang.String description,
036                    java.lang.String location, int startDateMonth, int startDateDay,
037                    int startDateYear, int startDateHour, int startDateMinute,
038                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
039                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
040                    java.lang.String type, boolean repeating,
041                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
042                    int firstReminder, int secondReminder,
043                    com.liferay.portal.service.ServiceContext serviceContext)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    return _calEventService.addEvent(title, description, location,
047                            startDateMonth, startDateDay, startDateYear, startDateHour,
048                            startDateMinute, endDateMonth, endDateDay, endDateYear,
049                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
050                            repeating, recurrence, remindBy, firstReminder, secondReminder,
051                            serviceContext);
052            }
053    
054            public void deleteEvent(long eventId)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    _calEventService.deleteEvent(eventId);
058            }
059    
060            public java.io.File exportEvent(long eventId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _calEventService.exportEvent(eventId);
064            }
065    
066            public java.io.File exportGroupEvents(long groupId,
067                    java.lang.String fileName)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _calEventService.exportGroupEvents(groupId, fileName);
071            }
072    
073            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _calEventService.getEvent(eventId);
077            }
078    
079            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
080                    long groupId, java.util.Calendar cal, java.lang.String type)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return _calEventService.getEvents(groupId, cal, type);
084            }
085    
086            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
087                    long groupId, java.util.Calendar cal, java.lang.String[] types)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _calEventService.getEvents(groupId, cal, types);
091            }
092    
093            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
094                    long groupId, java.lang.String type, int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _calEventService.getEvents(groupId, type, start, end);
097            }
098    
099            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
100                    long groupId, java.lang.String[] types, int start, int end)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _calEventService.getEvents(groupId, types, start, end);
103            }
104    
105            public int getEventsCount(long groupId, java.lang.String type)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _calEventService.getEventsCount(groupId, type);
108            }
109    
110            public int getEventsCount(long groupId, java.lang.String[] types)
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    return _calEventService.getEventsCount(groupId, types);
113            }
114    
115            public boolean hasEvents(long groupId, java.util.Calendar cal)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return _calEventService.hasEvents(groupId, cal);
119            }
120    
121            public boolean hasEvents(long groupId, java.util.Calendar cal,
122                    java.lang.String type)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _calEventService.hasEvents(groupId, cal, type);
126            }
127    
128            public boolean hasEvents(long groupId, java.util.Calendar cal,
129                    java.lang.String[] types)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    return _calEventService.hasEvents(groupId, cal, types);
133            }
134    
135            public void importICal4j(long groupId, java.io.InputStream inputStream)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    _calEventService.importICal4j(groupId, inputStream);
139            }
140    
141            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
142                    long eventId, java.lang.String title, java.lang.String description,
143                    java.lang.String location, int startDateMonth, int startDateDay,
144                    int startDateYear, int startDateHour, int startDateMinute,
145                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
146                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
147                    java.lang.String type, boolean repeating,
148                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
149                    int firstReminder, int secondReminder,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return _calEventService.updateEvent(eventId, title, description,
154                            location, startDateMonth, startDateDay, startDateYear,
155                            startDateHour, startDateMinute, endDateMonth, endDateDay,
156                            endDateYear, durationHour, durationMinute, allDay,
157                            timeZoneSensitive, type, repeating, recurrence, remindBy,
158                            firstReminder, secondReminder, serviceContext);
159            }
160    
161            /**
162             * @deprecated Renamed to {@link #getWrappedService}
163             */
164            public CalEventService getWrappedCalEventService() {
165                    return _calEventService;
166            }
167    
168            /**
169             * @deprecated Renamed to {@link #setWrappedService}
170             */
171            public void setWrappedCalEventService(CalEventService calEventService) {
172                    _calEventService = calEventService;
173            }
174    
175            public CalEventService getWrappedService() {
176                    return _calEventService;
177            }
178    
179            public void setWrappedService(CalEventService calEventService) {
180                    _calEventService = calEventService;
181            }
182    
183            private CalEventService _calEventService;
184    }