001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    int startDateMonth, int startDateDay, int startDateYear,
266                    int startDateHour, int startDateMinute, int endDateMonth,
267                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
268                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
269                    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                            startDateMonth, startDateDay, startDateYear, startDateHour,
277                            startDateMinute, endDateMonth, endDateDay, endDateYear,
278                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
279                            repeating, recurrence, remindBy, firstReminder, secondReminder,
280                            serviceContext);
281            }
282    
283            public void addEventResources(
284                    com.liferay.portlet.calendar.model.CalEvent event,
285                    boolean addCommunityPermissions, boolean addGuestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _calEventLocalService.addEventResources(event, addCommunityPermissions,
289                            addGuestPermissions);
290            }
291    
292            public void addEventResources(
293                    com.liferay.portlet.calendar.model.CalEvent event,
294                    java.lang.String[] communityPermissions,
295                    java.lang.String[] guestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _calEventLocalService.addEventResources(event, communityPermissions,
299                            guestPermissions);
300            }
301    
302            public void addEventResources(long eventId,
303                    boolean addCommunityPermissions, boolean addGuestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _calEventLocalService.addEventResources(eventId,
307                            addCommunityPermissions, addGuestPermissions);
308            }
309    
310            public void addEventResources(long eventId,
311                    java.lang.String[] communityPermissions,
312                    java.lang.String[] guestPermissions)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _calEventLocalService.addEventResources(eventId, communityPermissions,
316                            guestPermissions);
317            }
318    
319            public void checkEvents()
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _calEventLocalService.checkEvents();
323            }
324    
325            public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _calEventLocalService.deleteEvent(event);
329            }
330    
331            public void deleteEvent(long eventId)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _calEventLocalService.deleteEvent(eventId);
335            }
336    
337            public void deleteEvents(long groupId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    _calEventLocalService.deleteEvents(groupId);
341            }
342    
343            public java.io.File exportEvent(long userId, long eventId)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    return _calEventLocalService.exportEvent(userId, eventId);
347            }
348    
349            public java.io.File exportGroupEvents(long userId, long groupId,
350                    java.lang.String fileName)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _calEventLocalService.exportGroupEvents(userId, groupId, fileName);
354            }
355    
356            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
357                    long companyId, int start, int end)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _calEventLocalService.getCompanyEvents(companyId, start, end);
360            }
361    
362            public int getCompanyEventsCount(long companyId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _calEventLocalService.getCompanyEventsCount(companyId);
365            }
366    
367            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    return _calEventLocalService.getEvent(eventId);
371            }
372    
373            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
374                    long groupId, java.util.Calendar cal)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _calEventLocalService.getEvents(groupId, cal);
377            }
378    
379            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
380                    long groupId, java.util.Calendar cal, java.lang.String type)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _calEventLocalService.getEvents(groupId, cal, type);
383            }
384    
385            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
386                    long groupId, java.lang.String type, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _calEventLocalService.getEvents(groupId, type, start, end);
389            }
390    
391            public int getEventsCount(long groupId, java.lang.String type)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _calEventLocalService.getEventsCount(groupId, type);
394            }
395    
396            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _calEventLocalService.getNoAssetEvents();
399            }
400    
401            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
402                    long groupId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _calEventLocalService.getRepeatingEvents(groupId);
405            }
406    
407            public boolean hasEvents(long groupId, java.util.Calendar cal)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _calEventLocalService.hasEvents(groupId, cal);
410            }
411    
412            public boolean hasEvents(long groupId, java.util.Calendar cal,
413                    java.lang.String type)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _calEventLocalService.hasEvents(groupId, cal, type);
416            }
417    
418            public void importICal4j(long userId, long groupId, java.io.File file)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    _calEventLocalService.importICal4j(userId, groupId, file);
422            }
423    
424            public void updateAsset(long userId,
425                    com.liferay.portlet.calendar.model.CalEvent event,
426                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    _calEventLocalService.updateAsset(userId, event, assetCategoryIds,
430                            assetTagNames);
431            }
432    
433            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
434                    long userId, long eventId, java.lang.String title,
435                    java.lang.String description, int startDateMonth, int startDateDay,
436                    int startDateYear, int startDateHour, int startDateMinute,
437                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
438                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
439                    java.lang.String type, boolean repeating,
440                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
441                    int firstReminder, int secondReminder,
442                    com.liferay.portal.service.ServiceContext serviceContext)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _calEventLocalService.updateEvent(userId, eventId, title,
446                            description, startDateMonth, startDateDay, startDateYear,
447                            startDateHour, startDateMinute, endDateMonth, endDateDay,
448                            endDateYear, durationHour, durationMinute, allDay,
449                            timeZoneSensitive, type, repeating, recurrence, remindBy,
450                            firstReminder, secondReminder, serviceContext);
451            }
452    
453            public CalEventLocalService getWrappedCalEventLocalService() {
454                    return _calEventLocalService;
455            }
456    
457            public void setWrappedCalEventLocalService(
458                    CalEventLocalService calEventLocalService) {
459                    _calEventLocalService = calEventLocalService;
460            }
461    
462            private CalEventLocalService _calEventLocalService;
463    }