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