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