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