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