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 java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
448 return getService().getNoAssetEvents();
449 }
450
451
456 public static java.lang.String getOSGiServiceIdentifier() {
457 return getService().getOSGiServiceIdentifier();
458 }
459
460 public static com.liferay.portal.model.PersistedModel getPersistedModel(
461 java.io.Serializable primaryKeyObj)
462 throws com.liferay.portal.kernel.exception.PortalException {
463 return getService().getPersistedModel(primaryKeyObj);
464 }
465
466 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
467 long groupId) {
468 return getService().getRepeatingEvents(groupId);
469 }
470
471 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
472 long groupId, java.util.Calendar cal, java.lang.String[] types) {
473 return getService().getRepeatingEvents(groupId, cal, types);
474 }
475
476 public static boolean hasEvents(long groupId, java.util.Calendar cal) {
477 return getService().hasEvents(groupId, cal);
478 }
479
480 public static boolean hasEvents(long groupId, java.util.Calendar cal,
481 java.lang.String type) {
482 return getService().hasEvents(groupId, cal, type);
483 }
484
485 public static boolean hasEvents(long groupId, java.util.Calendar cal,
486 java.lang.String[] types) {
487 return getService().hasEvents(groupId, cal, types);
488 }
489
490 public static void importICal4j(long userId, long groupId,
491 java.io.InputStream inputStream)
492 throws com.liferay.portal.kernel.exception.PortalException {
493 getService().importICal4j(userId, groupId, inputStream);
494 }
495
496 public static void updateAsset(long userId,
497 com.liferay.portlet.calendar.model.CalEvent event,
498 long[] assetCategoryIds, java.lang.String[] assetTagNames,
499 long[] assetLinkEntryIds)
500 throws com.liferay.portal.kernel.exception.PortalException {
501 getService()
502 .updateAsset(userId, event, assetCategoryIds, assetTagNames,
503 assetLinkEntryIds);
504 }
505
506
512 public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
513 com.liferay.portlet.calendar.model.CalEvent calEvent) {
514 return getService().updateCalEvent(calEvent);
515 }
516
517 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
518 long userId, long eventId, java.lang.String title,
519 java.lang.String description, java.lang.String location,
520 int startDateMonth, int startDateDay, int startDateYear,
521 int startDateHour, int startDateMinute, int durationHour,
522 int durationMinute, boolean allDay, boolean timeZoneSensitive,
523 java.lang.String type, boolean repeating,
524 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
525 int firstReminder, int secondReminder,
526 com.liferay.portal.service.ServiceContext serviceContext)
527 throws com.liferay.portal.kernel.exception.PortalException {
528 return getService()
529 .updateEvent(userId, eventId, title, description, location,
530 startDateMonth, startDateDay, startDateYear, startDateHour,
531 startDateMinute, durationHour, durationMinute, allDay,
532 timeZoneSensitive, type, repeating, recurrence, remindBy,
533 firstReminder, secondReminder, serviceContext);
534 }
535
536
542 @Deprecated
543 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
544 long userId, long eventId, java.lang.String title,
545 java.lang.String description, java.lang.String location,
546 int startDateMonth, int startDateDay, int startDateYear,
547 int startDateHour, int startDateMinute, int endDateMonth,
548 int endDateDay, int endDateYear, int durationHour, int durationMinute,
549 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
550 boolean repeating,
551 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
552 int firstReminder, int secondReminder,
553 com.liferay.portal.service.ServiceContext serviceContext)
554 throws com.liferay.portal.kernel.exception.PortalException {
555 return getService()
556 .updateEvent(userId, eventId, title, description, location,
557 startDateMonth, startDateDay, startDateYear, startDateHour,
558 startDateMinute, endDateMonth, endDateDay, endDateYear,
559 durationHour, durationMinute, allDay, timeZoneSensitive, type,
560 repeating, recurrence, remindBy, firstReminder, secondReminder,
561 serviceContext);
562 }
563
564 public static CalEventLocalService getService() {
565 if (_service == null) {
566 _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
567
568 ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
569 "_service");
570 }
571
572 return _service;
573 }
574
575
578 @Deprecated
579 public void setService(CalEventLocalService service) {
580 }
581
582 private static CalEventLocalService _service;
583 }