001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (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
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
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            * Returns the cal event with the primary key.
154            *
155            * @param eventId the primary key of the cal event
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
167                    java.io.Serializable primaryKeyObj)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    return _calEventLocalService.getPersistedModel(primaryKeyObj);
171            }
172    
173            /**
174            * Returns the cal event with the UUID in the group.
175            *
176            * @param uuid the UUID of cal event
177            * @param groupId the group id of the cal event
178            * @return the cal event
179            * @throws PortalException if a cal event with the UUID in the group could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
183                    java.lang.String uuid, long groupId)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _calEventLocalService.getCalEventByUuidAndGroupId(uuid, groupId);
187            }
188    
189            /**
190            * Returns a range of all the cal events.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param start the lower bound of the range of cal events
197            * @param end the upper bound of the range of cal events (not inclusive)
198            * @return the range of cal events
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _calEventLocalService.getCalEvents(start, end);
205            }
206    
207            /**
208            * Returns the number of cal events.
209            *
210            * @return the number of cal events
211            * @throws SystemException if a system exception occurred
212            */
213            public int getCalEventsCount()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _calEventLocalService.getCalEventsCount();
216            }
217    
218            /**
219            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param calEvent the cal event
222            * @return the cal event that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
226                    com.liferay.portlet.calendar.model.CalEvent calEvent)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _calEventLocalService.updateCalEvent(calEvent);
229            }
230    
231            /**
232            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
233            *
234            * @param calEvent the cal event
235            * @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.
236            * @return the cal event that was updated
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
240                    com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return _calEventLocalService.updateCalEvent(calEvent, merge);
243            }
244    
245            /**
246            * Returns the Spring bean ID for this bean.
247            *
248            * @return the Spring bean ID for this bean
249            */
250            public java.lang.String getBeanIdentifier() {
251                    return _calEventLocalService.getBeanIdentifier();
252            }
253    
254            /**
255            * Sets the Spring bean ID for this bean.
256            *
257            * @param beanIdentifier the Spring bean ID for this bean
258            */
259            public void setBeanIdentifier(java.lang.String beanIdentifier) {
260                    _calEventLocalService.setBeanIdentifier(beanIdentifier);
261            }
262    
263            public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
264                    java.lang.String title, java.lang.String description,
265                    java.lang.String location, int startDateMonth, int startDateDay,
266                    int startDateYear, int startDateHour, int startDateMinute,
267                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
268                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
269                    java.lang.String type, boolean repeating,
270                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
271                    int firstReminder, int secondReminder,
272                    com.liferay.portal.service.ServiceContext serviceContext)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    return _calEventLocalService.addEvent(userId, title, description,
276                            location, startDateMonth, startDateDay, startDateYear,
277                            startDateHour, startDateMinute, endDateMonth, endDateDay,
278                            endDateYear, durationHour, durationMinute, allDay,
279                            timeZoneSensitive, type, repeating, recurrence, remindBy,
280                            firstReminder, secondReminder, serviceContext);
281            }
282    
283            public void addEventResources(
284                    com.liferay.portlet.calendar.model.CalEvent event,
285                    boolean addGroupPermissions, boolean addGuestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _calEventLocalService.addEventResources(event, addGroupPermissions,
289                            addGuestPermissions);
290            }
291    
292            public void addEventResources(
293                    com.liferay.portlet.calendar.model.CalEvent event,
294                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _calEventLocalService.addEventResources(event, groupPermissions,
298                            guestPermissions);
299            }
300    
301            public void addEventResources(long eventId, boolean addGroupPermissions,
302                    boolean addGuestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _calEventLocalService.addEventResources(eventId, addGroupPermissions,
306                            addGuestPermissions);
307            }
308    
309            public void addEventResources(long eventId,
310                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _calEventLocalService.addEventResources(eventId, groupPermissions,
314                            guestPermissions);
315            }
316    
317            public void checkEvents()
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _calEventLocalService.checkEvents();
321            }
322    
323            public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _calEventLocalService.deleteEvent(event);
327            }
328    
329            public void deleteEvent(long eventId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _calEventLocalService.deleteEvent(eventId);
333            }
334    
335            public void deleteEvents(long groupId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _calEventLocalService.deleteEvents(groupId);
339            }
340    
341            public java.io.File exportEvent(long userId, long eventId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _calEventLocalService.exportEvent(userId, eventId);
345            }
346    
347            public java.io.File exportGroupEvents(long userId, long groupId,
348                    java.lang.String fileName)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _calEventLocalService.exportGroupEvents(userId, groupId, fileName);
352            }
353    
354            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
355                    long companyId, int start, int end)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _calEventLocalService.getCompanyEvents(companyId, start, end);
358            }
359    
360            public int getCompanyEventsCount(long companyId)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _calEventLocalService.getCompanyEventsCount(companyId);
363            }
364    
365            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    return _calEventLocalService.getEvent(eventId);
369            }
370    
371            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
372                    long groupId, java.util.Calendar cal)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _calEventLocalService.getEvents(groupId, cal);
375            }
376    
377            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
378                    long groupId, java.util.Calendar cal, java.lang.String type)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _calEventLocalService.getEvents(groupId, cal, type);
381            }
382    
383            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
384                    long groupId, java.util.Calendar cal, java.lang.String[] types)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _calEventLocalService.getEvents(groupId, cal, types);
387            }
388    
389            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
390                    long groupId, java.lang.String type, int start, int end)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _calEventLocalService.getEvents(groupId, type, start, end);
393            }
394    
395            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
396                    long groupId, java.lang.String[] types, int start, int end)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _calEventLocalService.getEvents(groupId, types, start, end);
399            }
400    
401            public int getEventsCount(long groupId, java.lang.String type)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _calEventLocalService.getEventsCount(groupId, type);
404            }
405    
406            public int getEventsCount(long groupId, java.lang.String[] types)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _calEventLocalService.getEventsCount(groupId, types);
409            }
410    
411            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _calEventLocalService.getNoAssetEvents();
414            }
415    
416            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
417                    long groupId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _calEventLocalService.getRepeatingEvents(groupId);
420            }
421    
422            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
423                    long groupId, java.util.Calendar cal, java.lang.String[] types)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _calEventLocalService.getRepeatingEvents(groupId, cal, types);
426            }
427    
428            public boolean hasEvents(long groupId, java.util.Calendar cal)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _calEventLocalService.hasEvents(groupId, cal);
431            }
432    
433            public boolean hasEvents(long groupId, java.util.Calendar cal,
434                    java.lang.String type)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _calEventLocalService.hasEvents(groupId, cal, type);
437            }
438    
439            public boolean hasEvents(long groupId, java.util.Calendar cal,
440                    java.lang.String[] types)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _calEventLocalService.hasEvents(groupId, cal, types);
443            }
444    
445            public void importICal4j(long userId, long groupId,
446                    java.io.InputStream inputStream)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    _calEventLocalService.importICal4j(userId, groupId, inputStream);
450            }
451    
452            public void updateAsset(long userId,
453                    com.liferay.portlet.calendar.model.CalEvent event,
454                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
455                    long[] assetLinkEntryIds)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    _calEventLocalService.updateAsset(userId, event, assetCategoryIds,
459                            assetTagNames, assetLinkEntryIds);
460            }
461    
462            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
463                    long userId, long eventId, java.lang.String title,
464                    java.lang.String description, java.lang.String location,
465                    int startDateMonth, int startDateDay, int startDateYear,
466                    int startDateHour, int startDateMinute, int endDateMonth,
467                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
468                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
469                    boolean repeating,
470                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
471                    int firstReminder, int secondReminder,
472                    com.liferay.portal.service.ServiceContext serviceContext)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    return _calEventLocalService.updateEvent(userId, eventId, title,
476                            description, location, startDateMonth, startDateDay, startDateYear,
477                            startDateHour, startDateMinute, endDateMonth, endDateDay,
478                            endDateYear, durationHour, durationMinute, allDay,
479                            timeZoneSensitive, type, repeating, recurrence, remindBy,
480                            firstReminder, secondReminder, serviceContext);
481            }
482    
483            public CalEventLocalService getWrappedCalEventLocalService() {
484                    return _calEventLocalService;
485            }
486    
487            public void setWrappedCalEventLocalService(
488                    CalEventLocalService calEventLocalService) {
489                    _calEventLocalService = calEventLocalService;
490            }
491    
492            private CalEventLocalService _calEventLocalService;
493    }