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
050 public static com.liferay.portlet.calendar.model.CalEvent addCalEvent(
051 com.liferay.portlet.calendar.model.CalEvent calEvent) {
052 return getService().addCalEvent(calEvent);
053 }
054
055 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
056 long userId, java.lang.String title, java.lang.String description,
057 java.lang.String location, int startDateMonth, int startDateDay,
058 int startDateYear, int startDateHour, int startDateMinute,
059 int durationHour, int durationMinute, boolean allDay,
060 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
061 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
062 int firstReminder, int secondReminder,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService()
066 .addEvent(userId, title, description, location,
067 startDateMonth, startDateDay, startDateYear, startDateHour,
068 startDateMinute, durationHour, durationMinute, allDay,
069 timeZoneSensitive, type, repeating, recurrence, remindBy,
070 firstReminder, secondReminder, serviceContext);
071 }
072
073
079 @Deprecated
080 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
081 long userId, java.lang.String title, java.lang.String description,
082 java.lang.String location, int startDateMonth, int startDateDay,
083 int startDateYear, int startDateHour, int startDateMinute,
084 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
085 int durationMinute, boolean allDay, boolean timeZoneSensitive,
086 java.lang.String type, boolean repeating,
087 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
088 int firstReminder, int secondReminder,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException {
091 return getService()
092 .addEvent(userId, title, description, location,
093 startDateMonth, startDateDay, startDateYear, startDateHour,
094 startDateMinute, endDateMonth, endDateDay, endDateYear,
095 durationHour, durationMinute, allDay, timeZoneSensitive, type,
096 repeating, recurrence, remindBy, firstReminder, secondReminder,
097 serviceContext);
098 }
099
100 public static void addEventResources(
101 com.liferay.portlet.calendar.model.CalEvent event,
102 boolean addGroupPermissions, boolean addGuestPermissions)
103 throws com.liferay.portal.kernel.exception.PortalException {
104 getService()
105 .addEventResources(event, addGroupPermissions, addGuestPermissions);
106 }
107
108 public static void addEventResources(
109 com.liferay.portlet.calendar.model.CalEvent event,
110 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 getService().addEventResources(event, groupPermissions, guestPermissions);
113 }
114
115 public static void addEventResources(long eventId,
116 boolean addGroupPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.kernel.exception.PortalException {
118 getService()
119 .addEventResources(eventId, addGroupPermissions, addGuestPermissions);
120 }
121
122 public static void addEventResources(long eventId,
123 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
124 throws com.liferay.portal.kernel.exception.PortalException {
125 getService()
126 .addEventResources(eventId, groupPermissions, guestPermissions);
127 }
128
129 public static void checkEvents() {
130 getService().checkEvents();
131 }
132
133
139 public static com.liferay.portlet.calendar.model.CalEvent createCalEvent(
140 long eventId) {
141 return getService().createCalEvent(eventId);
142 }
143
144
150 public static com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
151 com.liferay.portlet.calendar.model.CalEvent calEvent) {
152 return getService().deleteCalEvent(calEvent);
153 }
154
155
162 public static com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
163 long eventId)
164 throws com.liferay.portal.kernel.exception.PortalException {
165 return getService().deleteCalEvent(eventId);
166 }
167
168 public static com.liferay.portlet.calendar.model.CalEvent deleteEvent(
169 com.liferay.portlet.calendar.model.CalEvent event)
170 throws com.liferay.portal.kernel.exception.PortalException {
171 return getService().deleteEvent(event);
172 }
173
174 public static com.liferay.portlet.calendar.model.CalEvent deleteEvent(
175 long eventId)
176 throws com.liferay.portal.kernel.exception.PortalException {
177 return getService().deleteEvent(eventId);
178 }
179
180 public static void deleteEvents(long groupId)
181 throws com.liferay.portal.kernel.exception.PortalException {
182 getService().deleteEvents(groupId);
183 }
184
185
188 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
189 com.liferay.portal.model.PersistedModel persistedModel)
190 throws com.liferay.portal.kernel.exception.PortalException {
191 return getService().deletePersistedModel(persistedModel);
192 }
193
194 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
195 return getService().dynamicQuery();
196 }
197
198
204 public static <T> java.util.List<T> dynamicQuery(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
206 return getService().dynamicQuery(dynamicQuery);
207 }
208
209
221 public static <T> java.util.List<T> dynamicQuery(
222 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
223 int end) {
224 return getService().dynamicQuery(dynamicQuery, start, end);
225 }
226
227
240 public static <T> java.util.List<T> dynamicQuery(
241 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
242 int end,
243 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
244 return getService()
245 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
246 }
247
248
254 public static long dynamicQueryCount(
255 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
256 return getService().dynamicQueryCount(dynamicQuery);
257 }
258
259
266 public static long dynamicQueryCount(
267 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
268 com.liferay.portal.kernel.dao.orm.Projection projection) {
269 return getService().dynamicQueryCount(dynamicQuery, projection);
270 }
271
272 public static java.io.File exportEvent(long userId, long eventId)
273 throws com.liferay.portal.kernel.exception.PortalException {
274 return getService().exportEvent(userId, eventId);
275 }
276
277 public static java.io.File exportEvents(long userId,
278 java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
279 java.lang.String fileName)
280 throws com.liferay.portal.kernel.exception.PortalException {
281 return getService().exportEvents(userId, events, fileName);
282 }
283
284 public static java.io.File exportGroupEvents(long userId, long groupId,
285 java.lang.String fileName)
286 throws com.liferay.portal.kernel.exception.PortalException {
287 return getService().exportGroupEvents(userId, groupId, fileName);
288 }
289
290 public static com.liferay.portlet.calendar.model.CalEvent fetchCalEvent(
291 long eventId) {
292 return getService().fetchCalEvent(eventId);
293 }
294
295
302 public static com.liferay.portlet.calendar.model.CalEvent fetchCalEventByUuidAndGroupId(
303 java.lang.String uuid, long groupId) {
304 return getService().fetchCalEventByUuidAndGroupId(uuid, groupId);
305 }
306
307 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
308 return getService().getActionableDynamicQuery();
309 }
310
311
316 public static java.lang.String getBeanIdentifier() {
317 return getService().getBeanIdentifier();
318 }
319
320
327 public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
328 long eventId)
329 throws com.liferay.portal.kernel.exception.PortalException {
330 return getService().getCalEvent(eventId);
331 }
332
333
341 public static com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
342 java.lang.String uuid, long groupId)
343 throws com.liferay.portal.kernel.exception.PortalException {
344 return getService().getCalEventByUuidAndGroupId(uuid, groupId);
345 }
346
347
358 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
359 int start, int end) {
360 return getService().getCalEvents(start, end);
361 }
362
363
370 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
371 java.lang.String uuid, long companyId) {
372 return getService().getCalEventsByUuidAndCompanyId(uuid, companyId);
373 }
374
375
385 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
386 java.lang.String uuid, long companyId, int start, int end,
387 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.calendar.model.CalEvent> orderByComparator) {
388 return getService()
389 .getCalEventsByUuidAndCompanyId(uuid, companyId, start, end,
390 orderByComparator);
391 }
392
393
398 public static int getCalEventsCount() {
399 return getService().getCalEventsCount();
400 }
401
402 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
403 long companyId, int start, int end) {
404 return getService().getCompanyEvents(companyId, start, end);
405 }
406
407 public static int getCompanyEventsCount(long companyId) {
408 return getService().getCompanyEventsCount(companyId);
409 }
410
411 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
412 long eventId)
413 throws com.liferay.portal.kernel.exception.PortalException {
414 return getService().getEvent(eventId);
415 }
416
417 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
418 long groupId, java.util.Calendar cal) {
419 return getService().getEvents(groupId, cal);
420 }
421
422 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
423 long groupId, java.util.Calendar cal, java.lang.String type) {
424 return getService().getEvents(groupId, cal, type);
425 }
426
427 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
428 long groupId, java.util.Calendar cal, java.lang.String[] types) {
429 return getService().getEvents(groupId, cal, types);
430 }
431
432 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
433 long groupId, java.lang.String type, int start, int end) {
434 return getService().getEvents(groupId, type, start, end);
435 }
436
437 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
438 long groupId, java.lang.String[] types, int start, int end) {
439 return getService().getEvents(groupId, types, start, end);
440 }
441
442 public static int getEventsCount(long groupId, java.lang.String type) {
443 return getService().getEventsCount(groupId, type);
444 }
445
446 public static int getEventsCount(long groupId, java.lang.String[] types) {
447 return getService().getEventsCount(groupId, types);
448 }
449
450 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
451 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
452 return getService().getExportActionableDynamicQuery(portletDataContext);
453 }
454
455 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
456 return getService().getNoAssetEvents();
457 }
458
459 public static com.liferay.portal.model.PersistedModel getPersistedModel(
460 java.io.Serializable primaryKeyObj)
461 throws com.liferay.portal.kernel.exception.PortalException {
462 return getService().getPersistedModel(primaryKeyObj);
463 }
464
465 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
466 long groupId) {
467 return getService().getRepeatingEvents(groupId);
468 }
469
470 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
471 long groupId, java.util.Calendar cal, java.lang.String[] types) {
472 return getService().getRepeatingEvents(groupId, cal, types);
473 }
474
475 public static boolean hasEvents(long groupId, java.util.Calendar cal) {
476 return getService().hasEvents(groupId, cal);
477 }
478
479 public static boolean hasEvents(long groupId, java.util.Calendar cal,
480 java.lang.String type) {
481 return getService().hasEvents(groupId, cal, type);
482 }
483
484 public static boolean hasEvents(long groupId, java.util.Calendar cal,
485 java.lang.String[] types) {
486 return getService().hasEvents(groupId, cal, types);
487 }
488
489 public static void importICal4j(long userId, long groupId,
490 java.io.InputStream inputStream)
491 throws com.liferay.portal.kernel.exception.PortalException {
492 getService().importICal4j(userId, groupId, inputStream);
493 }
494
495
500 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
501 getService().setBeanIdentifier(beanIdentifier);
502 }
503
504 public static void updateAsset(long userId,
505 com.liferay.portlet.calendar.model.CalEvent event,
506 long[] assetCategoryIds, java.lang.String[] assetTagNames,
507 long[] assetLinkEntryIds)
508 throws com.liferay.portal.kernel.exception.PortalException {
509 getService()
510 .updateAsset(userId, event, assetCategoryIds, assetTagNames,
511 assetLinkEntryIds);
512 }
513
514
520 public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
521 com.liferay.portlet.calendar.model.CalEvent calEvent) {
522 return getService().updateCalEvent(calEvent);
523 }
524
525 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
526 long userId, long eventId, java.lang.String title,
527 java.lang.String description, java.lang.String location,
528 int startDateMonth, int startDateDay, int startDateYear,
529 int startDateHour, int startDateMinute, int durationHour,
530 int durationMinute, boolean allDay, boolean timeZoneSensitive,
531 java.lang.String type, boolean repeating,
532 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
533 int firstReminder, int secondReminder,
534 com.liferay.portal.service.ServiceContext serviceContext)
535 throws com.liferay.portal.kernel.exception.PortalException {
536 return getService()
537 .updateEvent(userId, eventId, title, description, location,
538 startDateMonth, startDateDay, startDateYear, startDateHour,
539 startDateMinute, durationHour, durationMinute, allDay,
540 timeZoneSensitive, type, repeating, recurrence, remindBy,
541 firstReminder, secondReminder, serviceContext);
542 }
543
544
550 @Deprecated
551 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
552 long userId, long eventId, java.lang.String title,
553 java.lang.String description, java.lang.String location,
554 int startDateMonth, int startDateDay, int startDateYear,
555 int startDateHour, int startDateMinute, int endDateMonth,
556 int endDateDay, int endDateYear, int durationHour, int durationMinute,
557 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
558 boolean repeating,
559 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
560 int firstReminder, int secondReminder,
561 com.liferay.portal.service.ServiceContext serviceContext)
562 throws com.liferay.portal.kernel.exception.PortalException {
563 return getService()
564 .updateEvent(userId, eventId, title, description, location,
565 startDateMonth, startDateDay, startDateYear, startDateHour,
566 startDateMinute, endDateMonth, endDateDay, endDateYear,
567 durationHour, durationMinute, allDay, timeZoneSensitive, type,
568 repeating, recurrence, remindBy, firstReminder, secondReminder,
569 serviceContext);
570 }
571
572 public static CalEventLocalService getService() {
573 if (_service == null) {
574 _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
575
576 ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
577 "_service");
578 }
579
580 return _service;
581 }
582
583
586 @Deprecated
587 public void setService(CalEventLocalService service) {
588 }
589
590 private static CalEventLocalService _service;
591 }