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.security.auth.HttpPrincipal;
022 import com.liferay.portal.kernel.util.MethodHandler;
023 import com.liferay.portal.kernel.util.MethodKey;
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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
417 HttpPrincipal httpPrincipal, long groupId, int status, int start,
418 int end,
419 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
420 try {
421 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
422 "getGroupEntries", _getGroupEntriesParameterTypes11);
423
424 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
425 status, start, end, obc);
426
427 Object returnObj = null;
428
429 try {
430 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
431 }
432 catch (Exception e) {
433 throw new com.liferay.portal.kernel.exception.SystemException(e);
434 }
435
436 return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
437 }
438 catch (com.liferay.portal.kernel.exception.SystemException se) {
439 _log.error(se, se);
440
441 throw se;
442 }
443 }
444
445 public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
446 long groupId, java.util.Date displayDate, int status) {
447 try {
448 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
449 "getGroupEntriesCount",
450 _getGroupEntriesCountParameterTypes12);
451
452 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
453 displayDate, status);
454
455 Object returnObj = null;
456
457 try {
458 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
459 }
460 catch (Exception e) {
461 throw new com.liferay.portal.kernel.exception.SystemException(e);
462 }
463
464 return ((Integer)returnObj).intValue();
465 }
466 catch (com.liferay.portal.kernel.exception.SystemException se) {
467 _log.error(se, se);
468
469 throw se;
470 }
471 }
472
473 public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
474 long groupId, int status) {
475 try {
476 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
477 "getGroupEntriesCount",
478 _getGroupEntriesCountParameterTypes13);
479
480 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
481 status);
482
483 Object returnObj = null;
484
485 try {
486 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
487 }
488 catch (Exception e) {
489 throw new com.liferay.portal.kernel.exception.SystemException(e);
490 }
491
492 return ((Integer)returnObj).intValue();
493 }
494 catch (com.liferay.portal.kernel.exception.SystemException se) {
495 _log.error(se, se);
496
497 throw se;
498 }
499 }
500
501 public static java.lang.String getGroupEntriesRSS(
502 HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
503 int status, int max, java.lang.String type, double version,
504 java.lang.String displayStyle, java.lang.String feedURL,
505 java.lang.String entryURL,
506 com.liferay.portal.theme.ThemeDisplay themeDisplay)
507 throws com.liferay.portal.kernel.exception.PortalException {
508 try {
509 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
510 "getGroupEntriesRSS", _getGroupEntriesRSSParameterTypes14);
511
512 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
513 displayDate, status, max, type, version, displayStyle,
514 feedURL, entryURL, themeDisplay);
515
516 Object returnObj = null;
517
518 try {
519 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
520 }
521 catch (Exception e) {
522 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
523 throw (com.liferay.portal.kernel.exception.PortalException)e;
524 }
525
526 throw new com.liferay.portal.kernel.exception.SystemException(e);
527 }
528
529 return (java.lang.String)returnObj;
530 }
531 catch (com.liferay.portal.kernel.exception.SystemException se) {
532 _log.error(se, se);
533
534 throw se;
535 }
536 }
537
538 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
539 HttpPrincipal httpPrincipal, long companyId, long groupId,
540 java.util.Date displayDate, int status, int max)
541 throws com.liferay.portal.kernel.exception.PortalException {
542 try {
543 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
544 "getGroupsEntries", _getGroupsEntriesParameterTypes15);
545
546 MethodHandler methodHandler = new MethodHandler(methodKey,
547 companyId, groupId, displayDate, status, max);
548
549 Object returnObj = null;
550
551 try {
552 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
553 }
554 catch (Exception e) {
555 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
556 throw (com.liferay.portal.kernel.exception.PortalException)e;
557 }
558
559 throw new com.liferay.portal.kernel.exception.SystemException(e);
560 }
561
562 return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
563 }
564 catch (com.liferay.portal.kernel.exception.SystemException se) {
565 _log.error(se, se);
566
567 throw se;
568 }
569 }
570
571 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
572 HttpPrincipal httpPrincipal, long groupId, long userId, int status,
573 int start, int end,
574 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
575 try {
576 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
577 "getGroupUserEntries", _getGroupUserEntriesParameterTypes16);
578
579 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
580 userId, status, start, end, obc);
581
582 Object returnObj = null;
583
584 try {
585 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
586 }
587 catch (Exception e) {
588 throw new com.liferay.portal.kernel.exception.SystemException(e);
589 }
590
591 return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
592 }
593 catch (com.liferay.portal.kernel.exception.SystemException se) {
594 _log.error(se, se);
595
596 throw se;
597 }
598 }
599
600 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
601 HttpPrincipal httpPrincipal, long groupId, long userId, int[] statuses,
602 int start, int end,
603 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
604 try {
605 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
606 "getGroupUserEntries", _getGroupUserEntriesParameterTypes17);
607
608 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
609 userId, statuses, start, end, obc);
610
611 Object returnObj = null;
612
613 try {
614 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
615 }
616 catch (Exception e) {
617 throw new com.liferay.portal.kernel.exception.SystemException(e);
618 }
619
620 return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
621 }
622 catch (com.liferay.portal.kernel.exception.SystemException se) {
623 _log.error(se, se);
624
625 throw se;
626 }
627 }
628
629 public static int getGroupUserEntriesCount(HttpPrincipal httpPrincipal,
630 long groupId, long userId, int status) {
631 try {
632 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
633 "getGroupUserEntriesCount",
634 _getGroupUserEntriesCountParameterTypes18);
635
636 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
637 userId, status);
638
639 Object returnObj = null;
640
641 try {
642 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
643 }
644 catch (Exception e) {
645 throw new com.liferay.portal.kernel.exception.SystemException(e);
646 }
647
648 return ((Integer)returnObj).intValue();
649 }
650 catch (com.liferay.portal.kernel.exception.SystemException se) {
651 _log.error(se, se);
652
653 throw se;
654 }
655 }
656
657 public static int getGroupUserEntriesCount(HttpPrincipal httpPrincipal,
658 long groupId, long userId, int[] statuses) {
659 try {
660 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
661 "getGroupUserEntriesCount",
662 _getGroupUserEntriesCountParameterTypes19);
663
664 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
665 userId, statuses);
666
667 Object returnObj = null;
668
669 try {
670 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
671 }
672 catch (Exception e) {
673 throw new com.liferay.portal.kernel.exception.SystemException(e);
674 }
675
676 return ((Integer)returnObj).intValue();
677 }
678 catch (com.liferay.portal.kernel.exception.SystemException se) {
679 _log.error(se, se);
680
681 throw se;
682 }
683 }
684
685 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
686 HttpPrincipal httpPrincipal, long organizationId,
687 java.util.Date displayDate, int status, int max)
688 throws com.liferay.portal.kernel.exception.PortalException {
689 try {
690 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
691 "getOrganizationEntries",
692 _getOrganizationEntriesParameterTypes20);
693
694 MethodHandler methodHandler = new MethodHandler(methodKey,
695 organizationId, displayDate, status, max);
696
697 Object returnObj = null;
698
699 try {
700 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
701 }
702 catch (Exception e) {
703 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
704 throw (com.liferay.portal.kernel.exception.PortalException)e;
705 }
706
707 throw new com.liferay.portal.kernel.exception.SystemException(e);
708 }
709
710 return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
711 }
712 catch (com.liferay.portal.kernel.exception.SystemException se) {
713 _log.error(se, se);
714
715 throw se;
716 }
717 }
718
719 public static java.lang.String getOrganizationEntriesRSS(
720 HttpPrincipal httpPrincipal, long organizationId,
721 java.util.Date displayDate, int status, int max, java.lang.String type,
722 double version, java.lang.String displayStyle,
723 java.lang.String feedURL, java.lang.String entryURL,
724 com.liferay.portal.theme.ThemeDisplay themeDisplay)
725 throws com.liferay.portal.kernel.exception.PortalException {
726 try {
727 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
728 "getOrganizationEntriesRSS",
729 _getOrganizationEntriesRSSParameterTypes21);
730
731 MethodHandler methodHandler = new MethodHandler(methodKey,
732 organizationId, displayDate, status, max, type, version,
733 displayStyle, feedURL, entryURL, themeDisplay);
734
735 Object returnObj = null;
736
737 try {
738 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
739 }
740 catch (Exception e) {
741 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
742 throw (com.liferay.portal.kernel.exception.PortalException)e;
743 }
744
745 throw new com.liferay.portal.kernel.exception.SystemException(e);
746 }
747
748 return (java.lang.String)returnObj;
749 }
750 catch (com.liferay.portal.kernel.exception.SystemException se) {
751 _log.error(se, se);
752
753 throw se;
754 }
755 }
756
757 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
758 HttpPrincipal httpPrincipal, long entryId)
759 throws com.liferay.portal.kernel.exception.PortalException {
760 try {
761 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
762 "moveEntryToTrash", _moveEntryToTrashParameterTypes22);
763
764 MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
765
766 Object returnObj = null;
767
768 try {
769 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
770 }
771 catch (Exception e) {
772 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
773 throw (com.liferay.portal.kernel.exception.PortalException)e;
774 }
775
776 throw new com.liferay.portal.kernel.exception.SystemException(e);
777 }
778
779 return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
780 }
781 catch (com.liferay.portal.kernel.exception.SystemException se) {
782 _log.error(se, se);
783
784 throw se;
785 }
786 }
787
788 public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
789 long entryId)
790 throws com.liferay.portal.kernel.exception.PortalException {
791 try {
792 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
793 "restoreEntryFromTrash",
794 _restoreEntryFromTrashParameterTypes23);
795
796 MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
797
798 try {
799 TunnelUtil.invoke(httpPrincipal, methodHandler);
800 }
801 catch (Exception e) {
802 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
803 throw (com.liferay.portal.kernel.exception.PortalException)e;
804 }
805
806 throw new com.liferay.portal.kernel.exception.SystemException(e);
807 }
808 }
809 catch (com.liferay.portal.kernel.exception.SystemException se) {
810 _log.error(se, se);
811
812 throw se;
813 }
814 }
815
816 public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
817 throws com.liferay.portal.kernel.exception.PortalException {
818 try {
819 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
820 "subscribe", _subscribeParameterTypes24);
821
822 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
823
824 try {
825 TunnelUtil.invoke(httpPrincipal, methodHandler);
826 }
827 catch (Exception e) {
828 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
829 throw (com.liferay.portal.kernel.exception.PortalException)e;
830 }
831
832 throw new com.liferay.portal.kernel.exception.SystemException(e);
833 }
834 }
835 catch (com.liferay.portal.kernel.exception.SystemException se) {
836 _log.error(se, se);
837
838 throw se;
839 }
840 }
841
842 public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
843 throws com.liferay.portal.kernel.exception.PortalException {
844 try {
845 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
846 "unsubscribe", _unsubscribeParameterTypes25);
847
848 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
849
850 try {
851 TunnelUtil.invoke(httpPrincipal, methodHandler);
852 }
853 catch (Exception e) {
854 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
855 throw (com.liferay.portal.kernel.exception.PortalException)e;
856 }
857
858 throw new com.liferay.portal.kernel.exception.SystemException(e);
859 }
860 }
861 catch (com.liferay.portal.kernel.exception.SystemException se) {
862 _log.error(se, se);
863
864 throw se;
865 }
866 }
867
868 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
869 HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
870 java.lang.String description, java.lang.String content,
871 int displayDateMonth, int displayDateDay, int displayDateYear,
872 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
873 boolean allowTrackbacks, java.lang.String[] trackbacks,
874 boolean smallImage, java.lang.String smallImageURL,
875 java.lang.String smallImageFileName,
876 java.io.InputStream smallImageInputStream,
877 com.liferay.portal.service.ServiceContext serviceContext)
878 throws com.liferay.portal.kernel.exception.PortalException {
879 try {
880 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
881 "updateEntry", _updateEntryParameterTypes26);
882
883 MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
884 title, description, content, displayDateMonth,
885 displayDateDay, displayDateYear, displayDateHour,
886 displayDateMinute, allowPingbacks, allowTrackbacks,
887 trackbacks, smallImage, smallImageURL, smallImageFileName,
888 smallImageInputStream, serviceContext);
889
890 Object returnObj = null;
891
892 try {
893 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
894 }
895 catch (Exception e) {
896 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
897 throw (com.liferay.portal.kernel.exception.PortalException)e;
898 }
899
900 throw new com.liferay.portal.kernel.exception.SystemException(e);
901 }
902
903 return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
904 }
905 catch (com.liferay.portal.kernel.exception.SystemException se) {
906 _log.error(se, se);
907
908 throw se;
909 }
910 }
911
912 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
913 HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
914 java.lang.String subtitle, java.lang.String description,
915 java.lang.String content, int displayDateMonth, int displayDateDay,
916 int displayDateYear, int displayDateHour, int displayDateMinute,
917 boolean allowPingbacks, boolean allowTrackbacks,
918 java.lang.String[] trackbacks, java.lang.String coverImageCaption,
919 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
920 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
921 com.liferay.portal.service.ServiceContext serviceContext)
922 throws com.liferay.portal.kernel.exception.PortalException {
923 try {
924 MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
925 "updateEntry", _updateEntryParameterTypes27);
926
927 MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
928 title, subtitle, description, content, displayDateMonth,
929 displayDateDay, displayDateYear, displayDateHour,
930 displayDateMinute, allowPingbacks, allowTrackbacks,
931 trackbacks, coverImageCaption, coverImageImageSelector,
932 smallImageImageSelector, serviceContext);
933
934 Object returnObj = null;
935
936 try {
937 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
938 }
939 catch (Exception e) {
940 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
941 throw (com.liferay.portal.kernel.exception.PortalException)e;
942 }
943
944 throw new com.liferay.portal.kernel.exception.SystemException(e);
945 }
946
947 return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
948 }
949 catch (com.liferay.portal.kernel.exception.SystemException se) {
950 _log.error(se, se);
951
952 throw se;
953 }
954 }
955
956 private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
957 private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
958 java.lang.String.class, java.lang.String.class,
959 java.lang.String.class, int.class, int.class, int.class, int.class,
960 int.class, boolean.class, boolean.class, java.lang.String[].class,
961 boolean.class, java.lang.String.class, java.lang.String.class,
962 java.io.InputStream.class,
963 com.liferay.portal.service.ServiceContext.class
964 };
965 private static final Class<?>[] _addEntryParameterTypes1 = new Class[] {
966 java.lang.String.class, java.lang.String.class,
967 java.lang.String.class, java.lang.String.class, int.class, int.class,
968 int.class, int.class, int.class, boolean.class, boolean.class,
969 java.lang.String[].class, java.lang.String.class,
970 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
971 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
972 com.liferay.portal.service.ServiceContext.class
973 };
974 private static final Class<?>[] _deleteEntryParameterTypes2 = new Class[] {
975 long.class
976 };
977 private static final Class<?>[] _getCompanyEntriesParameterTypes3 = new Class[] {
978 long.class, java.util.Date.class, int.class, int.class
979 };
980 private static final Class<?>[] _getCompanyEntriesRSSParameterTypes4 = new Class[] {
981 long.class, java.util.Date.class, int.class, int.class,
982 java.lang.String.class, double.class, java.lang.String.class,
983 java.lang.String.class, java.lang.String.class,
984 com.liferay.portal.theme.ThemeDisplay.class
985 };
986 private static final Class<?>[] _getEntryParameterTypes5 = new Class[] {
987 long.class
988 };
989 private static final Class<?>[] _getEntryParameterTypes6 = new Class[] {
990 long.class, java.lang.String.class
991 };
992 private static final Class<?>[] _getGroupEntriesParameterTypes7 = new Class[] {
993 long.class, java.util.Date.class, int.class, int.class
994 };
995 private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
996 long.class, java.util.Date.class, int.class, int.class, int.class
997 };
998 private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
999 long.class, int.class, int.class
1000 };
1001 private static final Class<?>[] _getGroupEntriesParameterTypes10 = new Class[] {
1002 long.class, int.class, int.class, int.class
1003 };
1004 private static final Class<?>[] _getGroupEntriesParameterTypes11 = new Class[] {
1005 long.class, int.class, int.class, int.class,
1006 com.liferay.portal.kernel.util.OrderByComparator.class
1007 };
1008 private static final Class<?>[] _getGroupEntriesCountParameterTypes12 = new Class[] {
1009 long.class, java.util.Date.class, int.class
1010 };
1011 private static final Class<?>[] _getGroupEntriesCountParameterTypes13 = new Class[] {
1012 long.class, int.class
1013 };
1014 private static final Class<?>[] _getGroupEntriesRSSParameterTypes14 = new Class[] {
1015 long.class, java.util.Date.class, int.class, int.class,
1016 java.lang.String.class, double.class, java.lang.String.class,
1017 java.lang.String.class, java.lang.String.class,
1018 com.liferay.portal.theme.ThemeDisplay.class
1019 };
1020 private static final Class<?>[] _getGroupsEntriesParameterTypes15 = new Class[] {
1021 long.class, long.class, java.util.Date.class, int.class, int.class
1022 };
1023 private static final Class<?>[] _getGroupUserEntriesParameterTypes16 = new Class[] {
1024 long.class, long.class, int.class, int.class, int.class,
1025 com.liferay.portal.kernel.util.OrderByComparator.class
1026 };
1027 private static final Class<?>[] _getGroupUserEntriesParameterTypes17 = new Class[] {
1028 long.class, long.class, int[].class, int.class, int.class,
1029 com.liferay.portal.kernel.util.OrderByComparator.class
1030 };
1031 private static final Class<?>[] _getGroupUserEntriesCountParameterTypes18 = new Class[] {
1032 long.class, long.class, int.class
1033 };
1034 private static final Class<?>[] _getGroupUserEntriesCountParameterTypes19 = new Class[] {
1035 long.class, long.class, int[].class
1036 };
1037 private static final Class<?>[] _getOrganizationEntriesParameterTypes20 = new Class[] {
1038 long.class, java.util.Date.class, int.class, int.class
1039 };
1040 private static final Class<?>[] _getOrganizationEntriesRSSParameterTypes21 = new Class[] {
1041 long.class, java.util.Date.class, int.class, int.class,
1042 java.lang.String.class, double.class, java.lang.String.class,
1043 java.lang.String.class, java.lang.String.class,
1044 com.liferay.portal.theme.ThemeDisplay.class
1045 };
1046 private static final Class<?>[] _moveEntryToTrashParameterTypes22 = new Class[] {
1047 long.class
1048 };
1049 private static final Class<?>[] _restoreEntryFromTrashParameterTypes23 = new Class[] {
1050 long.class
1051 };
1052 private static final Class<?>[] _subscribeParameterTypes24 = new Class[] {
1053 long.class
1054 };
1055 private static final Class<?>[] _unsubscribeParameterTypes25 = new Class[] {
1056 long.class
1057 };
1058 private static final Class<?>[] _updateEntryParameterTypes26 = new Class[] {
1059 long.class, java.lang.String.class, java.lang.String.class,
1060 java.lang.String.class, int.class, int.class, int.class, int.class,
1061 int.class, boolean.class, boolean.class, java.lang.String[].class,
1062 boolean.class, java.lang.String.class, java.lang.String.class,
1063 java.io.InputStream.class,
1064 com.liferay.portal.service.ServiceContext.class
1065 };
1066 private static final Class<?>[] _updateEntryParameterTypes27 = new Class[] {
1067 long.class, java.lang.String.class, java.lang.String.class,
1068 java.lang.String.class, java.lang.String.class, int.class, int.class,
1069 int.class, int.class, int.class, boolean.class, boolean.class,
1070 java.lang.String[].class, java.lang.String.class,
1071 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
1072 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
1073 com.liferay.portal.service.ServiceContext.class
1074 };
1075 }