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