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 matching the dynamic query.
250            *
251            * @param dynamicQuery the dynamic query
252            * @return the number of rows matching 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 matching 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 matching 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            /**
364            * Returns all the cal events matching the UUID and company.
365            *
366            * @param uuid the UUID of the cal events
367            * @param companyId the primary key of the company
368            * @return the matching cal events, or an empty list if no matches were found
369            */
370            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
371                    java.lang.String uuid, long companyId) {
372                    return getService().getCalEventsByUuidAndCompanyId(uuid, companyId);
373            }
374    
375            /**
376            * Returns a range of cal events matching the UUID and company.
377            *
378            * @param uuid the UUID of the cal events
379            * @param companyId the primary key of the company
380            * @param start the lower bound of the range of cal events
381            * @param end the upper bound of the range of cal events (not inclusive)
382            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
383            * @return the range of matching cal events, or an empty list if no matches were found
384            */
385            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
386                    java.lang.String uuid, long companyId, int start, int end,
387                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.calendar.model.CalEvent> orderByComparator) {
388                    return getService()
389                                       .getCalEventsByUuidAndCompanyId(uuid, companyId, start, end,
390                            orderByComparator);
391            }
392    
393            /**
394            * Returns the number of cal events.
395            *
396            * @return the number of cal events
397            */
398            public static int getCalEventsCount() {
399                    return getService().getCalEventsCount();
400            }
401    
402            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
403                    long companyId, int start, int end) {
404                    return getService().getCompanyEvents(companyId, start, end);
405            }
406    
407            public static int getCompanyEventsCount(long companyId) {
408                    return getService().getCompanyEventsCount(companyId);
409            }
410    
411            public static com.liferay.portlet.calendar.model.CalEvent getEvent(
412                    long eventId)
413                    throws com.liferay.portal.kernel.exception.PortalException {
414                    return getService().getEvent(eventId);
415            }
416    
417            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
418                    long groupId, java.util.Calendar cal) {
419                    return getService().getEvents(groupId, cal);
420            }
421    
422            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
423                    long groupId, java.util.Calendar cal, java.lang.String type) {
424                    return getService().getEvents(groupId, cal, type);
425            }
426    
427            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
428                    long groupId, java.util.Calendar cal, java.lang.String[] types) {
429                    return getService().getEvents(groupId, cal, types);
430            }
431    
432            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
433                    long groupId, java.lang.String type, int start, int end) {
434                    return getService().getEvents(groupId, type, start, end);
435            }
436    
437            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
438                    long groupId, java.lang.String[] types, int start, int end) {
439                    return getService().getEvents(groupId, types, start, end);
440            }
441    
442            public static int getEventsCount(long groupId, java.lang.String type) {
443                    return getService().getEventsCount(groupId, type);
444            }
445    
446            public static int getEventsCount(long groupId, java.lang.String[] types) {
447                    return getService().getEventsCount(groupId, types);
448            }
449    
450            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
451                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
452                    return getService().getExportActionableDynamicQuery(portletDataContext);
453            }
454    
455            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
456                    return getService().getNoAssetEvents();
457            }
458    
459            public static com.liferay.portal.model.PersistedModel getPersistedModel(
460                    java.io.Serializable primaryKeyObj)
461                    throws com.liferay.portal.kernel.exception.PortalException {
462                    return getService().getPersistedModel(primaryKeyObj);
463            }
464    
465            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
466                    long groupId) {
467                    return getService().getRepeatingEvents(groupId);
468            }
469    
470            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
471                    long groupId, java.util.Calendar cal, java.lang.String[] types) {
472                    return getService().getRepeatingEvents(groupId, cal, types);
473            }
474    
475            public static boolean hasEvents(long groupId, java.util.Calendar cal) {
476                    return getService().hasEvents(groupId, cal);
477            }
478    
479            public static boolean hasEvents(long groupId, java.util.Calendar cal,
480                    java.lang.String type) {
481                    return getService().hasEvents(groupId, cal, type);
482            }
483    
484            public static boolean hasEvents(long groupId, java.util.Calendar cal,
485                    java.lang.String[] types) {
486                    return getService().hasEvents(groupId, cal, types);
487            }
488    
489            public static void importICal4j(long userId, long groupId,
490                    java.io.InputStream inputStream)
491                    throws com.liferay.portal.kernel.exception.PortalException {
492                    getService().importICal4j(userId, groupId, inputStream);
493            }
494    
495            /**
496            * Sets the Spring bean ID for this bean.
497            *
498            * @param beanIdentifier the Spring bean ID for this bean
499            */
500            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
501                    getService().setBeanIdentifier(beanIdentifier);
502            }
503    
504            public static void updateAsset(long userId,
505                    com.liferay.portlet.calendar.model.CalEvent event,
506                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
507                    long[] assetLinkEntryIds)
508                    throws com.liferay.portal.kernel.exception.PortalException {
509                    getService()
510                            .updateAsset(userId, event, assetCategoryIds, assetTagNames,
511                            assetLinkEntryIds);
512            }
513    
514            /**
515            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
516            *
517            * @param calEvent the cal event
518            * @return the cal event that was updated
519            */
520            public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
521                    com.liferay.portlet.calendar.model.CalEvent calEvent) {
522                    return getService().updateCalEvent(calEvent);
523            }
524    
525            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
526                    long userId, long eventId, java.lang.String title,
527                    java.lang.String description, java.lang.String location,
528                    int startDateMonth, int startDateDay, int startDateYear,
529                    int startDateHour, int startDateMinute, int durationHour,
530                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
531                    java.lang.String type, boolean repeating,
532                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
533                    int firstReminder, int secondReminder,
534                    com.liferay.portal.service.ServiceContext serviceContext)
535                    throws com.liferay.portal.kernel.exception.PortalException {
536                    return getService()
537                                       .updateEvent(userId, eventId, title, description, location,
538                            startDateMonth, startDateDay, startDateYear, startDateHour,
539                            startDateMinute, durationHour, durationMinute, allDay,
540                            timeZoneSensitive, type, repeating, recurrence, remindBy,
541                            firstReminder, secondReminder, serviceContext);
542            }
543    
544            /**
545            * @deprecated As of 6.2.0, replaced by {@link #updateEvent(long, long,
546            String, String, String, int, int, int, int, int, int, int,
547            boolean, boolean, String, boolean, TZSRecurrence, int, int,
548            int, ServiceContext)}
549            */
550            @Deprecated
551            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
552                    long userId, long eventId, java.lang.String title,
553                    java.lang.String description, java.lang.String location,
554                    int startDateMonth, int startDateDay, int startDateYear,
555                    int startDateHour, int startDateMinute, int endDateMonth,
556                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
557                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
558                    boolean repeating,
559                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
560                    int firstReminder, int secondReminder,
561                    com.liferay.portal.service.ServiceContext serviceContext)
562                    throws com.liferay.portal.kernel.exception.PortalException {
563                    return getService()
564                                       .updateEvent(userId, eventId, title, description, location,
565                            startDateMonth, startDateDay, startDateYear, startDateHour,
566                            startDateMinute, endDateMonth, endDateDay, endDateYear,
567                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
568                            repeating, recurrence, remindBy, firstReminder, secondReminder,
569                            serviceContext);
570            }
571    
572            public static CalEventLocalService getService() {
573                    if (_service == null) {
574                            _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
575    
576                            ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
577                                    "_service");
578                    }
579    
580                    return _service;
581            }
582    
583            /**
584             * @deprecated As of 6.2.0
585             */
586            @Deprecated
587            public void setService(CalEventLocalService service) {
588            }
589    
590            private static CalEventLocalService _service;
591    }