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 CalEventLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       CalEventLocalService
026     * @generated
027     */
028    public class CalEventLocalServiceWrapper implements CalEventLocalService,
029            ServiceWrapper<CalEventLocalService> {
030            public CalEventLocalServiceWrapper(
031                    CalEventLocalService calEventLocalService) {
032                    _calEventLocalService = calEventLocalService;
033            }
034    
035            /**
036            * Adds the cal event to the database. Also notifies the appropriate model listeners.
037            *
038            * @param calEvent the cal event
039            * @return the cal event that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
043                    com.liferay.portlet.calendar.model.CalEvent calEvent)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _calEventLocalService.addCalEvent(calEvent);
046            }
047    
048            /**
049            * Creates a new cal event with the primary key. Does not add the cal event to the database.
050            *
051            * @param eventId the primary key for the new cal event
052            * @return the new cal event
053            */
054            public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
055                    long eventId) {
056                    return _calEventLocalService.createCalEvent(eventId);
057            }
058    
059            /**
060            * Deletes the cal event with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param eventId the primary key of the cal event
063            * @throws PortalException if a cal event with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteCalEvent(long eventId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _calEventLocalService.deleteCalEvent(eventId);
070            }
071    
072            /**
073            * Deletes the cal event from the database. Also notifies the appropriate model listeners.
074            *
075            * @param calEvent the cal event
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteCalEvent(
079                    com.liferay.portlet.calendar.model.CalEvent calEvent)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _calEventLocalService.deleteCalEvent(calEvent);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _calEventLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _calEventLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _calEventLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _calEventLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.calendar.model.CalEvent fetchCalEvent(
156                    long eventId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _calEventLocalService.fetchCalEvent(eventId);
159            }
160    
161            /**
162            * Returns the cal event with the primary key.
163            *
164            * @param eventId the primary key of the cal event
165            * @return the cal event
166            * @throws PortalException if a cal event with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _calEventLocalService.getCalEvent(eventId);
173            }
174    
175            public com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _calEventLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns the cal event with the UUID in the group.
184            *
185            * @param uuid the UUID of cal event
186            * @param groupId the group id of the cal event
187            * @return the cal event
188            * @throws PortalException if a cal event with the UUID in the group could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
192                    java.lang.String uuid, long groupId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    return _calEventLocalService.getCalEventByUuidAndGroupId(uuid, groupId);
196            }
197    
198            /**
199            * Returns a range of all the cal events.
200            *
201            * <p>
202            * 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.
203            * </p>
204            *
205            * @param start the lower bound of the range of cal events
206            * @param end the upper bound of the range of cal events (not inclusive)
207            * @return the range of cal events
208            * @throws SystemException if a system exception occurred
209            */
210            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
211                    int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _calEventLocalService.getCalEvents(start, end);
214            }
215    
216            /**
217            * Returns the number of cal events.
218            *
219            * @return the number of cal events
220            * @throws SystemException if a system exception occurred
221            */
222            public int getCalEventsCount()
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _calEventLocalService.getCalEventsCount();
225            }
226    
227            /**
228            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
229            *
230            * @param calEvent the cal event
231            * @return the cal event that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
235                    com.liferay.portlet.calendar.model.CalEvent calEvent)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _calEventLocalService.updateCalEvent(calEvent);
238            }
239    
240            /**
241            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param calEvent the cal event
244            * @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.
245            * @return the cal event that was updated
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
249                    com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return _calEventLocalService.updateCalEvent(calEvent, merge);
252            }
253    
254            /**
255            * Returns the Spring bean ID for this bean.
256            *
257            * @return the Spring bean ID for this bean
258            */
259            public java.lang.String getBeanIdentifier() {
260                    return _calEventLocalService.getBeanIdentifier();
261            }
262    
263            /**
264            * Sets the Spring bean ID for this bean.
265            *
266            * @param beanIdentifier the Spring bean ID for this bean
267            */
268            public void setBeanIdentifier(java.lang.String beanIdentifier) {
269                    _calEventLocalService.setBeanIdentifier(beanIdentifier);
270            }
271    
272            public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
273                    java.lang.String title, java.lang.String description,
274                    java.lang.String location, int startDateMonth, int startDateDay,
275                    int startDateYear, int startDateHour, int startDateMinute,
276                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
277                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
278                    java.lang.String type, boolean repeating,
279                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
280                    int firstReminder, int secondReminder,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    return _calEventLocalService.addEvent(userId, title, description,
285                            location, startDateMonth, startDateDay, startDateYear,
286                            startDateHour, startDateMinute, endDateMonth, endDateDay,
287                            endDateYear, durationHour, durationMinute, allDay,
288                            timeZoneSensitive, type, repeating, recurrence, remindBy,
289                            firstReminder, secondReminder, serviceContext);
290            }
291    
292            public void addEventResources(
293                    com.liferay.portlet.calendar.model.CalEvent event,
294                    boolean addGroupPermissions, boolean addGuestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _calEventLocalService.addEventResources(event, addGroupPermissions,
298                            addGuestPermissions);
299            }
300    
301            public void addEventResources(
302                    com.liferay.portlet.calendar.model.CalEvent event,
303                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _calEventLocalService.addEventResources(event, groupPermissions,
307                            guestPermissions);
308            }
309    
310            public void addEventResources(long eventId, boolean addGroupPermissions,
311                    boolean addGuestPermissions)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _calEventLocalService.addEventResources(eventId, addGroupPermissions,
315                            addGuestPermissions);
316            }
317    
318            public void addEventResources(long eventId,
319                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _calEventLocalService.addEventResources(eventId, groupPermissions,
323                            guestPermissions);
324            }
325    
326            public void checkEvents()
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _calEventLocalService.checkEvents();
330            }
331    
332            public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    _calEventLocalService.deleteEvent(event);
336            }
337    
338            public void deleteEvent(long eventId)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    _calEventLocalService.deleteEvent(eventId);
342            }
343    
344            public void deleteEvents(long groupId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    _calEventLocalService.deleteEvents(groupId);
348            }
349    
350            public java.io.File exportEvent(long userId, long eventId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _calEventLocalService.exportEvent(userId, eventId);
354            }
355    
356            public java.io.File exportGroupEvents(long userId, long groupId,
357                    java.lang.String fileName)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _calEventLocalService.exportGroupEvents(userId, groupId, fileName);
361            }
362    
363            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
364                    long companyId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _calEventLocalService.getCompanyEvents(companyId, start, end);
367            }
368    
369            public int getCompanyEventsCount(long companyId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _calEventLocalService.getCompanyEventsCount(companyId);
372            }
373    
374            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _calEventLocalService.getEvent(eventId);
378            }
379    
380            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
381                    long groupId, java.util.Calendar cal)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _calEventLocalService.getEvents(groupId, cal);
384            }
385    
386            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
387                    long groupId, java.util.Calendar cal, java.lang.String type)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _calEventLocalService.getEvents(groupId, cal, type);
390            }
391    
392            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
393                    long groupId, java.util.Calendar cal, java.lang.String[] types)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _calEventLocalService.getEvents(groupId, cal, types);
396            }
397    
398            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
399                    long groupId, java.lang.String type, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _calEventLocalService.getEvents(groupId, type, start, end);
402            }
403    
404            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
405                    long groupId, java.lang.String[] types, int start, int end)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return _calEventLocalService.getEvents(groupId, types, start, end);
408            }
409    
410            public int getEventsCount(long groupId, java.lang.String type)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _calEventLocalService.getEventsCount(groupId, type);
413            }
414    
415            public int getEventsCount(long groupId, java.lang.String[] types)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _calEventLocalService.getEventsCount(groupId, types);
418            }
419    
420            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _calEventLocalService.getNoAssetEvents();
423            }
424    
425            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
426                    long groupId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _calEventLocalService.getRepeatingEvents(groupId);
429            }
430    
431            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
432                    long groupId, java.util.Calendar cal, java.lang.String[] types)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _calEventLocalService.getRepeatingEvents(groupId, cal, types);
435            }
436    
437            public boolean hasEvents(long groupId, java.util.Calendar cal)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _calEventLocalService.hasEvents(groupId, cal);
440            }
441    
442            public boolean hasEvents(long groupId, java.util.Calendar cal,
443                    java.lang.String type)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return _calEventLocalService.hasEvents(groupId, cal, type);
446            }
447    
448            public boolean hasEvents(long groupId, java.util.Calendar cal,
449                    java.lang.String[] types)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _calEventLocalService.hasEvents(groupId, cal, types);
452            }
453    
454            public void importICal4j(long userId, long groupId,
455                    java.io.InputStream inputStream)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    _calEventLocalService.importICal4j(userId, groupId, inputStream);
459            }
460    
461            public void updateAsset(long userId,
462                    com.liferay.portlet.calendar.model.CalEvent event,
463                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
464                    long[] assetLinkEntryIds)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    _calEventLocalService.updateAsset(userId, event, assetCategoryIds,
468                            assetTagNames, assetLinkEntryIds);
469            }
470    
471            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
472                    long userId, long eventId, java.lang.String title,
473                    java.lang.String description, java.lang.String location,
474                    int startDateMonth, int startDateDay, int startDateYear,
475                    int startDateHour, int startDateMinute, int endDateMonth,
476                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
477                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
478                    boolean repeating,
479                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
480                    int firstReminder, int secondReminder,
481                    com.liferay.portal.service.ServiceContext serviceContext)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    return _calEventLocalService.updateEvent(userId, eventId, title,
485                            description, location, startDateMonth, startDateDay, startDateYear,
486                            startDateHour, startDateMinute, endDateMonth, endDateDay,
487                            endDateYear, durationHour, durationMinute, allDay,
488                            timeZoneSensitive, type, repeating, recurrence, remindBy,
489                            firstReminder, secondReminder, serviceContext);
490            }
491    
492            /**
493             * @deprecated Renamed to {@link #getWrappedService}
494             */
495            public CalEventLocalService getWrappedCalEventLocalService() {
496                    return _calEventLocalService;
497            }
498    
499            /**
500             * @deprecated Renamed to {@link #setWrappedService}
501             */
502            public void setWrappedCalEventLocalService(
503                    CalEventLocalService calEventLocalService) {
504                    _calEventLocalService = calEventLocalService;
505            }
506    
507            public CalEventLocalService getWrappedService() {
508                    return _calEventLocalService;
509            }
510    
511            public void setWrappedService(CalEventLocalService calEventLocalService) {
512                    _calEventLocalService = calEventLocalService;
513            }
514    
515            private CalEventLocalService _calEventLocalService;
516    }