001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link CalEventLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       CalEventLocalService
024     * @generated
025     */
026    public class CalEventLocalServiceWrapper implements CalEventLocalService {
027            public CalEventLocalServiceWrapper(
028                    CalEventLocalService calEventLocalService) {
029                    _calEventLocalService = calEventLocalService;
030            }
031    
032            /**
033            * Adds the cal event to the database. Also notifies the appropriate model listeners.
034            *
035            * @param calEvent the cal event to add
036            * @return the cal event that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
040                    com.liferay.portlet.calendar.model.CalEvent calEvent)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _calEventLocalService.addCalEvent(calEvent);
043            }
044    
045            /**
046            * Creates a new cal event with the primary key. Does not add the cal event to the database.
047            *
048            * @param eventId the primary key for the new cal event
049            * @return the new cal event
050            */
051            public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
052                    long eventId) {
053                    return _calEventLocalService.createCalEvent(eventId);
054            }
055    
056            /**
057            * Deletes the cal event with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param eventId the primary key of the cal event to delete
060            * @throws PortalException if a cal event with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteCalEvent(long eventId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _calEventLocalService.deleteCalEvent(eventId);
067            }
068    
069            /**
070            * Deletes the cal event from the database. Also notifies the appropriate model listeners.
071            *
072            * @param calEvent the cal event to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteCalEvent(
076                    com.liferay.portlet.calendar.model.CalEvent calEvent)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _calEventLocalService.deleteCalEvent(calEvent);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query to search with
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _calEventLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query to search with
103            * @param start the lower bound of the range of model instances to return
104            * @param end the upper bound of the range of model instances to return (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _calEventLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query to search with
123            * @param start the lower bound of the range of model instances to return
124            * @param end the upper bound of the range of model instances to return (not inclusive)
125            * @param orderByComparator the comparator to order the results by
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _calEventLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Counts the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query to search with
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _calEventLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the cal event with the primary key.
154            *
155            * @param eventId the primary key of the cal event to get
156            * @return the cal event
157            * @throws PortalException if a cal event with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return _calEventLocalService.getCalEvent(eventId);
164            }
165    
166            /**
167            * Gets the cal event with the UUID and group id.
168            *
169            * @param uuid the UUID of cal event to get
170            * @param groupId the group id of the cal event to get
171            * @return the cal event
172            * @throws PortalException if a cal event with the UUID and group id could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
176                    java.lang.String uuid, long groupId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _calEventLocalService.getCalEventByUuidAndGroupId(uuid, groupId);
180            }
181    
182            /**
183            * Gets a range of all the cal events.
184            *
185            * <p>
186            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
187            * </p>
188            *
189            * @param start the lower bound of the range of cal events to return
190            * @param end the upper bound of the range of cal events to return (not inclusive)
191            * @return the range of cal events
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _calEventLocalService.getCalEvents(start, end);
198            }
199    
200            /**
201            * Gets the number of cal events.
202            *
203            * @return the number of cal events
204            * @throws SystemException if a system exception occurred
205            */
206            public int getCalEventsCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _calEventLocalService.getCalEventsCount();
209            }
210    
211            /**
212            * Updates the cal event in the database. Also notifies the appropriate model listeners.
213            *
214            * @param calEvent the cal event to update
215            * @return the cal event that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
219                    com.liferay.portlet.calendar.model.CalEvent calEvent)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _calEventLocalService.updateCalEvent(calEvent);
222            }
223    
224            /**
225            * Updates the cal event in the database. Also notifies the appropriate model listeners.
226            *
227            * @param calEvent the cal event to update
228            * @param merge whether to merge the cal event with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
229            * @return the cal event that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
233                    com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _calEventLocalService.updateCalEvent(calEvent, merge);
236            }
237    
238            public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
239                    java.lang.String title, java.lang.String description,
240                    int startDateMonth, int startDateDay, int startDateYear,
241                    int startDateHour, int startDateMinute, int endDateMonth,
242                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
243                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
244                    boolean repeating,
245                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
246                    int firstReminder, int secondReminder,
247                    com.liferay.portal.service.ServiceContext serviceContext)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return _calEventLocalService.addEvent(userId, title, description,
251                            startDateMonth, startDateDay, startDateYear, startDateHour,
252                            startDateMinute, endDateMonth, endDateDay, endDateYear,
253                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
254                            repeating, recurrence, remindBy, firstReminder, secondReminder,
255                            serviceContext);
256            }
257    
258            public void addEventResources(
259                    com.liferay.portlet.calendar.model.CalEvent event,
260                    boolean addCommunityPermissions, boolean addGuestPermissions)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    _calEventLocalService.addEventResources(event, addCommunityPermissions,
264                            addGuestPermissions);
265            }
266    
267            public void addEventResources(
268                    com.liferay.portlet.calendar.model.CalEvent event,
269                    java.lang.String[] communityPermissions,
270                    java.lang.String[] guestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _calEventLocalService.addEventResources(event, communityPermissions,
274                            guestPermissions);
275            }
276    
277            public void addEventResources(long eventId,
278                    boolean addCommunityPermissions, boolean addGuestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _calEventLocalService.addEventResources(eventId,
282                            addCommunityPermissions, addGuestPermissions);
283            }
284    
285            public void addEventResources(long eventId,
286                    java.lang.String[] communityPermissions,
287                    java.lang.String[] guestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _calEventLocalService.addEventResources(eventId, communityPermissions,
291                            guestPermissions);
292            }
293    
294            public void checkEvents()
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _calEventLocalService.checkEvents();
298            }
299    
300            public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _calEventLocalService.deleteEvent(event);
304            }
305    
306            public void deleteEvent(long eventId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _calEventLocalService.deleteEvent(eventId);
310            }
311    
312            public void deleteEvents(long groupId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _calEventLocalService.deleteEvents(groupId);
316            }
317    
318            public java.io.File exportEvent(long userId, long eventId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _calEventLocalService.exportEvent(userId, eventId);
322            }
323    
324            public java.io.File exportGroupEvents(long userId, long groupId,
325                    java.lang.String fileName)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return _calEventLocalService.exportGroupEvents(userId, groupId, fileName);
329            }
330    
331            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
332                    long companyId, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _calEventLocalService.getCompanyEvents(companyId, start, end);
335            }
336    
337            public int getCompanyEventsCount(long companyId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _calEventLocalService.getCompanyEventsCount(companyId);
340            }
341    
342            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _calEventLocalService.getEvent(eventId);
346            }
347    
348            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
349                    long groupId, java.util.Calendar cal)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _calEventLocalService.getEvents(groupId, cal);
352            }
353    
354            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
355                    long groupId, java.util.Calendar cal, java.lang.String type)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _calEventLocalService.getEvents(groupId, cal, type);
358            }
359    
360            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
361                    long groupId, java.lang.String type, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _calEventLocalService.getEvents(groupId, type, start, end);
364            }
365    
366            public int getEventsCount(long groupId, java.lang.String type)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _calEventLocalService.getEventsCount(groupId, type);
369            }
370    
371            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _calEventLocalService.getNoAssetEvents();
374            }
375    
376            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
377                    long groupId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _calEventLocalService.getRepeatingEvents(groupId);
380            }
381    
382            public boolean hasEvents(long groupId, java.util.Calendar cal)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _calEventLocalService.hasEvents(groupId, cal);
385            }
386    
387            public boolean hasEvents(long groupId, java.util.Calendar cal,
388                    java.lang.String type)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _calEventLocalService.hasEvents(groupId, cal, type);
391            }
392    
393            public void importICal4j(long userId, long groupId, java.io.File file)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    _calEventLocalService.importICal4j(userId, groupId, file);
397            }
398    
399            public void updateAsset(long userId,
400                    com.liferay.portlet.calendar.model.CalEvent event,
401                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    _calEventLocalService.updateAsset(userId, event, assetCategoryIds,
405                            assetTagNames);
406            }
407    
408            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
409                    long userId, long eventId, java.lang.String title,
410                    java.lang.String description, int startDateMonth, int startDateDay,
411                    int startDateYear, int startDateHour, int startDateMinute,
412                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
413                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
414                    java.lang.String type, boolean repeating,
415                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
416                    int firstReminder, int secondReminder,
417                    com.liferay.portal.service.ServiceContext serviceContext)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    return _calEventLocalService.updateEvent(userId, eventId, title,
421                            description, startDateMonth, startDateDay, startDateYear,
422                            startDateHour, startDateMinute, endDateMonth, endDateDay,
423                            endDateYear, durationHour, durationMinute, allDay,
424                            timeZoneSensitive, type, repeating, recurrence, remindBy,
425                            firstReminder, secondReminder, serviceContext);
426            }
427    
428            public CalEventLocalService getWrappedCalEventLocalService() {
429                    return _calEventLocalService;
430            }
431    
432            private CalEventLocalService _calEventLocalService;
433    }