001
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
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface CalEventLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050
051
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
069 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
070 long eventId);
071
072
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
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
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
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
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
158 public long dynamicQueryCount(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162
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
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
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
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
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
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
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
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getCalEventsCount()
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283
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
300 public java.lang.String getBeanIdentifier();
301
302
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
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
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 }