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
317 public static java.lang.String getBeanIdentifier() {
318 return getService().getBeanIdentifier();
319 }
320
321
328 public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
329 long eventId)
330 throws com.liferay.portal.kernel.exception.PortalException {
331 return getService().getCalEvent(eventId);
332 }
333
334
342 public static com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
343 java.lang.String uuid, long groupId)
344 throws com.liferay.portal.kernel.exception.PortalException {
345 return getService().getCalEventByUuidAndGroupId(uuid, groupId);
346 }
347
348
359 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
360 int start, int end) {
361 return getService().getCalEvents(start, end);
362 }
363
364
371 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
372 java.lang.String uuid, long companyId) {
373 return getService().getCalEventsByUuidAndCompanyId(uuid, companyId);
374 }
375
376
386 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEventsByUuidAndCompanyId(
387 java.lang.String uuid, long companyId, int start, int end,
388 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.calendar.model.CalEvent> orderByComparator) {
389 return getService()
390 .getCalEventsByUuidAndCompanyId(uuid, companyId, start, end,
391 orderByComparator);
392 }
393
394
399 public static int getCalEventsCount() {
400 return getService().getCalEventsCount();
401 }
402
403 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
404 long companyId, int start, int end) {
405 return getService().getCompanyEvents(companyId, start, end);
406 }
407
408 public static int getCompanyEventsCount(long companyId) {
409 return getService().getCompanyEventsCount(companyId);
410 }
411
412 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
413 long eventId)
414 throws com.liferay.portal.kernel.exception.PortalException {
415 return getService().getEvent(eventId);
416 }
417
418 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
419 long groupId, java.util.Calendar cal) {
420 return getService().getEvents(groupId, cal);
421 }
422
423 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
424 long groupId, java.util.Calendar cal, java.lang.String type) {
425 return getService().getEvents(groupId, cal, type);
426 }
427
428 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
429 long groupId, java.util.Calendar cal, java.lang.String[] types) {
430 return getService().getEvents(groupId, cal, types);
431 }
432
433 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
434 long groupId, java.lang.String type, int start, int end) {
435 return getService().getEvents(groupId, type, start, end);
436 }
437
438 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
439 long groupId, java.lang.String[] types, int start, int end) {
440 return getService().getEvents(groupId, types, start, end);
441 }
442
443 public static int getEventsCount(long groupId, java.lang.String type) {
444 return getService().getEventsCount(groupId, type);
445 }
446
447 public static int getEventsCount(long groupId, java.lang.String[] types) {
448 return getService().getEventsCount(groupId, types);
449 }
450
451 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
452 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
453 return getService().getExportActionableDynamicQuery(portletDataContext);
454 }
455
456 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents() {
457 return getService().getNoAssetEvents();
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
501 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
502 getService().setBeanIdentifier(beanIdentifier);
503 }
504
505 public static void updateAsset(long userId,
506 com.liferay.portlet.calendar.model.CalEvent event,
507 long[] assetCategoryIds, java.lang.String[] assetTagNames,
508 long[] assetLinkEntryIds)
509 throws com.liferay.portal.kernel.exception.PortalException {
510 getService()
511 .updateAsset(userId, event, assetCategoryIds, assetTagNames,
512 assetLinkEntryIds);
513 }
514
515
521 public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
522 com.liferay.portlet.calendar.model.CalEvent calEvent) {
523 return getService().updateCalEvent(calEvent);
524 }
525
526 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
527 long userId, long eventId, java.lang.String title,
528 java.lang.String description, java.lang.String location,
529 int startDateMonth, int startDateDay, int startDateYear,
530 int startDateHour, int startDateMinute, int durationHour,
531 int durationMinute, boolean allDay, boolean timeZoneSensitive,
532 java.lang.String type, boolean repeating,
533 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
534 int firstReminder, int secondReminder,
535 com.liferay.portal.service.ServiceContext serviceContext)
536 throws com.liferay.portal.kernel.exception.PortalException {
537 return getService()
538 .updateEvent(userId, eventId, title, description, location,
539 startDateMonth, startDateDay, startDateYear, startDateHour,
540 startDateMinute, durationHour, durationMinute, allDay,
541 timeZoneSensitive, type, repeating, recurrence, remindBy,
542 firstReminder, secondReminder, serviceContext);
543 }
544
545
551 @Deprecated
552 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
553 long userId, long eventId, java.lang.String title,
554 java.lang.String description, java.lang.String location,
555 int startDateMonth, int startDateDay, int startDateYear,
556 int startDateHour, int startDateMinute, int endDateMonth,
557 int endDateDay, int endDateYear, int durationHour, int durationMinute,
558 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
559 boolean repeating,
560 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
561 int firstReminder, int secondReminder,
562 com.liferay.portal.service.ServiceContext serviceContext)
563 throws com.liferay.portal.kernel.exception.PortalException {
564 return getService()
565 .updateEvent(userId, eventId, title, description, location,
566 startDateMonth, startDateDay, startDateYear, startDateHour,
567 startDateMinute, endDateMonth, endDateDay, endDateYear,
568 durationHour, durationMinute, allDay, timeZoneSensitive, type,
569 repeating, recurrence, remindBy, firstReminder, secondReminder,
570 serviceContext);
571 }
572
573 public static CalEventLocalService getService() {
574 if (_service == null) {
575 _service = (CalEventLocalService)PortalBeanLocatorUtil.locate(CalEventLocalService.class.getName());
576
577 ReferenceRegistry.registerReference(CalEventLocalServiceUtil.class,
578 "_service");
579 }
580
581 return _service;
582 }
583
584
587 @Deprecated
588 public void setService(CalEventLocalService service) {
589 }
590
591 private static CalEventLocalService _service;
592 }