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 cal event with the primary key.
314            *
315            * @param eventId the primary key of the cal event
316            * @return the cal event
317            * @throws PortalException if a cal event with the primary key could not be found
318            */
319            public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
320                    long eventId)
321                    throws com.liferay.portal.kernel.exception.PortalException {
322                    return getService().getCalEvent(eventId);
323            }
324    
325            /**
326            * Returns the cal event matching the UUID and group.
327            *
328            * @param uuid the cal event's UUID
329            * @param groupId the primary key of the group
330            * @return the matching cal event
331            * @throws PortalException if a matching cal event could not be found
332            */
333            public static com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
334                    java.lang.String uuid, long groupId)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    return getService().getCalEventByUuidAndGroupId(uuid, groupId);
337            }
338    
339            /**
340            * Returns a range of all the cal events.
341            *
342            * <p>
343            * 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.
344            * </p>
345            *
346            * @param start the lower bound of the range of cal events
347            * @param end the upper bound of the range of cal events (not inclusive)
348            * @return the range of cal events
349            */
350            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
351                    int start, int end) {
352                    return getService().getCalEvents(start, end);
353            }
354    
355            /**
356            * Returns all the cal events matching the UUID and company.
357            *
358            * @param uuid the UUID of the cal events
359            * @param companyId the primary key of the company
360            * @return the matching cal events, or an empty list if no matches were found
361            */
362            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
363                    java.lang.String uuid, long companyId) {
364                    return getService().getCalEventsByUuidAndCompanyId(uuid, companyId);
365            }
366    
367            /**
368            * Returns a range of cal events matching the UUID and company.
369            *
370            * @param uuid the UUID of the cal events
371            * @param companyId the primary key of the company
372            * @param start the lower bound of the range of cal events
373            * @param end the upper bound of the range of cal events (not inclusive)
374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
375            * @return the range of matching cal events, or an empty list if no matches were found
376            */
377            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
378                    java.lang.String uuid, long companyId, int start, int end,
379                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.calendar.model.CalEvent> orderByComparator) {
380                    return getService()
381                                       .getCalEventsByUuidAndCompanyId(uuid, companyId, start, end,
382                            orderByComparator);
383            }
384    
385            /**
386            * Returns the number of cal events.
387            *
388            * @return the number of cal events
389            */
390            public static int getCalEventsCount() {
391                    return getService().getCalEventsCount();
392            }
393    
394            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
395                    long companyId, int start, int end) {
396                    return getService().getCompanyEvents(companyId, start, end);
397            }
398    
399            public static int getCompanyEventsCount(long companyId) {
400                    return getService().getCompanyEventsCount(companyId);
401            }
402    
403            public static com.liferay.portlet.calendar.model.CalEvent getEvent(
404                    long eventId)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    return getService().getEvent(eventId);
407            }
408    
409            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
410                    long groupId, java.util.Calendar cal) {
411                    return getService().getEvents(groupId, cal);
412            }
413    
414            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
415                    long groupId, java.util.Calendar cal, java.lang.String type) {
416                    return getService().getEvents(groupId, cal, type);
417            }
418    
419            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
420                    long groupId, java.util.Calendar cal, java.lang.String[] types) {
421                    return getService().getEvents(groupId, cal, types);
422            }
423    
424            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
425                    long groupId, java.lang.String type, int start, int end) {
426                    return getService().getEvents(groupId, type, start, end);
427            }
428    
429            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
430                    long groupId, java.lang.String[] types, int start, int end) {
431                    return getService().getEvents(groupId, types, start, end);
432            }
433    
434            public static int getEventsCount(long groupId, java.lang.String type) {
435                    return getService().getEventsCount(groupId, type);
436            }
437    
438            public static int getEventsCount(long groupId, java.lang.String[] types) {
439                    return getService().getEventsCount(groupId, types);
440            }
441    
442            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
443                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
444                    return getService().getExportActionableDynamicQuery(portletDataContext);
445            }
446    
447            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
448                    return getService().getNoAssetEvents();
449            }
450    
451            /**
452            * Returns the OSGi service identifier.
453            *
454            * @return the OSGi service identifier
455            */
456            public static java.lang.String getOSGiServiceIdentifier() {
457                    return getService().getOSGiServiceIdentifier();
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            public static void updateAsset(long userId,
497                    com.liferay.portlet.calendar.model.CalEvent event,
498                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
499                    long[] assetLinkEntryIds)
500                    throws com.liferay.portal.kernel.exception.PortalException {
501                    getService()
502                            .updateAsset(userId, event, assetCategoryIds, assetTagNames,
503                            assetLinkEntryIds);
504            }
505    
506            /**
507            * Updates the cal event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
508            *
509            * @param calEvent the cal event
510            * @return the cal event that was updated
511            */
512            public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
513                    com.liferay.portlet.calendar.model.CalEvent calEvent) {
514                    return getService().updateCalEvent(calEvent);
515            }
516    
517            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
518                    long userId, long eventId, java.lang.String title,
519                    java.lang.String description, java.lang.String location,
520                    int startDateMonth, int startDateDay, int startDateYear,
521                    int startDateHour, int startDateMinute, int durationHour,
522                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
523                    java.lang.String type, boolean repeating,
524                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
525                    int firstReminder, int secondReminder,
526                    com.liferay.portal.service.ServiceContext serviceContext)
527                    throws com.liferay.portal.kernel.exception.PortalException {
528                    return getService()
529                                       .updateEvent(userId, eventId, title, description, location,
530                            startDateMonth, startDateDay, startDateYear, startDateHour,
531                            startDateMinute, durationHour, durationMinute, allDay,
532                            timeZoneSensitive, type, repeating, recurrence, remindBy,
533                            firstReminder, secondReminder, serviceContext);
534            }
535    
536            /**
537            * @deprecated As of 6.2.0, replaced by {@link #updateEvent(long, long,
538            String, String, String, int, int, int, int, int, int, int,
539            boolean, boolean, String, boolean, TZSRecurrence, int, int,
540            int, ServiceContext)}
541            */
542            @Deprecated
543            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
544                    long userId, long eventId, java.lang.String title,
545                    java.lang.String description, java.lang.String location,
546                    int startDateMonth, int startDateDay, int startDateYear,
547                    int startDateHour, int startDateMinute, int endDateMonth,
548                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
549                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
550                    boolean repeating,
551                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
552                    int firstReminder, int secondReminder,
553                    com.liferay.portal.service.ServiceContext serviceContext)
554                    throws com.liferay.portal.kernel.exception.PortalException {
555                    return getService()
556                                       .updateEvent(userId, eventId, title, description, location,
557                            startDateMonth, startDateDay, startDateYear, startDateHour,
558                            startDateMinute, endDateMonth, endDateDay, endDateYear,
559                            durationHour, durationMinute, allDay, timeZoneSensitive, type,
560                            repeating, recurrence, remindBy, firstReminder, secondReminder,
561                            serviceContext);
562            }
563    
564            public static CalEventLocalService getService() {
565                    if (_service == null) {
566                            _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
567    
568                            ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
569                                    "_service");
570                    }
571    
572                    return _service;
573            }
574    
575            /**
576             * @deprecated As of 6.2.0
577             */
578            @Deprecated
579            public void setService(CalEventLocalService service) {
580            }
581    
582            private static CalEventLocalService _service;
583    }