001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class JournalArticleLocalServiceUtil {
037
044 public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
045 com.liferay.portlet.journal.model.JournalArticle journalArticle)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addJournalArticle(journalArticle);
048 }
049
050
056 public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
057 long id) {
058 return getService().createJournalArticle(id);
059 }
060
061
068 public static void deleteJournalArticle(long id)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteJournalArticle(id);
072 }
073
074
080 public static void deleteJournalArticle(
081 com.liferay.portlet.journal.model.JournalArticle journalArticle)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteJournalArticle(journalArticle);
084 }
085
086
093 @SuppressWarnings("rawtypes")
094 public static java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getService().dynamicQuery(dynamicQuery);
098 }
099
100
113 @SuppressWarnings("rawtypes")
114 public static java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().dynamicQuery(dynamicQuery, start, end);
118 }
119
120
134 @SuppressWarnings("rawtypes")
135 public static java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142 }
143
144
151 public static long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().dynamicQueryCount(dynamicQuery);
155 }
156
157
165 public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
166 long id)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService().getJournalArticle(id);
170 }
171
172
181 public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
182 java.lang.String uuid, long groupId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
186 }
187
188
200 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
201 int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().getJournalArticles(start, end);
204 }
205
206
212 public static int getJournalArticlesCount()
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().getJournalArticlesCount();
215 }
216
217
224 public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
225 com.liferay.portlet.journal.model.JournalArticle journalArticle)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().updateJournalArticle(journalArticle);
228 }
229
230
238 public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
239 com.liferay.portlet.journal.model.JournalArticle journalArticle,
240 boolean merge)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getService().updateJournalArticle(journalArticle, merge);
243 }
244
245 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
246 long userId, long groupId, java.lang.String articleId,
247 boolean autoArticleId, double version, java.lang.String title,
248 java.lang.String description, java.lang.String content,
249 java.lang.String type, java.lang.String structureId,
250 java.lang.String templateId, int displayDateMonth, int displayDateDay,
251 int displayDateYear, int displayDateHour, int displayDateMinute,
252 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
253 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
254 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
255 int reviewDateHour, int reviewDateMinute, boolean neverReview,
256 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
257 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
258 java.lang.String articleURL,
259 com.liferay.portal.service.ServiceContext serviceContext)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return getService()
263 .addArticle(userId, groupId, articleId, autoArticleId,
264 version, title, description, content, type, structureId,
265 templateId, displayDateMonth, displayDateDay, displayDateYear,
266 displayDateHour, displayDateMinute, expirationDateMonth,
267 expirationDateDay, expirationDateYear, expirationDateHour,
268 expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
269 reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
270 indexable, smallImage, smallImageURL, smallFile, images,
271 articleURL, serviceContext);
272 }
273
274 public static void addArticleResources(
275 com.liferay.portlet.journal.model.JournalArticle article,
276 boolean addCommunityPermissions, boolean addGuestPermissions)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService()
280 .addArticleResources(article, addCommunityPermissions,
281 addGuestPermissions);
282 }
283
284 public static void addArticleResources(
285 com.liferay.portlet.journal.model.JournalArticle article,
286 java.lang.String[] communityPermissions,
287 java.lang.String[] guestPermissions)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 getService()
291 .addArticleResources(article, communityPermissions, guestPermissions);
292 }
293
294 public static void addArticleResources(long groupId,
295 java.lang.String articleId, boolean addCommunityPermissions,
296 boolean addGuestPermissions)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 getService()
300 .addArticleResources(groupId, articleId, addCommunityPermissions,
301 addGuestPermissions);
302 }
303
304 public static void addArticleResources(long groupId,
305 java.lang.String articleId, java.lang.String[] communityPermissions,
306 java.lang.String[] guestPermissions)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService()
310 .addArticleResources(groupId, articleId, communityPermissions,
311 guestPermissions);
312 }
313
314 public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
315 long groupId, java.lang.String articleId, double version)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return getService()
319 .checkArticleResourcePrimKey(groupId, articleId, version);
320 }
321
322 public static void checkArticles()
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 getService().checkArticles();
326 }
327
328 public static void checkNewLine(long groupId, java.lang.String articleId,
329 double version)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 getService().checkNewLine(groupId, articleId, version);
333 }
334
335 public static void checkStructure(long groupId, java.lang.String articleId,
336 double version)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException {
339 getService().checkStructure(groupId, articleId, version);
340 }
341
342 public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
343 long userId, long groupId, java.lang.String oldArticleId,
344 java.lang.String newArticleId, boolean autoArticleId, double version)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException {
347 return getService()
348 .copyArticle(userId, groupId, oldArticleId, newArticleId,
349 autoArticleId, version);
350 }
351
352 public static void deleteArticle(
353 com.liferay.portlet.journal.model.JournalArticle article,
354 java.lang.String articleURL,
355 com.liferay.portal.service.ServiceContext serviceContext)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException {
358 getService().deleteArticle(article, articleURL, serviceContext);
359 }
360
361 public static void deleteArticle(long groupId, java.lang.String articleId,
362 double version, java.lang.String articleURL,
363 com.liferay.portal.service.ServiceContext serviceContext)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 getService()
367 .deleteArticle(groupId, articleId, version, articleURL,
368 serviceContext);
369 }
370
371 public static void deleteArticle(long groupId, java.lang.String articleId,
372 com.liferay.portal.service.ServiceContext serviceContext)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException {
375 getService().deleteArticle(groupId, articleId, serviceContext);
376 }
377
378 public static void deleteArticles(long groupId)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 getService().deleteArticles(groupId);
382 }
383
384 public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
385 long userId, long groupId, java.lang.String articleId, double version,
386 java.lang.String articleURL,
387 com.liferay.portal.service.ServiceContext serviceContext)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException {
390 return getService()
391 .expireArticle(userId, groupId, articleId, version,
392 articleURL, serviceContext);
393 }
394
395 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
396 long id)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 return getService().getArticle(id);
400 }
401
402 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
403 long groupId, java.lang.String articleId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException {
406 return getService().getArticle(groupId, articleId);
407 }
408
409 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
410 long groupId, java.lang.String articleId, double version)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return getService().getArticle(groupId, articleId, version);
414 }
415
416 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
417 long groupId, java.lang.String urlTitle)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException {
420 return getService().getArticleByUrlTitle(groupId, urlTitle);
421 }
422
423 public static java.lang.String getArticleContent(
424 com.liferay.portlet.journal.model.JournalArticle article,
425 java.lang.String templateId, java.lang.String viewMode,
426 java.lang.String languageId,
427 com.liferay.portal.theme.ThemeDisplay themeDisplay)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 return getService()
431 .getArticleContent(article, templateId, viewMode,
432 languageId, themeDisplay);
433 }
434
435 public static java.lang.String getArticleContent(long groupId,
436 java.lang.String articleId, double version, java.lang.String viewMode,
437 java.lang.String templateId, java.lang.String languageId,
438 com.liferay.portal.theme.ThemeDisplay themeDisplay)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException {
441 return getService()
442 .getArticleContent(groupId, articleId, version, viewMode,
443 templateId, languageId, themeDisplay);
444 }
445
446 public static java.lang.String getArticleContent(long groupId,
447 java.lang.String articleId, double version, java.lang.String viewMode,
448 java.lang.String languageId,
449 com.liferay.portal.theme.ThemeDisplay themeDisplay)
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException {
452 return getService()
453 .getArticleContent(groupId, articleId, version, viewMode,
454 languageId, themeDisplay);
455 }
456
457 public static java.lang.String getArticleContent(long groupId,
458 java.lang.String articleId, java.lang.String viewMode,
459 java.lang.String templateId, java.lang.String languageId,
460 com.liferay.portal.theme.ThemeDisplay themeDisplay)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException {
463 return getService()
464 .getArticleContent(groupId, articleId, viewMode, templateId,
465 languageId, themeDisplay);
466 }
467
468 public static java.lang.String getArticleContent(long groupId,
469 java.lang.String articleId, java.lang.String viewMode,
470 java.lang.String languageId,
471 com.liferay.portal.theme.ThemeDisplay themeDisplay)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 return getService()
475 .getArticleContent(groupId, articleId, viewMode, languageId,
476 themeDisplay);
477 }
478
479 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
480 com.liferay.portlet.journal.model.JournalArticle article,
481 java.lang.String templateId, java.lang.String viewMode,
482 java.lang.String languageId, int page, java.lang.String xmlRequest,
483 com.liferay.portal.theme.ThemeDisplay themeDisplay)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService()
487 .getArticleDisplay(article, templateId, viewMode,
488 languageId, page, xmlRequest, themeDisplay);
489 }
490
491 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
492 long groupId, java.lang.String articleId, double version,
493 java.lang.String templateId, java.lang.String viewMode,
494 java.lang.String languageId, int page, java.lang.String xmlRequest,
495 com.liferay.portal.theme.ThemeDisplay themeDisplay)
496 throws com.liferay.portal.kernel.exception.PortalException,
497 com.liferay.portal.kernel.exception.SystemException {
498 return getService()
499 .getArticleDisplay(groupId, articleId, version, templateId,
500 viewMode, languageId, page, xmlRequest, themeDisplay);
501 }
502
503 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
504 long groupId, java.lang.String articleId, double version,
505 java.lang.String templateId, java.lang.String viewMode,
506 java.lang.String languageId,
507 com.liferay.portal.theme.ThemeDisplay themeDisplay)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException {
510 return getService()
511 .getArticleDisplay(groupId, articleId, version, templateId,
512 viewMode, languageId, themeDisplay);
513 }
514
515 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
516 long groupId, java.lang.String articleId, java.lang.String viewMode,
517 java.lang.String languageId, int page, java.lang.String xmlRequest,
518 com.liferay.portal.theme.ThemeDisplay themeDisplay)
519 throws com.liferay.portal.kernel.exception.PortalException,
520 com.liferay.portal.kernel.exception.SystemException {
521 return getService()
522 .getArticleDisplay(groupId, articleId, viewMode, languageId,
523 page, xmlRequest, themeDisplay);
524 }
525
526 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
527 long groupId, java.lang.String articleId, java.lang.String templateId,
528 java.lang.String viewMode, java.lang.String languageId, int page,
529 java.lang.String xmlRequest,
530 com.liferay.portal.theme.ThemeDisplay themeDisplay)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException {
533 return getService()
534 .getArticleDisplay(groupId, articleId, templateId, viewMode,
535 languageId, page, xmlRequest, themeDisplay);
536 }
537
538 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
539 long groupId, java.lang.String articleId, java.lang.String templateId,
540 java.lang.String viewMode, java.lang.String languageId,
541 com.liferay.portal.theme.ThemeDisplay themeDisplay)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException {
544 return getService()
545 .getArticleDisplay(groupId, articleId, templateId, viewMode,
546 languageId, themeDisplay);
547 }
548
549 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
550 long groupId, java.lang.String articleId, java.lang.String viewMode,
551 java.lang.String languageId,
552 com.liferay.portal.theme.ThemeDisplay themeDisplay)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException {
555 return getService()
556 .getArticleDisplay(groupId, articleId, viewMode, languageId,
557 themeDisplay);
558 }
559
560 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
561 throws com.liferay.portal.kernel.exception.SystemException {
562 return getService().getArticles();
563 }
564
565 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
566 long groupId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().getArticles(groupId);
569 }
570
571 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
572 long groupId, int start, int end)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return getService().getArticles(groupId, start, end);
575 }
576
577 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
578 long groupId, int start, int end,
579 com.liferay.portal.kernel.util.OrderByComparator obc)
580 throws com.liferay.portal.kernel.exception.SystemException {
581 return getService().getArticles(groupId, start, end, obc);
582 }
583
584 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
585 long groupId, java.lang.String articleId)
586 throws com.liferay.portal.kernel.exception.SystemException {
587 return getService().getArticles(groupId, articleId);
588 }
589
590 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
591 long smallImageId)
592 throws com.liferay.portal.kernel.exception.SystemException {
593 return getService().getArticlesBySmallImageId(smallImageId);
594 }
595
596 public static int getArticlesCount(long groupId)
597 throws com.liferay.portal.kernel.exception.SystemException {
598 return getService().getArticlesCount(groupId);
599 }
600
601 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
602 long companyId, int status, int start, int end)
603 throws com.liferay.portal.kernel.exception.SystemException {
604 return getService().getCompanyArticles(companyId, status, start, end);
605 }
606
607 public static int getCompanyArticlesCount(long companyId, int status)
608 throws com.liferay.portal.kernel.exception.SystemException {
609 return getService().getCompanyArticlesCount(companyId, status);
610 }
611
612 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
613 long groupId, java.lang.String articleId)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 return getService().getDisplayArticle(groupId, articleId);
617 }
618
619 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
620 long resourcePrimKey)
621 throws com.liferay.portal.kernel.exception.PortalException,
622 com.liferay.portal.kernel.exception.SystemException {
623 return getService().getLatestArticle(resourcePrimKey);
624 }
625
626 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
627 long resourcePrimKey, int status)
628 throws com.liferay.portal.kernel.exception.PortalException,
629 com.liferay.portal.kernel.exception.SystemException {
630 return getService().getLatestArticle(resourcePrimKey, status);
631 }
632
633 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
634 long resourcePrimKey, int status, boolean preferApproved)
635 throws com.liferay.portal.kernel.exception.PortalException,
636 com.liferay.portal.kernel.exception.SystemException {
637 return getService()
638 .getLatestArticle(resourcePrimKey, status, preferApproved);
639 }
640
641 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
642 long groupId, java.lang.String articleId)
643 throws com.liferay.portal.kernel.exception.PortalException,
644 com.liferay.portal.kernel.exception.SystemException {
645 return getService().getLatestArticle(groupId, articleId);
646 }
647
648 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
649 long groupId, java.lang.String articleId, int status)
650 throws com.liferay.portal.kernel.exception.PortalException,
651 com.liferay.portal.kernel.exception.SystemException {
652 return getService().getLatestArticle(groupId, articleId, status);
653 }
654
655 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
656 long groupId, java.lang.String urlTitle, int status)
657 throws com.liferay.portal.kernel.exception.PortalException,
658 com.liferay.portal.kernel.exception.SystemException {
659 return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
660 }
661
662 public static double getLatestVersion(long groupId,
663 java.lang.String articleId)
664 throws com.liferay.portal.kernel.exception.PortalException,
665 com.liferay.portal.kernel.exception.SystemException {
666 return getService().getLatestVersion(groupId, articleId);
667 }
668
669 public static double getLatestVersion(long groupId,
670 java.lang.String articleId, int status)
671 throws com.liferay.portal.kernel.exception.PortalException,
672 com.liferay.portal.kernel.exception.SystemException {
673 return getService().getLatestVersion(groupId, articleId, status);
674 }
675
676 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
677 long groupId, java.lang.String structureId)
678 throws com.liferay.portal.kernel.exception.SystemException {
679 return getService().getStructureArticles(groupId, structureId);
680 }
681
682 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
683 long groupId, java.lang.String structureId, int start, int end,
684 com.liferay.portal.kernel.util.OrderByComparator obc)
685 throws com.liferay.portal.kernel.exception.SystemException {
686 return getService()
687 .getStructureArticles(groupId, structureId, start, end, obc);
688 }
689
690 public static int getStructureArticlesCount(long groupId,
691 java.lang.String structureId)
692 throws com.liferay.portal.kernel.exception.SystemException {
693 return getService().getStructureArticlesCount(groupId, structureId);
694 }
695
696 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
697 long groupId, java.lang.String templateId)
698 throws com.liferay.portal.kernel.exception.SystemException {
699 return getService().getTemplateArticles(groupId, templateId);
700 }
701
702 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
703 long groupId, java.lang.String templateId, int start, int end,
704 com.liferay.portal.kernel.util.OrderByComparator obc)
705 throws com.liferay.portal.kernel.exception.SystemException {
706 return getService()
707 .getTemplateArticles(groupId, templateId, start, end, obc);
708 }
709
710 public static int getTemplateArticlesCount(long groupId,
711 java.lang.String templateId)
712 throws com.liferay.portal.kernel.exception.SystemException {
713 return getService().getTemplateArticlesCount(groupId, templateId);
714 }
715
716 public static boolean hasArticle(long groupId, java.lang.String articleId)
717 throws com.liferay.portal.kernel.exception.SystemException {
718 return getService().hasArticle(groupId, articleId);
719 }
720
721 public static boolean isLatestVersion(long groupId,
722 java.lang.String articleId, double version)
723 throws com.liferay.portal.kernel.exception.PortalException,
724 com.liferay.portal.kernel.exception.SystemException {
725 return getService().isLatestVersion(groupId, articleId, version);
726 }
727
728 public static boolean isLatestVersion(long groupId,
729 java.lang.String articleId, double version, int status)
730 throws com.liferay.portal.kernel.exception.PortalException,
731 com.liferay.portal.kernel.exception.SystemException {
732 return getService().isLatestVersion(groupId, articleId, version, status);
733 }
734
735 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
736 long groupId, java.lang.String articleId, double version,
737 java.lang.String languageId)
738 throws com.liferay.portal.kernel.exception.PortalException,
739 com.liferay.portal.kernel.exception.SystemException {
740 return getService()
741 .removeArticleLocale(groupId, articleId, version, languageId);
742 }
743
744 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
745 long companyId, long groupId, java.lang.String keywords,
746 java.lang.Double version, java.lang.String type,
747 java.lang.String structureId, java.lang.String templateId,
748 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
749 java.util.Date reviewDate, int start, int end,
750 com.liferay.portal.kernel.util.OrderByComparator obc)
751 throws com.liferay.portal.kernel.exception.SystemException {
752 return getService()
753 .search(companyId, groupId, keywords, version, type,
754 structureId, templateId, displayDateGT, displayDateLT, status,
755 reviewDate, start, end, obc);
756 }
757
758 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
759 long companyId, long groupId, java.lang.String articleId,
760 java.lang.Double version, java.lang.String title,
761 java.lang.String description, java.lang.String content,
762 java.lang.String type, java.lang.String structureId,
763 java.lang.String templateId, java.util.Date displayDateGT,
764 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
765 boolean andOperator, int start, int end,
766 com.liferay.portal.kernel.util.OrderByComparator obc)
767 throws com.liferay.portal.kernel.exception.SystemException {
768 return getService()
769 .search(companyId, groupId, articleId, version, title,
770 description, content, type, structureId, templateId, displayDateGT,
771 displayDateLT, status, reviewDate, andOperator, start, end, obc);
772 }
773
774 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
775 long companyId, long groupId, java.lang.String articleId,
776 java.lang.Double version, java.lang.String title,
777 java.lang.String description, java.lang.String content,
778 java.lang.String type, java.lang.String[] structureIds,
779 java.lang.String[] templateIds, java.util.Date displayDateGT,
780 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
781 boolean andOperator, int start, int end,
782 com.liferay.portal.kernel.util.OrderByComparator obc)
783 throws com.liferay.portal.kernel.exception.SystemException {
784 return getService()
785 .search(companyId, groupId, articleId, version, title,
786 description, content, type, structureIds, templateIds,
787 displayDateGT, displayDateLT, status, reviewDate, andOperator,
788 start, end, obc);
789 }
790
791 public static int searchCount(long companyId, long groupId,
792 java.lang.String keywords, java.lang.Double version,
793 java.lang.String type, java.lang.String structureId,
794 java.lang.String templateId, java.util.Date displayDateGT,
795 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
796 throws com.liferay.portal.kernel.exception.SystemException {
797 return getService()
798 .searchCount(companyId, groupId, keywords, version, type,
799 structureId, templateId, displayDateGT, displayDateLT, status,
800 reviewDate);
801 }
802
803 public static int searchCount(long companyId, long groupId,
804 java.lang.String articleId, java.lang.Double version,
805 java.lang.String title, java.lang.String description,
806 java.lang.String content, java.lang.String type,
807 java.lang.String structureId, java.lang.String templateId,
808 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
809 java.util.Date reviewDate, boolean andOperator)
810 throws com.liferay.portal.kernel.exception.SystemException {
811 return getService()
812 .searchCount(companyId, groupId, articleId, version, title,
813 description, content, type, structureId, templateId, displayDateGT,
814 displayDateLT, status, reviewDate, andOperator);
815 }
816
817 public static int searchCount(long companyId, long groupId,
818 java.lang.String articleId, java.lang.Double version,
819 java.lang.String title, java.lang.String description,
820 java.lang.String content, java.lang.String type,
821 java.lang.String[] structureIds, java.lang.String[] templateIds,
822 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
823 java.util.Date reviewDate, boolean andOperator)
824 throws com.liferay.portal.kernel.exception.SystemException {
825 return getService()
826 .searchCount(companyId, groupId, articleId, version, title,
827 description, content, type, structureIds, templateIds,
828 displayDateGT, displayDateLT, status, reviewDate, andOperator);
829 }
830
831 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
832 long userId, long groupId, java.lang.String articleId, double version,
833 java.lang.String content)
834 throws com.liferay.portal.kernel.exception.PortalException,
835 com.liferay.portal.kernel.exception.SystemException {
836 return getService()
837 .updateArticle(userId, groupId, articleId, version, content);
838 }
839
840 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
841 long userId, long groupId, java.lang.String articleId, double version,
842 java.lang.String title, java.lang.String description,
843 java.lang.String content, java.lang.String type,
844 java.lang.String structureId, java.lang.String templateId,
845 int displayDateMonth, int displayDateDay, int displayDateYear,
846 int displayDateHour, int displayDateMinute, int expirationDateMonth,
847 int expirationDateDay, int expirationDateYear, int expirationDateHour,
848 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
849 int reviewDateDay, int reviewDateYear, int reviewDateHour,
850 int reviewDateMinute, boolean neverReview, boolean indexable,
851 boolean smallImage, java.lang.String smallImageURL,
852 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
853 java.lang.String articleURL,
854 com.liferay.portal.service.ServiceContext serviceContext)
855 throws com.liferay.portal.kernel.exception.PortalException,
856 com.liferay.portal.kernel.exception.SystemException {
857 return getService()
858 .updateArticle(userId, groupId, articleId, version, title,
859 description, content, type, structureId, templateId,
860 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
861 displayDateMinute, expirationDateMonth, expirationDateDay,
862 expirationDateYear, expirationDateHour, expirationDateMinute,
863 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
864 reviewDateHour, reviewDateMinute, neverReview, indexable,
865 smallImage, smallImageURL, smallFile, images, articleURL,
866 serviceContext);
867 }
868
869 public static void updateAsset(long userId,
870 com.liferay.portlet.journal.model.JournalArticle article,
871 long[] assetCategoryIds, java.lang.String[] assetTagNames)
872 throws com.liferay.portal.kernel.exception.PortalException,
873 com.liferay.portal.kernel.exception.SystemException {
874 getService()
875 .updateAsset(userId, article, assetCategoryIds, assetTagNames);
876 }
877
878 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
879 long groupId, java.lang.String articleId, double version,
880 java.lang.String content)
881 throws com.liferay.portal.kernel.exception.PortalException,
882 com.liferay.portal.kernel.exception.SystemException {
883 return getService().updateContent(groupId, articleId, version, content);
884 }
885
886 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
887 long userId, com.liferay.portlet.journal.model.JournalArticle article,
888 int status, java.lang.String articleURL,
889 com.liferay.portal.service.ServiceContext serviceContext)
890 throws com.liferay.portal.kernel.exception.PortalException,
891 com.liferay.portal.kernel.exception.SystemException {
892 return getService()
893 .updateStatus(userId, article, status, articleURL,
894 serviceContext);
895 }
896
897 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
898 long userId, long classPK, int status,
899 com.liferay.portal.service.ServiceContext serviceContext)
900 throws com.liferay.portal.kernel.exception.PortalException,
901 com.liferay.portal.kernel.exception.SystemException {
902 return getService().updateStatus(userId, classPK, status, serviceContext);
903 }
904
905 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
906 long userId, long groupId, java.lang.String articleId, double version,
907 int status, java.lang.String articleURL,
908 com.liferay.portal.service.ServiceContext serviceContext)
909 throws com.liferay.portal.kernel.exception.PortalException,
910 com.liferay.portal.kernel.exception.SystemException {
911 return getService()
912 .updateStatus(userId, groupId, articleId, version, status,
913 articleURL, serviceContext);
914 }
915
916 public static JournalArticleLocalService getService() {
917 if (_service == null) {
918 _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
919 }
920
921 return _service;
922 }
923
924 public void setService(JournalArticleLocalService service) {
925 _service = service;
926 }
927
928 private static JournalArticleLocalService _service;
929 }