001
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
036 @ProviderType
037 public class CalEventLocalServiceUtil {
038
043
044
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
063 public static com.liferay.portlet.calendar.model.CalEvent createCalEvent(
064 long eventId) {
065 return getService().createCalEvent(eventId);
066 }
067
068
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
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
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
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
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
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
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
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
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
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
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
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
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
298 public static int getCalEventsCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getCalEventsCount();
301 }
302
303
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
321 public static java.lang.String getBeanIdentifier() {
322 return getService().getBeanIdentifier();
323 }
324
325
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
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
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
631 public void setService(CalEventLocalService service) {
632 }
633
634 private static CalEventLocalService _service;
635 }