001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.calendar.service.CalEventServiceUtil} service utility. The
030     * static methods of this class calls the same methods of the service utility.
031     * However, the signatures are different because it requires an additional
032     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
033     * </p>
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author    Brian Wing Shun Chan
051     * @see       CalEventServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.calendar.service.CalEventServiceUtil
054     * @generated
055     */
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 endDateMonth,
062                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
063                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
064                    boolean repeating,
065                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
066                    int firstReminder, int secondReminder,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    try {
071                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
072                                            "addEvent", _addEventParameterTypes0);
073    
074                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
075                                            description, location, startDateMonth, startDateDay,
076                                            startDateYear, startDateHour, startDateMinute,
077                                            endDateMonth, endDateDay, endDateYear, durationHour,
078                                            durationMinute, allDay, timeZoneSensitive, type, repeating,
079                                            recurrence, remindBy, firstReminder, secondReminder,
080                                            serviceContext);
081    
082                            Object returnObj = null;
083    
084                            try {
085                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
086                            }
087                            catch (Exception e) {
088                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
089                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
090                                    }
091    
092                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
093                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
094                                    }
095    
096                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
097                            }
098    
099                            return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
100                    }
101                    catch (com.liferay.portal.kernel.exception.SystemException se) {
102                            _log.error(se, se);
103    
104                            throw se;
105                    }
106            }
107    
108            public static void deleteEvent(HttpPrincipal httpPrincipal, long eventId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    try {
112                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
113                                            "deleteEvent", _deleteEventParameterTypes1);
114    
115                            MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
116    
117                            try {
118                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
119                            }
120                            catch (Exception e) {
121                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
122                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
123                                    }
124    
125                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
126                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
127                                    }
128    
129                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
130                            }
131                    }
132                    catch (com.liferay.portal.kernel.exception.SystemException se) {
133                            _log.error(se, se);
134    
135                            throw se;
136                    }
137            }
138    
139            public static java.io.File exportEvent(HttpPrincipal httpPrincipal,
140                    long eventId)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    try {
144                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
145                                            "exportEvent", _exportEventParameterTypes2);
146    
147                            MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
148    
149                            Object returnObj = null;
150    
151                            try {
152                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
153                            }
154                            catch (Exception e) {
155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
157                                    }
158    
159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
161                                    }
162    
163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
164                            }
165    
166                            return (java.io.File)returnObj;
167                    }
168                    catch (com.liferay.portal.kernel.exception.SystemException se) {
169                            _log.error(se, se);
170    
171                            throw se;
172                    }
173            }
174    
175            public static java.io.File exportGroupEvents(HttpPrincipal httpPrincipal,
176                    long groupId, java.lang.String fileName)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    try {
180                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
181                                            "exportGroupEvents", _exportGroupEventsParameterTypes3);
182    
183                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
184                                            fileName);
185    
186                            Object returnObj = null;
187    
188                            try {
189                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
190                            }
191                            catch (Exception e) {
192                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
193                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
194                                    }
195    
196                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
197                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
198                                    }
199    
200                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
201                            }
202    
203                            return (java.io.File)returnObj;
204                    }
205                    catch (com.liferay.portal.kernel.exception.SystemException se) {
206                            _log.error(se, se);
207    
208                            throw se;
209                    }
210            }
211    
212            public static com.liferay.portlet.calendar.model.CalEvent getEvent(
213                    HttpPrincipal httpPrincipal, long eventId)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    try {
217                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
218                                            "getEvent", _getEventParameterTypes4);
219    
220                            MethodHandler methodHandler = new MethodHandler(methodKey, eventId);
221    
222                            Object returnObj = null;
223    
224                            try {
225                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
226                            }
227                            catch (Exception e) {
228                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
229                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
230                                    }
231    
232                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
233                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
234                                    }
235    
236                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
237                            }
238    
239                            return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
240                    }
241                    catch (com.liferay.portal.kernel.exception.SystemException se) {
242                            _log.error(se, se);
243    
244                            throw se;
245                    }
246            }
247    
248            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
249                    HttpPrincipal httpPrincipal, long groupId, java.util.Calendar cal,
250                    java.lang.String type)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    try {
254                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
255                                            "getEvents", _getEventsParameterTypes5);
256    
257                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
258                                            cal, type);
259    
260                            Object returnObj = null;
261    
262                            try {
263                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
264                            }
265                            catch (Exception e) {
266                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
267                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
268                                    }
269    
270                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
271                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
272                                    }
273    
274                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
275                            }
276    
277                            return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
278                    }
279                    catch (com.liferay.portal.kernel.exception.SystemException se) {
280                            _log.error(se, se);
281    
282                            throw se;
283                    }
284            }
285    
286            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
287                    HttpPrincipal httpPrincipal, long groupId, java.util.Calendar cal,
288                    java.lang.String[] types)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    try {
292                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
293                                            "getEvents", _getEventsParameterTypes6);
294    
295                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
296                                            cal, types);
297    
298                            Object returnObj = null;
299    
300                            try {
301                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
302                            }
303                            catch (Exception e) {
304                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
305                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
306                                    }
307    
308                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
309                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
310                                    }
311    
312                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
313                            }
314    
315                            return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
316                    }
317                    catch (com.liferay.portal.kernel.exception.SystemException se) {
318                            _log.error(se, se);
319    
320                            throw se;
321                    }
322            }
323    
324            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
325                    HttpPrincipal httpPrincipal, long groupId, java.lang.String type,
326                    int start, int end)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    try {
329                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
330                                            "getEvents", _getEventsParameterTypes7);
331    
332                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
333                                            type, start, end);
334    
335                            Object returnObj = null;
336    
337                            try {
338                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
339                            }
340                            catch (Exception e) {
341                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
342                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
343                                    }
344    
345                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
346                            }
347    
348                            return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
349                    }
350                    catch (com.liferay.portal.kernel.exception.SystemException se) {
351                            _log.error(se, se);
352    
353                            throw se;
354                    }
355            }
356    
357            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
358                    HttpPrincipal httpPrincipal, long groupId, java.lang.String[] types,
359                    int start, int end)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    try {
362                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
363                                            "getEvents", _getEventsParameterTypes8);
364    
365                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
366                                            types, start, end);
367    
368                            Object returnObj = null;
369    
370                            try {
371                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
372                            }
373                            catch (Exception e) {
374                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
375                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
376                                    }
377    
378                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
379                            }
380    
381                            return (java.util.List<com.liferay.portlet.calendar.model.CalEvent>)returnObj;
382                    }
383                    catch (com.liferay.portal.kernel.exception.SystemException se) {
384                            _log.error(se, se);
385    
386                            throw se;
387                    }
388            }
389    
390            public static int getEventsCount(HttpPrincipal httpPrincipal, long groupId,
391                    java.lang.String type)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    try {
394                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
395                                            "getEventsCount", _getEventsCountParameterTypes9);
396    
397                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
398                                            type);
399    
400                            Object returnObj = null;
401    
402                            try {
403                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
404                            }
405                            catch (Exception e) {
406                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
407                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
408                                    }
409    
410                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
411                            }
412    
413                            return ((Integer)returnObj).intValue();
414                    }
415                    catch (com.liferay.portal.kernel.exception.SystemException se) {
416                            _log.error(se, se);
417    
418                            throw se;
419                    }
420            }
421    
422            public static int getEventsCount(HttpPrincipal httpPrincipal, long groupId,
423                    java.lang.String[] types)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    try {
426                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
427                                            "getEventsCount", _getEventsCountParameterTypes10);
428    
429                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
430                                            types);
431    
432                            Object returnObj = null;
433    
434                            try {
435                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
436                            }
437                            catch (Exception e) {
438                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
439                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
440                                    }
441    
442                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
443                            }
444    
445                            return ((Integer)returnObj).intValue();
446                    }
447                    catch (com.liferay.portal.kernel.exception.SystemException se) {
448                            _log.error(se, se);
449    
450                            throw se;
451                    }
452            }
453    
454            public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
455                    java.util.Calendar cal)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    try {
459                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
460                                            "hasEvents", _hasEventsParameterTypes11);
461    
462                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
463                                            cal);
464    
465                            Object returnObj = null;
466    
467                            try {
468                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
469                            }
470                            catch (Exception e) {
471                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
472                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
473                                    }
474    
475                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
476                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
477                                    }
478    
479                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
480                            }
481    
482                            return ((Boolean)returnObj).booleanValue();
483                    }
484                    catch (com.liferay.portal.kernel.exception.SystemException se) {
485                            _log.error(se, se);
486    
487                            throw se;
488                    }
489            }
490    
491            public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
492                    java.util.Calendar cal, java.lang.String type)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException {
495                    try {
496                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
497                                            "hasEvents", _hasEventsParameterTypes12);
498    
499                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
500                                            cal, type);
501    
502                            Object returnObj = null;
503    
504                            try {
505                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
506                            }
507                            catch (Exception e) {
508                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
509                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
510                                    }
511    
512                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
513                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
514                                    }
515    
516                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
517                            }
518    
519                            return ((Boolean)returnObj).booleanValue();
520                    }
521                    catch (com.liferay.portal.kernel.exception.SystemException se) {
522                            _log.error(se, se);
523    
524                            throw se;
525                    }
526            }
527    
528            public static boolean hasEvents(HttpPrincipal httpPrincipal, long groupId,
529                    java.util.Calendar cal, java.lang.String[] types)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException {
532                    try {
533                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
534                                            "hasEvents", _hasEventsParameterTypes13);
535    
536                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
537                                            cal, types);
538    
539                            Object returnObj = null;
540    
541                            try {
542                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
543                            }
544                            catch (Exception e) {
545                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
546                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
547                                    }
548    
549                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
550                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
551                                    }
552    
553                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
554                            }
555    
556                            return ((Boolean)returnObj).booleanValue();
557                    }
558                    catch (com.liferay.portal.kernel.exception.SystemException se) {
559                            _log.error(se, se);
560    
561                            throw se;
562                    }
563            }
564    
565            public static void importICal4j(HttpPrincipal httpPrincipal, long groupId,
566                    java.io.InputStream inputStream)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException {
569                    try {
570                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
571                                            "importICal4j", _importICal4jParameterTypes14);
572    
573                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
574                                            inputStream);
575    
576                            try {
577                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
578                            }
579                            catch (Exception e) {
580                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
581                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
582                                    }
583    
584                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
585                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
586                                    }
587    
588                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
589                            }
590                    }
591                    catch (com.liferay.portal.kernel.exception.SystemException se) {
592                            _log.error(se, se);
593    
594                            throw se;
595                    }
596            }
597    
598            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
599                    HttpPrincipal httpPrincipal, long eventId, java.lang.String title,
600                    java.lang.String description, java.lang.String location,
601                    int startDateMonth, int startDateDay, int startDateYear,
602                    int startDateHour, int startDateMinute, int endDateMonth,
603                    int endDateDay, int endDateYear, int durationHour, int durationMinute,
604                    boolean allDay, boolean timeZoneSensitive, java.lang.String type,
605                    boolean repeating,
606                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
607                    int firstReminder, int secondReminder,
608                    com.liferay.portal.service.ServiceContext serviceContext)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    try {
612                            MethodKey methodKey = new MethodKey(CalEventServiceUtil.class.getName(),
613                                            "updateEvent", _updateEventParameterTypes15);
614    
615                            MethodHandler methodHandler = new MethodHandler(methodKey, eventId,
616                                            title, description, location, startDateMonth, startDateDay,
617                                            startDateYear, startDateHour, startDateMinute,
618                                            endDateMonth, endDateDay, endDateYear, durationHour,
619                                            durationMinute, allDay, timeZoneSensitive, type, repeating,
620                                            recurrence, remindBy, firstReminder, secondReminder,
621                                            serviceContext);
622    
623                            Object returnObj = null;
624    
625                            try {
626                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
627                            }
628                            catch (Exception e) {
629                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
630                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
631                                    }
632    
633                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
634                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
635                                    }
636    
637                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
638                            }
639    
640                            return (com.liferay.portlet.calendar.model.CalEvent)returnObj;
641                    }
642                    catch (com.liferay.portal.kernel.exception.SystemException se) {
643                            _log.error(se, se);
644    
645                            throw se;
646                    }
647            }
648    
649            private static Log _log = LogFactoryUtil.getLog(CalEventServiceHttp.class);
650            private static final Class<?>[] _addEventParameterTypes0 = new Class[] {
651                            java.lang.String.class, java.lang.String.class,
652                            java.lang.String.class, int.class, int.class, int.class, int.class,
653                            int.class, int.class, int.class, int.class, int.class, int.class,
654                            boolean.class, boolean.class, java.lang.String.class, boolean.class,
655                            com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
656                            int.class, int.class,
657                            com.liferay.portal.service.ServiceContext.class
658                    };
659            private static final Class<?>[] _deleteEventParameterTypes1 = new Class[] {
660                            long.class
661                    };
662            private static final Class<?>[] _exportEventParameterTypes2 = new Class[] {
663                            long.class
664                    };
665            private static final Class<?>[] _exportGroupEventsParameterTypes3 = new Class[] {
666                            long.class, java.lang.String.class
667                    };
668            private static final Class<?>[] _getEventParameterTypes4 = new Class[] {
669                            long.class
670                    };
671            private static final Class<?>[] _getEventsParameterTypes5 = new Class[] {
672                            long.class, java.util.Calendar.class, java.lang.String.class
673                    };
674            private static final Class<?>[] _getEventsParameterTypes6 = new Class[] {
675                            long.class, java.util.Calendar.class, java.lang.String[].class
676                    };
677            private static final Class<?>[] _getEventsParameterTypes7 = new Class[] {
678                            long.class, java.lang.String.class, int.class, int.class
679                    };
680            private static final Class<?>[] _getEventsParameterTypes8 = new Class[] {
681                            long.class, java.lang.String[].class, int.class, int.class
682                    };
683            private static final Class<?>[] _getEventsCountParameterTypes9 = new Class[] {
684                            long.class, java.lang.String.class
685                    };
686            private static final Class<?>[] _getEventsCountParameterTypes10 = new Class[] {
687                            long.class, java.lang.String[].class
688                    };
689            private static final Class<?>[] _hasEventsParameterTypes11 = new Class[] {
690                            long.class, java.util.Calendar.class
691                    };
692            private static final Class<?>[] _hasEventsParameterTypes12 = new Class[] {
693                            long.class, java.util.Calendar.class, java.lang.String.class
694                    };
695            private static final Class<?>[] _hasEventsParameterTypes13 = new Class[] {
696                            long.class, java.util.Calendar.class, java.lang.String[].class
697                    };
698            private static final Class<?>[] _importICal4jParameterTypes14 = new Class[] {
699                            long.class, java.io.InputStream.class
700                    };
701            private static final Class<?>[] _updateEventParameterTypes15 = new Class[] {
702                            long.class, java.lang.String.class, java.lang.String.class,
703                            java.lang.String.class, int.class, int.class, int.class, int.class,
704                            int.class, int.class, int.class, int.class, int.class, int.class,
705                            boolean.class, boolean.class, java.lang.String.class, boolean.class,
706                            com.liferay.portal.kernel.cal.TZSRecurrence.class, int.class,
707                            int.class, int.class,
708                            com.liferay.portal.service.ServiceContext.class
709                    };
710    }