001
014
015 package com.liferay.portlet.calendar.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.MethodHandler;
020 import com.liferay.portal.kernel.util.MethodKey;
021 import com.liferay.portal.security.auth.HttpPrincipal;
022 import com.liferay.portal.service.http.TunnelUtil;
023
024 import com.liferay.portlet.calendar.service.CalEventServiceUtil;
025
026
056 public class CalEventServiceHttp {
057 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
058 HttpPrincipal httpPrincipal, java.lang.String title,
059 java.lang.String description, java.lang.String location,
060 int startDateMonth, int startDateDay, int startDateYear,
061 int startDateHour, int startDateMinute, int durationHour,
062 int durationMinute, boolean allDay, boolean timeZoneSensitive,
063 java.lang.String type, boolean repeating,
064 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
065 int firstReminder, int secondReminder,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 try {
070 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
071 "addEvent", _addEventParameterTypes0);
072
073 MethodHandler methodHandler = new MethodHandler(methodKey, title,
074 description, location, startDateMonth, startDateDay,
075 startDateYear, startDateHour, startDateMinute,
076 durationHour, durationMinute, allDay, timeZoneSensitive,
077 type, repeating, recurrence, remindBy, firstReminder,
078 secondReminder, serviceContext);
079
080 Object returnObj = null;
081
082 try {
083 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
084 }
085 catch (Exception e) {
086 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
087 throw (com.liferay.portal.kernel.exception.PortalException)e;
088 }
089
090 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
091 throw (com.liferay.portal.kernel.exception.SystemException)e;
092 }
093
094 throw new com.liferay.portal.kernel.exception.SystemException(e);
095 }
096
097 return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
098 }
099 catch (com.liferay.portal.kernel.exception.SystemException se) {
100 _log.error(se, se);
101
102 throw se;
103 }
104 }
105
106 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
107 HttpPrincipal httpPrincipal, java.lang.String title,
108 java.lang.String description, java.lang.String location,
109 int startDateMonth, int startDateDay, int startDateYear,
110 int startDateHour, int startDateMinute, int endDateMonth,
111 int endDateDay, int endDateYear, int durationHour, int durationMinute,
112 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
113 boolean repeating,
114 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
115 int firstReminder, int secondReminder,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 try {
120 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
121 "addEvent", _addEventParameterTypes1);
122
123 MethodHandler methodHandler = new MethodHandler(methodKey, title,
124 description, location, startDateMonth, startDateDay,
125 startDateYear, startDateHour, startDateMinute,
126 endDateMonth, endDateDay, endDateYear, durationHour,
127 durationMinute, allDay, timeZoneSensitive, type, repeating,
128 recurrence, remindBy, firstReminder, secondReminder,
129 serviceContext);
130
131 Object returnObj = null;
132
133 try {
134 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
135 }
136 catch (Exception e) {
137 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
138 throw (com.liferay.portal.kernel.exception.PortalException)e;
139 }
140
141 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
142 throw (com.liferay.portal.kernel.exception.SystemException)e;
143 }
144
145 throw new com.liferay.portal.kernel.exception.SystemException(e);
146 }
147
148 return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
149 }
150 catch (com.liferay.portal.kernel.exception.SystemException se) {
151 _log.error(se, se);
152
153 throw se;
154 }
155 }
156
157 public static void deleteEvent(HttpPrincipal httpPrincipal, long eventId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 try {
161 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
162 "deleteEvent", _deleteEventParameterTypes2);
163
164 MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
165
166 try {
167 TunnelUtil.invoke(httpPrincipal, methodHandler);
168 }
169 catch (Exception e) {
170 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
171 throw (com.liferay.portal.kernel.exception.PortalException)e;
172 }
173
174 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
175 throw (com.liferay.portal.kernel.exception.SystemException)e;
176 }
177
178 throw new com.liferay.portal.kernel.exception.SystemException(e);
179 }
180 }
181 catch (com.liferay.portal.kernel.exception.SystemException se) {
182 _log.error(se, se);
183
184 throw se;
185 }
186 }
187
188 public static java.io.File exportEvent(HttpPrincipal httpPrincipal,
189 long eventId)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 try {
193 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
194 "exportEvent", _exportEventParameterTypes3);
195
196 MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
197
198 Object returnObj = null;
199
200 try {
201 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
202 }
203 catch (Exception e) {
204 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
205 throw (com.liferay.portal.kernel.exception.PortalException)e;
206 }
207
208 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
209 throw (com.liferay.portal.kernel.exception.SystemException)e;
210 }
211
212 throw new com.liferay.portal.kernel.exception.SystemException(e);
213 }
214
215 return (java.io.File)returnObj;
216 }
217 catch (com.liferay.portal.kernel.exception.SystemException se) {
218 _log.error(se, se);
219
220 throw se;
221 }
222 }
223
224 public static java.io.File exportEvents(HttpPrincipal httpPrincipal,
225 java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
226 java.lang.String fileName)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException {
229 try {
230 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
231 "exportEvents", _exportEventsParameterTypes4);
232
233 MethodHandler methodHandler = new MethodHandler(methodKey, events,
234 fileName);
235
236 Object returnObj = null;
237
238 try {
239 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
240 }
241 catch (Exception e) {
242 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
243 throw (com.liferay.portal.kernel.exception.PortalException)e;
244 }
245
246 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
247 throw (com.liferay.portal.kernel.exception.SystemException)e;
248 }
249
250 throw new com.liferay.portal.kernel.exception.SystemException(e);
251 }
252
253 return (java.io.File)returnObj;
254 }
255 catch (com.liferay.portal.kernel.exception.SystemException se) {
256 _log.error(se, se);
257
258 throw se;
259 }
260 }
261
262 public static java.io.File exportGroupEvents(HttpPrincipal httpPrincipal,
263 long groupId, java.lang.String fileName)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException {
266 try {
267 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
268 "exportGroupEvents", _exportGroupEventsParameterTypes5);
269
270 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
271 fileName);
272
273 Object returnObj = null;
274
275 try {
276 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
277 }
278 catch (Exception e) {
279 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
280 throw (com.liferay.portal.kernel.exception.PortalException)e;
281 }
282
283 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
284 throw (com.liferay.portal.kernel.exception.SystemException)e;
285 }
286
287 throw new com.liferay.portal.kernel.exception.SystemException(e);
288 }
289
290 return (java.io.File)returnObj;
291 }
292 catch (com.liferay.portal.kernel.exception.SystemException se) {
293 _log.error(se, se);
294
295 throw se;
296 }
297 }
298
299 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
300 HttpPrincipal httpPrincipal, long eventId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 try {
304 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
305 "getEvent", _getEventParameterTypes6);
306
307 MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
308
309 Object returnObj = null;
310
311 try {
312 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
313 }
314 catch (Exception e) {
315 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
316 throw (com.liferay.portal.kernel.exception.PortalException)e;
317 }
318
319 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
320 throw (com.liferay.portal.kernel.exception.SystemException)e;
321 }
322
323 throw new com.liferay.portal.kernel.exception.SystemException(e);
324 }
325
326 return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
327 }
328 catch (com.liferay.portal.kernel.exception.SystemException se) {
329 _log.error(se, se);
330
331 throw se;
332 }
333 }
334
335 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
336 HttpPrincipal httpPrincipal, long groupId, java.util.Calendar cal,
337 java.lang.String type)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 try {
341 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
342 "getEvents", _getEventsParameterTypes7);
343
344 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
345 cal, type);
346
347 Object returnObj = null;
348
349 try {
350 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
351 }
352 catch (Exception e) {
353 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
354 throw (com.liferay.portal.kernel.exception.PortalException)e;
355 }
356
357 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
358 throw (com.liferay.portal.kernel.exception.SystemException)e;
359 }
360
361 throw new com.liferay.portal.kernel.exception.SystemException(e);
362 }
363
364 return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
365 }
366 catch (com.liferay.portal.kernel.exception.SystemException se) {
367 _log.error(se, se);
368
369 throw se;
370 }
371 }
372
373 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
374 HttpPrincipal httpPrincipal, long groupId, java.util.Calendar cal,
375 java.lang.String[] types)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 try {
379 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
380 "getEvents", _getEventsParameterTypes8);
381
382 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
383 cal, types);
384
385 Object returnObj = null;
386
387 try {
388 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
389 }
390 catch (Exception e) {
391 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
392 throw (com.liferay.portal.kernel.exception.PortalException)e;
393 }
394
395 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
396 throw (com.liferay.portal.kernel.exception.SystemException)e;
397 }
398
399 throw new com.liferay.portal.kernel.exception.SystemException(e);
400 }
401
402 return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
403 }
404 catch (com.liferay.portal.kernel.exception.SystemException se) {
405 _log.error(se, se);
406
407 throw se;
408 }
409 }
410
411 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
412 HttpPrincipal httpPrincipal, long groupId, java.lang.String type,
413 int start, int end)
414 throws com.liferay.portal.kernel.exception.SystemException {
415 try {
416 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
417 "getEvents", _getEventsParameterTypes9);
418
419 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
420 type, start, end);
421
422 Object returnObj = null;
423
424 try {
425 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
426 }
427 catch (Exception e) {
428 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
429 throw (com.liferay.portal.kernel.exception.SystemException)e;
430 }
431
432 throw new com.liferay.portal.kernel.exception.SystemException(e);
433 }
434
435 return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
436 }
437 catch (com.liferay.portal.kernel.exception.SystemException se) {
438 _log.error(se, se);
439
440 throw se;
441 }
442 }
443
444 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
445 HttpPrincipal httpPrincipal, long groupId, java.lang.String[] types,
446 int start, int end)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 try {
449 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
450 "getEvents", _getEventsParameterTypes10);
451
452 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
453 types, start, end);
454
455 Object returnObj = null;
456
457 try {
458 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
459 }
460 catch (Exception e) {
461 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
462 throw (com.liferay.portal.kernel.exception.SystemException)e;
463 }
464
465 throw new com.liferay.portal.kernel.exception.SystemException(e);
466 }
467
468 return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
469 }
470 catch (com.liferay.portal.kernel.exception.SystemException se) {
471 _log.error(se, se);
472
473 throw se;
474 }
475 }
476
477 public static int getEventsCount(HttpPrincipal httpPrincipal, long groupId,
478 java.lang.String type)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 try {
481 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
482 "getEventsCount", _getEventsCountParameterTypes11);
483
484 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
485 type);
486
487 Object returnObj = null;
488
489 try {
490 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
491 }
492 catch (Exception e) {
493 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
494 throw (com.liferay.portal.kernel.exception.SystemException)e;
495 }
496
497 throw new com.liferay.portal.kernel.exception.SystemException(e);
498 }
499
500 return ((Integer)returnObj).intValue();
501 }
502 catch (com.liferay.portal.kernel.exception.SystemException se) {
503 _log.error(se, se);
504
505 throw se;
506 }
507 }
508
509 public static int getEventsCount(HttpPrincipal httpPrincipal, long groupId,
510 java.lang.String[] types)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 try {
513 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
514 "getEventsCount", _getEventsCountParameterTypes12);
515
516 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
517 types);
518
519 Object returnObj = null;
520
521 try {
522 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
523 }
524 catch (Exception e) {
525 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
526 throw (com.liferay.portal.kernel.exception.SystemException)e;
527 }
528
529 throw new com.liferay.portal.kernel.exception.SystemException(e);
530 }
531
532 return ((Integer)returnObj).intValue();
533 }
534 catch (com.liferay.portal.kernel.exception.SystemException se) {
535 _log.error(se, se);
536
537 throw se;
538 }
539 }
540
541 public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
542 java.util.Calendar cal)
543 throws com.liferay.portal.kernel.exception.PortalException,
544 com.liferay.portal.kernel.exception.SystemException {
545 try {
546 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
547 "hasEvents", _hasEventsParameterTypes13);
548
549 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
550 cal);
551
552 Object returnObj = null;
553
554 try {
555 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
556 }
557 catch (Exception e) {
558 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
559 throw (com.liferay.portal.kernel.exception.PortalException)e;
560 }
561
562 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
563 throw (com.liferay.portal.kernel.exception.SystemException)e;
564 }
565
566 throw new com.liferay.portal.kernel.exception.SystemException(e);
567 }
568
569 return ((Boolean)returnObj).booleanValue();
570 }
571 catch (com.liferay.portal.kernel.exception.SystemException se) {
572 _log.error(se, se);
573
574 throw se;
575 }
576 }
577
578 public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
579 java.util.Calendar cal, java.lang.String type)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException {
582 try {
583 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
584 "hasEvents", _hasEventsParameterTypes14);
585
586 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
587 cal, type);
588
589 Object returnObj = null;
590
591 try {
592 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
593 }
594 catch (Exception e) {
595 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
596 throw (com.liferay.portal.kernel.exception.PortalException)e;
597 }
598
599 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
600 throw (com.liferay.portal.kernel.exception.SystemException)e;
601 }
602
603 throw new com.liferay.portal.kernel.exception.SystemException(e);
604 }
605
606 return ((Boolean)returnObj).booleanValue();
607 }
608 catch (com.liferay.portal.kernel.exception.SystemException se) {
609 _log.error(se, se);
610
611 throw se;
612 }
613 }
614
615 public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
616 java.util.Calendar cal, java.lang.String[] types)
617 throws com.liferay.portal.kernel.exception.PortalException,
618 com.liferay.portal.kernel.exception.SystemException {
619 try {
620 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
621 "hasEvents", _hasEventsParameterTypes15);
622
623 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
624 cal, types);
625
626 Object returnObj = null;
627
628 try {
629 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
630 }
631 catch (Exception e) {
632 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
633 throw (com.liferay.portal.kernel.exception.PortalException)e;
634 }
635
636 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
637 throw (com.liferay.portal.kernel.exception.SystemException)e;
638 }
639
640 throw new com.liferay.portal.kernel.exception.SystemException(e);
641 }
642
643 return ((Boolean)returnObj).booleanValue();
644 }
645 catch (com.liferay.portal.kernel.exception.SystemException se) {
646 _log.error(se, se);
647
648 throw se;
649 }
650 }
651
652 public static void importICal4j(HttpPrincipal httpPrincipal, long groupId,
653 java.io.InputStream inputStream)
654 throws com.liferay.portal.kernel.exception.PortalException,
655 com.liferay.portal.kernel.exception.SystemException {
656 try {
657 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
658 "importICal4j", _importICal4jParameterTypes16);
659
660 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
661 inputStream);
662
663 try {
664 TunnelUtil.invoke(httpPrincipal, methodHandler);
665 }
666 catch (Exception e) {
667 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
668 throw (com.liferay.portal.kernel.exception.PortalException)e;
669 }
670
671 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
672 throw (com.liferay.portal.kernel.exception.SystemException)e;
673 }
674
675 throw new com.liferay.portal.kernel.exception.SystemException(e);
676 }
677 }
678 catch (com.liferay.portal.kernel.exception.SystemException se) {
679 _log.error(se, se);
680
681 throw se;
682 }
683 }
684
685 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
686 HttpPrincipal httpPrincipal, long eventId, java.lang.String title,
687 java.lang.String description, java.lang.String location,
688 int startDateMonth, int startDateDay, int startDateYear,
689 int startDateHour, int startDateMinute, int durationHour,
690 int durationMinute, boolean allDay, boolean timeZoneSensitive,
691 java.lang.String type, boolean repeating,
692 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
693 int firstReminder, int secondReminder,
694 com.liferay.portal.service.ServiceContext serviceContext)
695 throws com.liferay.portal.kernel.exception.PortalException,
696 com.liferay.portal.kernel.exception.SystemException {
697 try {
698 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
699 "updateEvent", _updateEventParameterTypes17);
700
701 MethodHandler methodHandler = new MethodHandler(methodKey, eventId,
702 title, description, location, startDateMonth, startDateDay,
703 startDateYear, startDateHour, startDateMinute,
704 durationHour, durationMinute, allDay, timeZoneSensitive,
705 type, repeating, recurrence, remindBy, firstReminder,
706 secondReminder, serviceContext);
707
708 Object returnObj = null;
709
710 try {
711 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
712 }
713 catch (Exception e) {
714 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
715 throw (com.liferay.portal.kernel.exception.PortalException)e;
716 }
717
718 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
719 throw (com.liferay.portal.kernel.exception.SystemException)e;
720 }
721
722 throw new com.liferay.portal.kernel.exception.SystemException(e);
723 }
724
725 return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
726 }
727 catch (com.liferay.portal.kernel.exception.SystemException se) {
728 _log.error(se, se);
729
730 throw se;
731 }
732 }
733
734 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
735 HttpPrincipal httpPrincipal, long eventId, java.lang.String title,
736 java.lang.String description, java.lang.String location,
737 int startDateMonth, int startDateDay, int startDateYear,
738 int startDateHour, int startDateMinute, int endDateMonth,
739 int endDateDay, int endDateYear, int durationHour, int durationMinute,
740 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
741 boolean repeating,
742 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
743 int firstReminder, int secondReminder,
744 com.liferay.portal.service.ServiceContext serviceContext)
745 throws com.liferay.portal.kernel.exception.PortalException,
746 com.liferay.portal.kernel.exception.SystemException {
747 try {
748 MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
749 "updateEvent", _updateEventParameterTypes18);
750
751 MethodHandler methodHandler = new MethodHandler(methodKey, eventId,
752 title, description, location, startDateMonth, startDateDay,
753 startDateYear, startDateHour, startDateMinute,
754 endDateMonth, endDateDay, endDateYear, durationHour,
755 durationMinute, allDay, timeZoneSensitive, type, repeating,
756 recurrence, remindBy, firstReminder, secondReminder,
757 serviceContext);
758
759 Object returnObj = null;
760
761 try {
762 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
763 }
764 catch (Exception e) {
765 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
766 throw (com.liferay.portal.kernel.exception.PortalException)e;
767 }
768
769 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
770 throw (com.liferay.portal.kernel.exception.SystemException)e;
771 }
772
773 throw new com.liferay.portal.kernel.exception.SystemException(e);
774 }
775
776 return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
777 }
778 catch (com.liferay.portal.kernel.exception.SystemException se) {
779 _log.error(se, se);
780
781 throw se;
782 }
783 }
784
785 private static Log _log = LogFactoryUtil.getLog(CalEventServiceHttp.class);
786 private static final Class<?>[] _addEventParameterTypes0 = new Class[] {
787 java.lang.String.class, java.lang.String.class,
788 java.lang.String.class, int.class, int.class, int.class, int.class,
789 int.class, int.class, int.class, boolean.class, boolean.class,
790 java.lang.String.class, boolean.class,
791 com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
792 int.class, int.class,
793 com.liferay.portal.service.ServiceContext.class
794 };
795 private static final Class<?>[] _addEventParameterTypes1 = new Class[] {
796 java.lang.String.class, java.lang.String.class,
797 java.lang.String.class, int.class, int.class, int.class, int.class,
798 int.class, int.class, int.class, int.class, int.class, int.class,
799 boolean.class, boolean.class, java.lang.String.class, boolean.class,
800 com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
801 int.class, int.class,
802 com.liferay.portal.service.ServiceContext.class
803 };
804 private static final Class<?>[] _deleteEventParameterTypes2 = new Class[] {
805 long.class
806 };
807 private static final Class<?>[] _exportEventParameterTypes3 = new Class[] {
808 long.class
809 };
810 private static final Class<?>[] _exportEventsParameterTypes4 = new Class[] {
811 java.util.List.class, java.lang.String.class
812 };
813 private static final Class<?>[] _exportGroupEventsParameterTypes5 = new Class[] {
814 long.class, java.lang.String.class
815 };
816 private static final Class<?>[] _getEventParameterTypes6 = new Class[] {
817 long.class
818 };
819 private static final Class<?>[] _getEventsParameterTypes7 = new Class[] {
820 long.class, java.util.Calendar.class, java.lang.String.class
821 };
822 private static final Class<?>[] _getEventsParameterTypes8 = new Class[] {
823 long.class, java.util.Calendar.class, java.lang.String[].class
824 };
825 private static final Class<?>[] _getEventsParameterTypes9 = new Class[] {
826 long.class, java.lang.String.class, int.class, int.class
827 };
828 private static final Class<?>[] _getEventsParameterTypes10 = new Class[] {
829 long.class, java.lang.String[].class, int.class, int.class
830 };
831 private static final Class<?>[] _getEventsCountParameterTypes11 = new Class[] {
832 long.class, java.lang.String.class
833 };
834 private static final Class<?>[] _getEventsCountParameterTypes12 = new Class[] {
835 long.class, java.lang.String[].class
836 };
837 private static final Class<?>[] _hasEventsParameterTypes13 = new Class[] {
838 long.class, java.util.Calendar.class
839 };
840 private static final Class<?>[] _hasEventsParameterTypes14 = new Class[] {
841 long.class, java.util.Calendar.class, java.lang.String.class
842 };
843 private static final Class<?>[] _hasEventsParameterTypes15 = new Class[] {
844 long.class, java.util.Calendar.class, java.lang.String[].class
845 };
846 private static final Class<?>[] _importICal4jParameterTypes16 = new Class[] {
847 long.class, java.io.InputStream.class
848 };
849 private static final Class<?>[] _updateEventParameterTypes17 = new Class[] {
850 long.class, java.lang.String.class, java.lang.String.class,
851 java.lang.String.class, int.class, int.class, int.class, int.class,
852 int.class, int.class, int.class, boolean.class, boolean.class,
853 java.lang.String.class, boolean.class,
854 com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
855 int.class, int.class,
856 com.liferay.portal.service.ServiceContext.class
857 };
858 private static final Class<?>[] _updateEventParameterTypes18 = new Class[] {
859 long.class, java.lang.String.class, java.lang.String.class,
860 java.lang.String.class, int.class, int.class, int.class, int.class,
861 int.class, int.class, int.class, int.class, int.class, int.class,
862 boolean.class, boolean.class, java.lang.String.class, boolean.class,
863 com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
864 int.class, int.class,
865 com.liferay.portal.service.ServiceContext.class
866 };
867 }