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