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
037 @Deprecated
038 @ProviderType
039 public class CalEventLocalServiceUtil {
040
045
046
052 public static com.liferay.portlet.calendar.model.CalEvent addCalEvent(
053 com.liferay.portlet.calendar.model.CalEvent calEvent) {
054 return getService().addCalEvent(calEvent);
055 }
056
057 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
058 long userId, java.lang.String title, java.lang.String description,
059 java.lang.String location, int startDateMonth, int startDateDay,
060 int startDateYear, int startDateHour, int startDateMinute,
061 int durationHour, int durationMinute, boolean allDay,
062 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
063 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
064 int firstReminder, int secondReminder,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService()
068 .addEvent(userId, title, description, location,
069 startDateMonth, startDateDay, startDateYear, startDateHour,
070 startDateMinute, durationHour, durationMinute, allDay,
071 timeZoneSensitive, type, repeating, recurrence, remindBy,
072 firstReminder, secondReminder, serviceContext);
073 }
074
075
081 @Deprecated
082 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
083 long userId, java.lang.String title, java.lang.String description,
084 java.lang.String location, int startDateMonth, int startDateDay,
085 int startDateYear, int startDateHour, int startDateMinute,
086 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
087 int durationMinute, boolean allDay, boolean timeZoneSensitive,
088 java.lang.String type, boolean repeating,
089 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
090 int firstReminder, int secondReminder,
091 com.liferay.portal.service.ServiceContext serviceContext)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 return getService()
094 .addEvent(userId, title, description, location,
095 startDateMonth, startDateDay, startDateYear, startDateHour,
096 startDateMinute, endDateMonth, endDateDay, endDateYear,
097 durationHour, durationMinute, allDay, timeZoneSensitive, type,
098 repeating, recurrence, remindBy, firstReminder, secondReminder,
099 serviceContext);
100 }
101
102 public static void addEventResources(
103 com.liferay.portlet.calendar.model.CalEvent event,
104 boolean addGroupPermissions, boolean addGuestPermissions)
105 throws com.liferay.portal.kernel.exception.PortalException {
106 getService()
107 .addEventResources(event, addGroupPermissions, addGuestPermissions);
108 }
109
110 public static void addEventResources(
111 com.liferay.portlet.calendar.model.CalEvent event,
112 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
113 throws com.liferay.portal.kernel.exception.PortalException {
114 getService().addEventResources(event, modelPermissions);
115 }
116
117 public static void addEventResources(long eventId,
118 boolean addGroupPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.kernel.exception.PortalException {
120 getService()
121 .addEventResources(eventId, addGroupPermissions, addGuestPermissions);
122 }
123
124 public static void addEventResources(long eventId,
125 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
126 throws com.liferay.portal.kernel.exception.PortalException {
127 getService().addEventResources(eventId, modelPermissions);
128 }
129
130 public static void checkEvents() {
131 getService().checkEvents();
132 }
133
134
140 public static com.liferay.portlet.calendar.model.CalEvent createCalEvent(
141 long eventId) {
142 return getService().createCalEvent(eventId);
143 }
144
145
151 public static com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
152 com.liferay.portlet.calendar.model.CalEvent calEvent) {
153 return getService().deleteCalEvent(calEvent);
154 }
155
156
163 public static com.liferay.portlet.calendar.model.CalEvent deleteCalEvent(
164 long eventId)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 return getService().deleteCalEvent(eventId);
167 }
168
169 public static com.liferay.portlet.calendar.model.CalEvent deleteEvent(
170 com.liferay.portlet.calendar.model.CalEvent event)
171 throws com.liferay.portal.kernel.exception.PortalException {
172 return getService().deleteEvent(event);
173 }
174
175 public static com.liferay.portlet.calendar.model.CalEvent deleteEvent(
176 long eventId)
177 throws com.liferay.portal.kernel.exception.PortalException {
178 return getService().deleteEvent(eventId);
179 }
180
181 public static void deleteEvents(long groupId)
182 throws com.liferay.portal.kernel.exception.PortalException {
183 getService().deleteEvents(groupId);
184 }
185
186
189 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
190 com.liferay.portal.model.PersistedModel persistedModel)
191 throws com.liferay.portal.kernel.exception.PortalException {
192 return getService().deletePersistedModel(persistedModel);
193 }
194
195 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
196 return getService().dynamicQuery();
197 }
198
199
205 public static <T> java.util.List<T> dynamicQuery(
206 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
207 return getService().dynamicQuery(dynamicQuery);
208 }
209
210
222 public static <T> java.util.List<T> dynamicQuery(
223 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
224 int end) {
225 return getService().dynamicQuery(dynamicQuery, start, end);
226 }
227
228
241 public static <T> java.util.List<T> dynamicQuery(
242 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
243 int end,
244 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
245 return getService()
246 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
247 }
248
249
255 public static long dynamicQueryCount(
256 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
257 return getService().dynamicQueryCount(dynamicQuery);
258 }
259
260
267 public static long dynamicQueryCount(
268 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
269 com.liferay.portal.kernel.dao.orm.Projection projection) {
270 return getService().dynamicQueryCount(dynamicQuery, projection);
271 }
272
273 public static java.io.File exportEvent(long userId, long eventId)
274 throws com.liferay.portal.kernel.exception.PortalException {
275 return getService().exportEvent(userId, eventId);
276 }
277
278 public static java.io.File exportEvents(long userId,
279 java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
280 java.lang.String fileName)
281 throws com.liferay.portal.kernel.exception.PortalException {
282 return getService().exportEvents(userId, events, fileName);
283 }
284
285 public static java.io.File exportGroupEvents(long userId, long groupId,
286 java.lang.String fileName)
287 throws com.liferay.portal.kernel.exception.PortalException {
288 return getService().exportGroupEvents(userId, groupId, fileName);
289 }
290
291 public static com.liferay.portlet.calendar.model.CalEvent fetchCalEvent(
292 long eventId) {
293 return getService().fetchCalEvent(eventId);
294 }
295
296
303 public static com.liferay.portlet.calendar.model.CalEvent fetchCalEventByUuidAndGroupId(
304 java.lang.String uuid, long groupId) {
305 return getService().fetchCalEventByUuidAndGroupId(uuid, groupId);
306 }
307
308 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
309 return getService().getActionableDynamicQuery();
310 }
311
312
319 public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
320 long eventId)
321 throws com.liferay.portal.kernel.exception.PortalException {
322 return getService().getCalEvent(eventId);
323 }
324
325
333 public static com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
334 java.lang.String uuid, long groupId)
335 throws com.liferay.portal.kernel.exception.PortalException {
336 return getService().getCalEventByUuidAndGroupId(uuid, groupId);
337 }
338
339
350 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
351 int start, int end) {
352 return getService().getCalEvents(start, end);
353 }
354
355
362 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
363 java.lang.String uuid, long companyId) {
364 return getService().getCalEventsByUuidAndCompanyId(uuid, companyId);
365 }
366
367
377 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
378 java.lang.String uuid, long companyId, int start, int end,
379 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.calendar.model.CalEvent> orderByComparator) {
380 return getService()
381 .getCalEventsByUuidAndCompanyId(uuid, companyId, start, end,
382 orderByComparator);
383 }
384
385
390 public static int getCalEventsCount() {
391 return getService().getCalEventsCount();
392 }
393
394 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
395 long companyId, int start, int end) {
396 return getService().getCompanyEvents(companyId, start, end);
397 }
398
399 public static int getCompanyEventsCount(long companyId) {
400 return getService().getCompanyEventsCount(companyId);
401 }
402
403 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
404 long eventId)
405 throws com.liferay.portal.kernel.exception.PortalException {
406 return getService().getEvent(eventId);
407 }
408
409 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
410 long groupId, java.util.Calendar cal) {
411 return getService().getEvents(groupId, cal);
412 }
413
414 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
415 long groupId, java.util.Calendar cal, java.lang.String type) {
416 return getService().getEvents(groupId, cal, type);
417 }
418
419 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
420 long groupId, java.util.Calendar cal, java.lang.String[] types) {
421 return getService().getEvents(groupId, cal, types);
422 }
423
424 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
425 long groupId, java.lang.String type, int start, int end) {
426 return getService().getEvents(groupId, type, start, end);
427 }
428
429 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
430 long groupId, java.lang.String[] types, int start, int end) {
431 return getService().getEvents(groupId, types, start, end);
432 }
433
434 public static int getEventsCount(long groupId, java.lang.String type) {
435 return getService().getEventsCount(groupId, type);
436 }
437
438 public static int getEventsCount(long groupId, java.lang.String[] types) {
439 return getService().getEventsCount(groupId, types);
440 }
441
442 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
443 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
444 return getService().getExportActionableDynamicQuery(portletDataContext);
445 }
446
447 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
448 return getService().getIndexableActionableDynamicQuery();
449 }
450
451 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
452 return getService().getNoAssetEvents();
453 }
454
455
460 public static java.lang.String getOSGiServiceIdentifier() {
461 return getService().getOSGiServiceIdentifier();
462 }
463
464 public static com.liferay.portal.model.PersistedModel getPersistedModel(
465 java.io.Serializable primaryKeyObj)
466 throws com.liferay.portal.kernel.exception.PortalException {
467 return getService().getPersistedModel(primaryKeyObj);
468 }
469
470 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
471 long groupId) {
472 return getService().getRepeatingEvents(groupId);
473 }
474
475 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
476 long groupId, java.util.Calendar cal, java.lang.String[] types) {
477 return getService().getRepeatingEvents(groupId, cal, types);
478 }
479
480 public static boolean hasEvents(long groupId, java.util.Calendar cal) {
481 return getService().hasEvents(groupId, cal);
482 }
483
484 public static boolean hasEvents(long groupId, java.util.Calendar cal,
485 java.lang.String type) {
486 return getService().hasEvents(groupId, cal, type);
487 }
488
489 public static boolean hasEvents(long groupId, java.util.Calendar cal,
490 java.lang.String[] types) {
491 return getService().hasEvents(groupId, cal, types);
492 }
493
494 public static void importICal4j(long userId, long groupId,
495 java.io.InputStream inputStream)
496 throws com.liferay.portal.kernel.exception.PortalException {
497 getService().importICal4j(userId, groupId, inputStream);
498 }
499
500 public static void updateAsset(long userId,
501 com.liferay.portlet.calendar.model.CalEvent event,
502 long[] assetCategoryIds, java.lang.String[] assetTagNames,
503 long[] assetLinkEntryIds)
504 throws com.liferay.portal.kernel.exception.PortalException {
505 getService()
506 .updateAsset(userId, event, assetCategoryIds, assetTagNames,
507 assetLinkEntryIds);
508 }
509
510
516 public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
517 com.liferay.portlet.calendar.model.CalEvent calEvent) {
518 return getService().updateCalEvent(calEvent);
519 }
520
521 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
522 long userId, long eventId, java.lang.String title,
523 java.lang.String description, java.lang.String location,
524 int startDateMonth, int startDateDay, int startDateYear,
525 int startDateHour, int startDateMinute, int durationHour,
526 int durationMinute, boolean allDay, boolean timeZoneSensitive,
527 java.lang.String type, boolean repeating,
528 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
529 int firstReminder, int secondReminder,
530 com.liferay.portal.service.ServiceContext serviceContext)
531 throws com.liferay.portal.kernel.exception.PortalException {
532 return getService()
533 .updateEvent(userId, eventId, title, description, location,
534 startDateMonth, startDateDay, startDateYear, startDateHour,
535 startDateMinute, durationHour, durationMinute, allDay,
536 timeZoneSensitive, type, repeating, recurrence, remindBy,
537 firstReminder, secondReminder, serviceContext);
538 }
539
540
546 @Deprecated
547 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
548 long userId, long eventId, java.lang.String title,
549 java.lang.String description, java.lang.String location,
550 int startDateMonth, int startDateDay, int startDateYear,
551 int startDateHour, int startDateMinute, int endDateMonth,
552 int endDateDay, int endDateYear, int durationHour, int durationMinute,
553 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
554 boolean repeating,
555 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
556 int firstReminder, int secondReminder,
557 com.liferay.portal.service.ServiceContext serviceContext)
558 throws com.liferay.portal.kernel.exception.PortalException {
559 return getService()
560 .updateEvent(userId, eventId, title, description, location,
561 startDateMonth, startDateDay, startDateYear, startDateHour,
562 startDateMinute, endDateMonth, endDateDay, endDateYear,
563 durationHour, durationMinute, allDay, timeZoneSensitive, type,
564 repeating, recurrence, remindBy, firstReminder, secondReminder,
565 serviceContext);
566 }
567
568 public static CalEventLocalService getService() {
569 if (_service == null) {
570 _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
571
572 ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
573 "_service");
574 }
575
576 return _service;
577 }
578
579 private static CalEventLocalService _service;
580 }