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