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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface CalEventLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
058 com.liferay.portlet.calendar.model.CalEvent calEvent)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
068 long eventId);
069
070
078 public com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
079 long eventId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
091 com.liferay.portlet.calendar.model.CalEvent calEvent)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.calendar.model.CalEvent fetchCalEvent(
173 long eventId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.calendar.model.CalEvent fetchCalEventByUuidAndCompanyId(
186 java.lang.String uuid, long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.calendar.model.CalEvent fetchCalEventByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 @Override
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public com.liferay.portal.model.PersistedModel getPersistedModel(
218 java.io.Serializable primaryKeyObj)
219 throws com.liferay.portal.kernel.exception.PortalException,
220 com.liferay.portal.kernel.exception.SystemException;
221
222
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndCompanyId(
233 java.lang.String uuid, long companyId)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
248 java.lang.String uuid, long groupId)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
266 int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public int getCalEventsCount()
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279
286 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
287 com.liferay.portlet.calendar.model.CalEvent calEvent)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290
295 public java.lang.String getBeanIdentifier();
296
297
302 public void setBeanIdentifier(java.lang.String beanIdentifier);
303
304 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
305 java.lang.String title, java.lang.String description,
306 java.lang.String location, int startDateMonth, int startDateDay,
307 int startDateYear, int startDateHour, int startDateMinute,
308 int durationHour, int durationMinute, boolean allDay,
309 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
310 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
311 int firstReminder, int secondReminder,
312 com.liferay.portal.service.ServiceContext serviceContext)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException;
315
316
322 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
323 java.lang.String title, java.lang.String description,
324 java.lang.String location, int startDateMonth, int startDateDay,
325 int startDateYear, int startDateHour, int startDateMinute,
326 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
327 int durationMinute, boolean allDay, boolean timeZoneSensitive,
328 java.lang.String type, boolean repeating,
329 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
330 int firstReminder, int secondReminder,
331 com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public void addEventResources(
336 com.liferay.portlet.calendar.model.CalEvent event,
337 boolean addGroupPermissions, boolean addGuestPermissions)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 public void addEventResources(
342 com.liferay.portlet.calendar.model.CalEvent event,
343 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException;
346
347 public void addEventResources(long eventId, boolean addGroupPermissions,
348 boolean addGuestPermissions)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 public void addEventResources(long eventId,
353 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public void checkEvents()
358 throws com.liferay.portal.kernel.exception.SystemException;
359
360 public com.liferay.portlet.calendar.model.CalEvent deleteEvent(
361 com.liferay.portlet.calendar.model.CalEvent event)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 public com.liferay.portlet.calendar.model.CalEvent deleteEvent(long eventId)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException;
368
369 public void deleteEvents(long groupId)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 public java.io.File exportEvent(long userId, long eventId)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 public java.io.File exportEvents(long userId,
378 java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
379 java.lang.String fileName)
380 throws com.liferay.portal.kernel.exception.PortalException,
381 com.liferay.portal.kernel.exception.SystemException;
382
383 public java.io.File exportGroupEvents(long userId, long groupId,
384 java.lang.String fileName)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
390 long companyId, int start, int end)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public int getCompanyEventsCount(long companyId)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
404 long groupId, java.util.Calendar cal)
405 throws com.liferay.portal.kernel.exception.SystemException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
409 long groupId, java.util.Calendar cal, java.lang.String type)
410 throws com.liferay.portal.kernel.exception.SystemException;
411
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
414 long groupId, java.util.Calendar cal, java.lang.String[] types)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
419 long groupId, java.lang.String type, int start, int end)
420 throws com.liferay.portal.kernel.exception.SystemException;
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
424 long groupId, java.lang.String[] types, int start, int end)
425 throws com.liferay.portal.kernel.exception.SystemException;
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public int getEventsCount(long groupId, java.lang.String type)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public int getEventsCount(long groupId, java.lang.String[] types)
433 throws com.liferay.portal.kernel.exception.SystemException;
434
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
441 long groupId)
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> getRepeatingEvents(
446 long groupId, java.util.Calendar cal, java.lang.String[] types)
447 throws com.liferay.portal.kernel.exception.SystemException;
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public boolean hasEvents(long groupId, java.util.Calendar cal)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454 public boolean hasEvents(long groupId, java.util.Calendar cal,
455 java.lang.String type)
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 java.lang.String[] types)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 public void importICal4j(long userId, long groupId,
464 java.io.InputStream inputStream)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 public void updateAsset(long userId,
469 com.liferay.portlet.calendar.model.CalEvent event,
470 long[] assetCategoryIds, java.lang.String[] assetTagNames,
471 long[] assetLinkEntryIds)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException;
474
475 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
476 long userId, long eventId, java.lang.String title,
477 java.lang.String description, java.lang.String location,
478 int startDateMonth, int startDateDay, int startDateYear,
479 int startDateHour, int startDateMinute, int durationHour,
480 int durationMinute, boolean allDay, boolean timeZoneSensitive,
481 java.lang.String type, boolean repeating,
482 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
483 int firstReminder, int secondReminder,
484 com.liferay.portal.service.ServiceContext serviceContext)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException;
487
488
494 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
495 long userId, long eventId, java.lang.String title,
496 java.lang.String description, java.lang.String location,
497 int startDateMonth, int startDateDay, int startDateYear,
498 int startDateHour, int startDateMinute, int endDateMonth,
499 int endDateDay, int endDateYear, int durationHour, int durationMinute,
500 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
501 boolean repeating,
502 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
503 int firstReminder, int secondReminder,
504 com.liferay.portal.service.ServiceContext serviceContext)
505 throws com.liferay.portal.kernel.exception.PortalException,
506 com.liferay.portal.kernel.exception.SystemException;
507 }