001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class JournalArticleLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
048 com.liferay.portlet.journal.model.JournalArticle journalArticle)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addJournalArticle(journalArticle);
051 }
052
053
059 public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
060 long id) {
061 return getService().createJournalArticle(id);
062 }
063
064
072 public static com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle(
073 long id)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteJournalArticle(id);
077 }
078
079
086 public static com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle(
087 com.liferay.portlet.journal.model.JournalArticle journalArticle)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteJournalArticle(journalArticle);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle(
168 long id) throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().fetchJournalArticle(id);
170 }
171
172
180 public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
181 long id)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getJournalArticle(id);
185 }
186
187 public static com.liferay.portal.model.PersistedModel getPersistedModel(
188 java.io.Serializable primaryKeyObj)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getPersistedModel(primaryKeyObj);
192 }
193
194
203 public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
208 }
209
210
222 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
223 int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getJournalArticles(start, end);
226 }
227
228
234 public static int getJournalArticlesCount()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().getJournalArticlesCount();
237 }
238
239
246 public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
247 com.liferay.portlet.journal.model.JournalArticle journalArticle)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateJournalArticle(journalArticle);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
271 long userId, long groupId, long folderId, long classNameId,
272 long classPK, java.lang.String articleId, boolean autoArticleId,
273 double version,
274 java.util.Map<java.util.Locale, java.lang.String> titleMap,
275 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
276 java.lang.String content, java.lang.String type,
277 java.lang.String structureId, java.lang.String templateId,
278 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
279 int displayDateYear, int displayDateHour, int displayDateMinute,
280 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
281 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
282 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
283 int reviewDateHour, int reviewDateMinute, boolean neverReview,
284 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
285 java.io.File smallImageFile,
286 java.util.Map<java.lang.String, byte[]> images,
287 java.lang.String articleURL,
288 com.liferay.portal.service.ServiceContext serviceContext)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 return getService()
292 .addArticle(userId, groupId, folderId, classNameId, classPK,
293 articleId, autoArticleId, version, titleMap, descriptionMap,
294 content, type, structureId, templateId, layoutUuid,
295 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
296 displayDateMinute, expirationDateMonth, expirationDateDay,
297 expirationDateYear, expirationDateHour, expirationDateMinute,
298 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
299 reviewDateHour, reviewDateMinute, neverReview, indexable,
300 smallImage, smallImageURL, smallImageFile, images, articleURL,
301 serviceContext);
302 }
303
304 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
305 long userId, long groupId, long folderId,
306 java.util.Map<java.util.Locale, java.lang.String> titleMap,
307 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
308 java.lang.String content, java.lang.String structureId,
309 java.lang.String templateId,
310 com.liferay.portal.service.ServiceContext serviceContext)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException {
313 return getService()
314 .addArticle(userId, groupId, folderId, titleMap,
315 descriptionMap, content, structureId, templateId, serviceContext);
316 }
317
318 public static void addArticleResources(
319 com.liferay.portlet.journal.model.JournalArticle article,
320 boolean addGroupPermissions, boolean addGuestPermissions)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 getService()
324 .addArticleResources(article, addGroupPermissions,
325 addGuestPermissions);
326 }
327
328 public static void addArticleResources(
329 com.liferay.portlet.journal.model.JournalArticle article,
330 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException {
333 getService()
334 .addArticleResources(article, groupPermissions, guestPermissions);
335 }
336
337 public static void addArticleResources(long groupId,
338 java.lang.String articleId, boolean addGroupPermissions,
339 boolean addGuestPermissions)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException {
342 getService()
343 .addArticleResources(groupId, articleId, addGroupPermissions,
344 addGuestPermissions);
345 }
346
347 public static void addArticleResources(long groupId,
348 java.lang.String articleId, java.lang.String[] groupPermissions,
349 java.lang.String[] guestPermissions)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 getService()
353 .addArticleResources(groupId, articleId, groupPermissions,
354 guestPermissions);
355 }
356
357 public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
358 long groupId, java.lang.String articleId, double version)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 return getService()
362 .checkArticleResourcePrimKey(groupId, articleId, version);
363 }
364
365 public static void checkArticles()
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException {
368 getService().checkArticles();
369 }
370
371 public static void checkNewLine(long groupId, java.lang.String articleId,
372 double version)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException {
375 getService().checkNewLine(groupId, articleId, version);
376 }
377
378 public static void checkStructure(long groupId, java.lang.String articleId,
379 double version)
380 throws com.liferay.portal.kernel.exception.PortalException,
381 com.liferay.portal.kernel.exception.SystemException {
382 getService().checkStructure(groupId, articleId, version);
383 }
384
385 public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
386 long userId, long groupId, java.lang.String oldArticleId,
387 java.lang.String newArticleId, boolean autoArticleId, double version)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException {
390 return getService()
391 .copyArticle(userId, groupId, oldArticleId, newArticleId,
392 autoArticleId, version);
393 }
394
395 public static void deleteArticle(
396 com.liferay.portlet.journal.model.JournalArticle article)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 getService().deleteArticle(article);
400 }
401
402 public static void deleteArticle(
403 com.liferay.portlet.journal.model.JournalArticle article,
404 java.lang.String articleURL,
405 com.liferay.portal.service.ServiceContext serviceContext)
406 throws com.liferay.portal.kernel.exception.PortalException,
407 com.liferay.portal.kernel.exception.SystemException {
408 getService().deleteArticle(article, articleURL, serviceContext);
409 }
410
411 public static void deleteArticle(long groupId, java.lang.String articleId,
412 double version, java.lang.String articleURL,
413 com.liferay.portal.service.ServiceContext serviceContext)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 getService()
417 .deleteArticle(groupId, articleId, version, articleURL,
418 serviceContext);
419 }
420
421 public static void deleteArticle(long groupId, java.lang.String articleId,
422 com.liferay.portal.service.ServiceContext serviceContext)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 getService().deleteArticle(groupId, articleId, serviceContext);
426 }
427
428 public static void deleteArticles(long groupId)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException {
431 getService().deleteArticles(groupId);
432 }
433
434 public static void deleteArticles(long groupId, long folderId)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException {
437 getService().deleteArticles(groupId, folderId);
438 }
439
440 public static void deleteLayoutArticleReferences(long groupId,
441 java.lang.String layoutUuid)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 getService().deleteLayoutArticleReferences(groupId, layoutUuid);
444 }
445
446 public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
447 long userId, long groupId, java.lang.String articleId, double version,
448 java.lang.String articleURL,
449 com.liferay.portal.service.ServiceContext serviceContext)
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException {
452 return getService()
453 .expireArticle(userId, groupId, articleId, version,
454 articleURL, serviceContext);
455 }
456
457 public static void expireArticle(long userId, long groupId,
458 java.lang.String articleId, java.lang.String articleURL,
459 com.liferay.portal.service.ServiceContext serviceContext)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 getService()
463 .expireArticle(userId, groupId, articleId, articleURL,
464 serviceContext);
465 }
466
467 public static com.liferay.portlet.journal.model.JournalArticle fetchArticle(
468 java.lang.String uuid, long groupId)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 return getService().fetchArticle(uuid, groupId);
471 }
472
473 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
474 long id)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException {
477 return getService().getArticle(id);
478 }
479
480 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
481 long groupId, java.lang.String articleId)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException {
484 return getService().getArticle(groupId, articleId);
485 }
486
487 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
488 long groupId, java.lang.String articleId, double version)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException {
491 return getService().getArticle(groupId, articleId, version);
492 }
493
494 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
495 long groupId, java.lang.String className, long classPK)
496 throws com.liferay.portal.kernel.exception.PortalException,
497 com.liferay.portal.kernel.exception.SystemException {
498 return getService().getArticle(groupId, className, classPK);
499 }
500
501 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
502 long groupId, java.lang.String urlTitle)
503 throws com.liferay.portal.kernel.exception.PortalException,
504 com.liferay.portal.kernel.exception.SystemException {
505 return getService().getArticleByUrlTitle(groupId, urlTitle);
506 }
507
508 public static java.lang.String getArticleContent(
509 com.liferay.portlet.journal.model.JournalArticle article,
510 java.lang.String templateId, java.lang.String viewMode,
511 java.lang.String languageId,
512 com.liferay.portal.theme.ThemeDisplay themeDisplay)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException {
515 return getService()
516 .getArticleContent(article, templateId, viewMode,
517 languageId, themeDisplay);
518 }
519
520 public static java.lang.String getArticleContent(long groupId,
521 java.lang.String articleId, double version, java.lang.String viewMode,
522 java.lang.String templateId, java.lang.String languageId,
523 com.liferay.portal.theme.ThemeDisplay themeDisplay)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException {
526 return getService()
527 .getArticleContent(groupId, articleId, version, viewMode,
528 templateId, languageId, themeDisplay);
529 }
530
531 public static java.lang.String getArticleContent(long groupId,
532 java.lang.String articleId, double version, java.lang.String viewMode,
533 java.lang.String languageId,
534 com.liferay.portal.theme.ThemeDisplay themeDisplay)
535 throws com.liferay.portal.kernel.exception.PortalException,
536 com.liferay.portal.kernel.exception.SystemException {
537 return getService()
538 .getArticleContent(groupId, articleId, version, viewMode,
539 languageId, themeDisplay);
540 }
541
542 public static java.lang.String getArticleContent(long groupId,
543 java.lang.String articleId, java.lang.String viewMode,
544 java.lang.String templateId, java.lang.String languageId,
545 com.liferay.portal.theme.ThemeDisplay themeDisplay)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 return getService()
549 .getArticleContent(groupId, articleId, viewMode, templateId,
550 languageId, themeDisplay);
551 }
552
553 public static java.lang.String getArticleContent(long groupId,
554 java.lang.String articleId, java.lang.String viewMode,
555 java.lang.String languageId,
556 com.liferay.portal.theme.ThemeDisplay themeDisplay)
557 throws com.liferay.portal.kernel.exception.PortalException,
558 com.liferay.portal.kernel.exception.SystemException {
559 return getService()
560 .getArticleContent(groupId, articleId, viewMode, languageId,
561 themeDisplay);
562 }
563
564 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
565 com.liferay.portlet.journal.model.JournalArticle article,
566 java.lang.String templateId, java.lang.String viewMode,
567 java.lang.String languageId, int page, java.lang.String xmlRequest,
568 com.liferay.portal.theme.ThemeDisplay themeDisplay)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException {
571 return getService()
572 .getArticleDisplay(article, templateId, viewMode,
573 languageId, page, xmlRequest, themeDisplay);
574 }
575
576 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
577 long groupId, java.lang.String articleId, double version,
578 java.lang.String templateId, java.lang.String viewMode,
579 java.lang.String languageId, int page, java.lang.String xmlRequest,
580 com.liferay.portal.theme.ThemeDisplay themeDisplay)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException {
583 return getService()
584 .getArticleDisplay(groupId, articleId, version, templateId,
585 viewMode, languageId, page, xmlRequest, themeDisplay);
586 }
587
588 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
589 long groupId, java.lang.String articleId, double version,
590 java.lang.String templateId, java.lang.String viewMode,
591 java.lang.String languageId,
592 com.liferay.portal.theme.ThemeDisplay themeDisplay)
593 throws com.liferay.portal.kernel.exception.PortalException,
594 com.liferay.portal.kernel.exception.SystemException {
595 return getService()
596 .getArticleDisplay(groupId, articleId, version, templateId,
597 viewMode, languageId, themeDisplay);
598 }
599
600 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
601 long groupId, java.lang.String articleId, java.lang.String viewMode,
602 java.lang.String languageId, int page, java.lang.String xmlRequest,
603 com.liferay.portal.theme.ThemeDisplay themeDisplay)
604 throws com.liferay.portal.kernel.exception.PortalException,
605 com.liferay.portal.kernel.exception.SystemException {
606 return getService()
607 .getArticleDisplay(groupId, articleId, viewMode, languageId,
608 page, xmlRequest, themeDisplay);
609 }
610
611 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
612 long groupId, java.lang.String articleId, java.lang.String templateId,
613 java.lang.String viewMode, java.lang.String languageId, int page,
614 java.lang.String xmlRequest,
615 com.liferay.portal.theme.ThemeDisplay themeDisplay)
616 throws com.liferay.portal.kernel.exception.PortalException,
617 com.liferay.portal.kernel.exception.SystemException {
618 return getService()
619 .getArticleDisplay(groupId, articleId, templateId, viewMode,
620 languageId, page, xmlRequest, themeDisplay);
621 }
622
623 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
624 long groupId, java.lang.String articleId, java.lang.String templateId,
625 java.lang.String viewMode, java.lang.String languageId,
626 com.liferay.portal.theme.ThemeDisplay themeDisplay)
627 throws com.liferay.portal.kernel.exception.PortalException,
628 com.liferay.portal.kernel.exception.SystemException {
629 return getService()
630 .getArticleDisplay(groupId, articleId, templateId, viewMode,
631 languageId, themeDisplay);
632 }
633
634 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
635 long groupId, java.lang.String articleId, java.lang.String viewMode,
636 java.lang.String languageId,
637 com.liferay.portal.theme.ThemeDisplay themeDisplay)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException {
640 return getService()
641 .getArticleDisplay(groupId, articleId, viewMode, languageId,
642 themeDisplay);
643 }
644
645 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService().getArticles();
648 }
649
650 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
651 long groupId)
652 throws com.liferay.portal.kernel.exception.SystemException {
653 return getService().getArticles(groupId);
654 }
655
656 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
657 long groupId, int start, int end)
658 throws com.liferay.portal.kernel.exception.SystemException {
659 return getService().getArticles(groupId, start, end);
660 }
661
662 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
663 long groupId, int start, int end,
664 com.liferay.portal.kernel.util.OrderByComparator obc)
665 throws com.liferay.portal.kernel.exception.SystemException {
666 return getService().getArticles(groupId, start, end, obc);
667 }
668
669 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
670 long groupId, long folderId)
671 throws com.liferay.portal.kernel.exception.SystemException {
672 return getService().getArticles(groupId, folderId);
673 }
674
675 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
676 long groupId, long folderId, int start, int end)
677 throws com.liferay.portal.kernel.exception.SystemException {
678 return getService().getArticles(groupId, folderId, start, end);
679 }
680
681 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
682 long groupId, long folderId, int start, int end,
683 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
684 throws com.liferay.portal.kernel.exception.SystemException {
685 return getService()
686 .getArticles(groupId, folderId, start, end, orderByComparator);
687 }
688
689 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
690 long groupId, java.lang.String articleId)
691 throws com.liferay.portal.kernel.exception.SystemException {
692 return getService().getArticles(groupId, articleId);
693 }
694
695 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
696 long smallImageId)
697 throws com.liferay.portal.kernel.exception.SystemException {
698 return getService().getArticlesBySmallImageId(smallImageId);
699 }
700
701 public static int getArticlesCount(long groupId)
702 throws com.liferay.portal.kernel.exception.SystemException {
703 return getService().getArticlesCount(groupId);
704 }
705
706 public static int getArticlesCount(long groupId, long folderId)
707 throws com.liferay.portal.kernel.exception.SystemException {
708 return getService().getArticlesCount(groupId, folderId);
709 }
710
711 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
712 long companyId, double version, int status, int start, int end)
713 throws com.liferay.portal.kernel.exception.SystemException {
714 return getService()
715 .getCompanyArticles(companyId, version, status, start, end);
716 }
717
718 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
719 long companyId, int status, int start, int end)
720 throws com.liferay.portal.kernel.exception.SystemException {
721 return getService().getCompanyArticles(companyId, status, start, end);
722 }
723
724 public static int getCompanyArticlesCount(long companyId, double version,
725 int status, int start, int end)
726 throws com.liferay.portal.kernel.exception.SystemException {
727 return getService()
728 .getCompanyArticlesCount(companyId, version, status, start,
729 end);
730 }
731
732 public static int getCompanyArticlesCount(long companyId, int status)
733 throws com.liferay.portal.kernel.exception.SystemException {
734 return getService().getCompanyArticlesCount(companyId, status);
735 }
736
737 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
738 long groupId, java.lang.String articleId)
739 throws com.liferay.portal.kernel.exception.PortalException,
740 com.liferay.portal.kernel.exception.SystemException {
741 return getService().getDisplayArticle(groupId, articleId);
742 }
743
744 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
745 long groupId, java.lang.String urlTitle)
746 throws com.liferay.portal.kernel.exception.PortalException,
747 com.liferay.portal.kernel.exception.SystemException {
748 return getService().getDisplayArticleByUrlTitle(groupId, urlTitle);
749 }
750
751 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
752 long resourcePrimKey)
753 throws com.liferay.portal.kernel.exception.PortalException,
754 com.liferay.portal.kernel.exception.SystemException {
755 return getService().getLatestArticle(resourcePrimKey);
756 }
757
758 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
759 long resourcePrimKey, int status)
760 throws com.liferay.portal.kernel.exception.PortalException,
761 com.liferay.portal.kernel.exception.SystemException {
762 return getService().getLatestArticle(resourcePrimKey, status);
763 }
764
765 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
766 long resourcePrimKey, int status, boolean preferApproved)
767 throws com.liferay.portal.kernel.exception.PortalException,
768 com.liferay.portal.kernel.exception.SystemException {
769 return getService()
770 .getLatestArticle(resourcePrimKey, status, preferApproved);
771 }
772
773 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
774 long groupId, java.lang.String articleId)
775 throws com.liferay.portal.kernel.exception.PortalException,
776 com.liferay.portal.kernel.exception.SystemException {
777 return getService().getLatestArticle(groupId, articleId);
778 }
779
780 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
781 long groupId, java.lang.String articleId, int status)
782 throws com.liferay.portal.kernel.exception.PortalException,
783 com.liferay.portal.kernel.exception.SystemException {
784 return getService().getLatestArticle(groupId, articleId, status);
785 }
786
787 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
788 long groupId, java.lang.String className, long classPK)
789 throws com.liferay.portal.kernel.exception.PortalException,
790 com.liferay.portal.kernel.exception.SystemException {
791 return getService().getLatestArticle(groupId, className, classPK);
792 }
793
794 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
795 long groupId, java.lang.String urlTitle, int status)
796 throws com.liferay.portal.kernel.exception.PortalException,
797 com.liferay.portal.kernel.exception.SystemException {
798 return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
799 }
800
801 public static double getLatestVersion(long groupId,
802 java.lang.String articleId)
803 throws com.liferay.portal.kernel.exception.PortalException,
804 com.liferay.portal.kernel.exception.SystemException {
805 return getService().getLatestVersion(groupId, articleId);
806 }
807
808 public static double getLatestVersion(long groupId,
809 java.lang.String articleId, int status)
810 throws com.liferay.portal.kernel.exception.PortalException,
811 com.liferay.portal.kernel.exception.SystemException {
812 return getService().getLatestVersion(groupId, articleId, status);
813 }
814
815 public static int getNotInTrashArticlesCount(long groupId, long folderId)
816 throws com.liferay.portal.kernel.exception.SystemException {
817 return getService().getNotInTrashArticlesCount(groupId, folderId);
818 }
819
820 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
821 long groupId, java.lang.String structureId)
822 throws com.liferay.portal.kernel.exception.SystemException {
823 return getService().getStructureArticles(groupId, structureId);
824 }
825
826 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
827 long groupId, java.lang.String structureId, int start, int end,
828 com.liferay.portal.kernel.util.OrderByComparator obc)
829 throws com.liferay.portal.kernel.exception.SystemException {
830 return getService()
831 .getStructureArticles(groupId, structureId, start, end, obc);
832 }
833
834 public static int getStructureArticlesCount(long groupId,
835 java.lang.String structureId)
836 throws com.liferay.portal.kernel.exception.SystemException {
837 return getService().getStructureArticlesCount(groupId, structureId);
838 }
839
840 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
841 long groupId, java.lang.String templateId)
842 throws com.liferay.portal.kernel.exception.SystemException {
843 return getService().getTemplateArticles(groupId, templateId);
844 }
845
846 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
847 long groupId, java.lang.String templateId, int start, int end,
848 com.liferay.portal.kernel.util.OrderByComparator obc)
849 throws com.liferay.portal.kernel.exception.SystemException {
850 return getService()
851 .getTemplateArticles(groupId, templateId, start, end, obc);
852 }
853
854 public static int getTemplateArticlesCount(long groupId,
855 java.lang.String templateId)
856 throws com.liferay.portal.kernel.exception.SystemException {
857 return getService().getTemplateArticlesCount(groupId, templateId);
858 }
859
860 public static boolean hasArticle(long groupId, java.lang.String articleId)
861 throws com.liferay.portal.kernel.exception.SystemException {
862 return getService().hasArticle(groupId, articleId);
863 }
864
865 public static boolean isLatestVersion(long groupId,
866 java.lang.String articleId, double version)
867 throws com.liferay.portal.kernel.exception.PortalException,
868 com.liferay.portal.kernel.exception.SystemException {
869 return getService().isLatestVersion(groupId, articleId, version);
870 }
871
872 public static boolean isLatestVersion(long groupId,
873 java.lang.String articleId, double version, int status)
874 throws com.liferay.portal.kernel.exception.PortalException,
875 com.liferay.portal.kernel.exception.SystemException {
876 return getService().isLatestVersion(groupId, articleId, version, status);
877 }
878
879 public static void moveArticle(long groupId, java.lang.String articleId,
880 long newFolderId)
881 throws com.liferay.portal.kernel.exception.SystemException {
882 getService().moveArticle(groupId, articleId, newFolderId);
883 }
884
885 public static com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
886 long userId, com.liferay.portlet.journal.model.JournalArticle article)
887 throws com.liferay.portal.kernel.exception.PortalException,
888 com.liferay.portal.kernel.exception.SystemException {
889 return getService().moveArticleToTrash(userId, article);
890 }
891
892 public static com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
893 long userId, long groupId, java.lang.String articleId)
894 throws com.liferay.portal.kernel.exception.PortalException,
895 com.liferay.portal.kernel.exception.SystemException {
896 return getService().moveArticleToTrash(userId, groupId, articleId);
897 }
898
899 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
900 long groupId, java.lang.String articleId, double version,
901 java.lang.String languageId)
902 throws com.liferay.portal.kernel.exception.PortalException,
903 com.liferay.portal.kernel.exception.SystemException {
904 return getService()
905 .removeArticleLocale(groupId, articleId, version, languageId);
906 }
907
908 public static void restoreArticleFromTrash(long userId,
909 com.liferay.portlet.journal.model.JournalArticle article)
910 throws com.liferay.portal.kernel.exception.PortalException,
911 com.liferay.portal.kernel.exception.SystemException {
912 getService().restoreArticleFromTrash(userId, article);
913 }
914
915 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
916 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
917 long classNameId, java.lang.String keywords, java.lang.Double version,
918 java.lang.String type, java.lang.String structureId,
919 java.lang.String templateId, java.util.Date displayDateGT,
920 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
921 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
922 throws com.liferay.portal.kernel.exception.SystemException {
923 return getService()
924 .search(companyId, groupId, folderIds, classNameId,
925 keywords, version, type, structureId, templateId, displayDateGT,
926 displayDateLT, status, reviewDate, start, end, obc);
927 }
928
929 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
930 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
931 long classNameId, java.lang.String articleId, java.lang.Double version,
932 java.lang.String title, java.lang.String description,
933 java.lang.String content, java.lang.String type,
934 java.lang.String structureId, java.lang.String templateId,
935 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
936 java.util.Date reviewDate, boolean andOperator, int start, int end,
937 com.liferay.portal.kernel.util.OrderByComparator obc)
938 throws com.liferay.portal.kernel.exception.SystemException {
939 return getService()
940 .search(companyId, groupId, folderIds, classNameId,
941 articleId, version, title, description, content, type, structureId,
942 templateId, displayDateGT, displayDateLT, status, reviewDate,
943 andOperator, start, end, obc);
944 }
945
946 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
947 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
948 long classNameId, java.lang.String articleId, java.lang.Double version,
949 java.lang.String title, java.lang.String description,
950 java.lang.String content, java.lang.String type,
951 java.lang.String[] structureIds, java.lang.String[] templateIds,
952 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
953 java.util.Date reviewDate, boolean andOperator, int start, int end,
954 com.liferay.portal.kernel.util.OrderByComparator obc)
955 throws com.liferay.portal.kernel.exception.SystemException {
956 return getService()
957 .search(companyId, groupId, folderIds, classNameId,
958 articleId, version, title, description, content, type,
959 structureIds, templateIds, displayDateGT, displayDateLT, status,
960 reviewDate, andOperator, start, end, obc);
961 }
962
963 public static com.liferay.portal.kernel.search.Hits search(long companyId,
964 long groupId, java.util.List<java.lang.Long> folderIds,
965 long classNameId, java.lang.String structureId,
966 java.lang.String templateId, java.lang.String keywords,
967 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
968 int start, int end, com.liferay.portal.kernel.search.Sort sort)
969 throws com.liferay.portal.kernel.exception.SystemException {
970 return getService()
971 .search(companyId, groupId, folderIds, classNameId,
972 structureId, templateId, keywords, params, start, end, sort);
973 }
974
975 public static com.liferay.portal.kernel.search.Hits search(long companyId,
976 long groupId, java.util.List<java.lang.Long> folderIds,
977 long classNameId, java.lang.String articleId, java.lang.String title,
978 java.lang.String description, java.lang.String content,
979 java.lang.String type, java.lang.String status,
980 java.lang.String structureId, java.lang.String templateId,
981 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
982 boolean andSearch, int start, int end,
983 com.liferay.portal.kernel.search.Sort sort)
984 throws com.liferay.portal.kernel.exception.SystemException {
985 return getService()
986 .search(companyId, groupId, folderIds, classNameId,
987 articleId, title, description, content, type, status, structureId,
988 templateId, params, andSearch, start, end, sort);
989 }
990
991 public static int searchCount(long companyId, long groupId,
992 java.util.List<java.lang.Long> folderIds, long classNameId,
993 java.lang.String keywords, java.lang.Double version,
994 java.lang.String type, java.lang.String structureId,
995 java.lang.String templateId, java.util.Date displayDateGT,
996 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
997 throws com.liferay.portal.kernel.exception.SystemException {
998 return getService()
999 .searchCount(companyId, groupId, folderIds, classNameId,
1000 keywords, version, type, structureId, templateId, displayDateGT,
1001 displayDateLT, status, reviewDate);
1002 }
1003
1004 public static int searchCount(long companyId, long groupId,
1005 java.util.List<java.lang.Long> folderIds, long classNameId,
1006 java.lang.String articleId, java.lang.Double version,
1007 java.lang.String title, java.lang.String description,
1008 java.lang.String content, java.lang.String type,
1009 java.lang.String structureId, java.lang.String templateId,
1010 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1011 java.util.Date reviewDate, boolean andOperator)
1012 throws com.liferay.portal.kernel.exception.SystemException {
1013 return getService()
1014 .searchCount(companyId, groupId, folderIds, classNameId,
1015 articleId, version, title, description, content, type, structureId,
1016 templateId, displayDateGT, displayDateLT, status, reviewDate,
1017 andOperator);
1018 }
1019
1020 public static int searchCount(long companyId, long groupId,
1021 java.util.List<java.lang.Long> folderIds, long classNameId,
1022 java.lang.String articleId, java.lang.Double version,
1023 java.lang.String title, java.lang.String description,
1024 java.lang.String content, java.lang.String type,
1025 java.lang.String[] structureIds, java.lang.String[] templateIds,
1026 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1027 java.util.Date reviewDate, boolean andOperator)
1028 throws com.liferay.portal.kernel.exception.SystemException {
1029 return getService()
1030 .searchCount(companyId, groupId, folderIds, classNameId,
1031 articleId, version, title, description, content, type,
1032 structureIds, templateIds, displayDateGT, displayDateLT, status,
1033 reviewDate, andOperator);
1034 }
1035
1036 public static void subscribe(long userId, long groupId)
1037 throws com.liferay.portal.kernel.exception.PortalException,
1038 com.liferay.portal.kernel.exception.SystemException {
1039 getService().subscribe(userId, groupId);
1040 }
1041
1042 public static void unsubscribe(long userId, long groupId)
1043 throws com.liferay.portal.kernel.exception.PortalException,
1044 com.liferay.portal.kernel.exception.SystemException {
1045 getService().unsubscribe(userId, groupId);
1046 }
1047
1048 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1049 long userId, long groupId, long folderId, java.lang.String articleId,
1050 double version,
1051 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1052 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1053 java.lang.String content, java.lang.String layoutUuid,
1054 com.liferay.portal.service.ServiceContext serviceContext)
1055 throws com.liferay.portal.kernel.exception.PortalException,
1056 com.liferay.portal.kernel.exception.SystemException {
1057 return getService()
1058 .updateArticle(userId, groupId, folderId, articleId,
1059 version, titleMap, descriptionMap, content, layoutUuid,
1060 serviceContext);
1061 }
1062
1063 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1064 long userId, long groupId, long folderId, java.lang.String articleId,
1065 double version,
1066 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1067 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1068 java.lang.String content, java.lang.String type,
1069 java.lang.String structureId, java.lang.String templateId,
1070 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1071 int displayDateYear, int displayDateHour, int displayDateMinute,
1072 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1073 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1074 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1075 int reviewDateHour, int reviewDateMinute, boolean neverReview,
1076 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1077 java.io.File smallImageFile,
1078 java.util.Map<java.lang.String, byte[]> images,
1079 java.lang.String articleURL,
1080 com.liferay.portal.service.ServiceContext serviceContext)
1081 throws com.liferay.portal.kernel.exception.PortalException,
1082 com.liferay.portal.kernel.exception.SystemException {
1083 return getService()
1084 .updateArticle(userId, groupId, folderId, articleId,
1085 version, titleMap, descriptionMap, content, type, structureId,
1086 templateId, layoutUuid, displayDateMonth, displayDateDay,
1087 displayDateYear, displayDateHour, displayDateMinute,
1088 expirationDateMonth, expirationDateDay, expirationDateYear,
1089 expirationDateHour, expirationDateMinute, neverExpire,
1090 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
1091 reviewDateMinute, neverReview, indexable, smallImage,
1092 smallImageURL, smallImageFile, images, articleURL, serviceContext);
1093 }
1094
1095 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1096 long userId, long groupId, long folderId, java.lang.String articleId,
1097 double version, java.lang.String content,
1098 com.liferay.portal.service.ServiceContext serviceContext)
1099 throws com.liferay.portal.kernel.exception.PortalException,
1100 com.liferay.portal.kernel.exception.SystemException {
1101 return getService()
1102 .updateArticle(userId, groupId, folderId, articleId,
1103 version, content, serviceContext);
1104 }
1105
1106
1110 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1111 long groupId, java.lang.String articleId, double version,
1112 java.util.Locale locale, java.lang.String title,
1113 java.lang.String description, java.lang.String content,
1114 java.util.Map<java.lang.String, byte[]> images)
1115 throws com.liferay.portal.kernel.exception.PortalException,
1116 com.liferay.portal.kernel.exception.SystemException {
1117 return getService()
1118 .updateArticleTranslation(groupId, articleId, version,
1119 locale, title, description, content, images);
1120 }
1121
1122 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1123 long groupId, java.lang.String articleId, double version,
1124 java.util.Locale locale, java.lang.String title,
1125 java.lang.String description, java.lang.String content,
1126 java.util.Map<java.lang.String, byte[]> images,
1127 com.liferay.portal.service.ServiceContext serviceContext)
1128 throws com.liferay.portal.kernel.exception.PortalException,
1129 com.liferay.portal.kernel.exception.SystemException {
1130 return getService()
1131 .updateArticleTranslation(groupId, articleId, version,
1132 locale, title, description, content, images, serviceContext);
1133 }
1134
1135 public static void updateAsset(long userId,
1136 com.liferay.portlet.journal.model.JournalArticle article,
1137 long[] assetCategoryIds, java.lang.String[] assetTagNames,
1138 long[] assetLinkEntryIds)
1139 throws com.liferay.portal.kernel.exception.PortalException,
1140 com.liferay.portal.kernel.exception.SystemException {
1141 getService()
1142 .updateAsset(userId, article, assetCategoryIds, assetTagNames,
1143 assetLinkEntryIds);
1144 }
1145
1146 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1147 long groupId, java.lang.String articleId, double version,
1148 java.lang.String content)
1149 throws com.liferay.portal.kernel.exception.PortalException,
1150 com.liferay.portal.kernel.exception.SystemException {
1151 return getService().updateContent(groupId, articleId, version, content);
1152 }
1153
1154 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1155 long userId, com.liferay.portlet.journal.model.JournalArticle article,
1156 int status, java.lang.String articleURL,
1157 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
1158 com.liferay.portal.service.ServiceContext serviceContext)
1159 throws com.liferay.portal.kernel.exception.PortalException,
1160 com.liferay.portal.kernel.exception.SystemException {
1161 return getService()
1162 .updateStatus(userId, article, status, articleURL,
1163 workflowContext, serviceContext);
1164 }
1165
1166 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1167 long userId, long classPK, int status,
1168 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
1169 com.liferay.portal.service.ServiceContext serviceContext)
1170 throws com.liferay.portal.kernel.exception.PortalException,
1171 com.liferay.portal.kernel.exception.SystemException {
1172 return getService()
1173 .updateStatus(userId, classPK, status, workflowContext,
1174 serviceContext);
1175 }
1176
1177 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1178 long userId, long groupId, java.lang.String articleId, double version,
1179 int status, java.lang.String articleURL,
1180 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
1181 com.liferay.portal.service.ServiceContext serviceContext)
1182 throws com.liferay.portal.kernel.exception.PortalException,
1183 com.liferay.portal.kernel.exception.SystemException {
1184 return getService()
1185 .updateStatus(userId, groupId, articleId, version, status,
1186 articleURL, workflowContext, serviceContext);
1187 }
1188
1189 public static void updateTemplateId(long groupId, long classNameId,
1190 java.lang.String oldTemplateId, java.lang.String newTemplateId)
1191 throws com.liferay.portal.kernel.exception.SystemException {
1192 getService()
1193 .updateTemplateId(groupId, classNameId, oldTemplateId, newTemplateId);
1194 }
1195
1196 public static JournalArticleLocalService getService() {
1197 if (_service == null) {
1198 _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
1199
1200 ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1201 "_service");
1202 }
1203
1204 return _service;
1205 }
1206
1207
1210 public void setService(JournalArticleLocalService service) {
1211 }
1212
1213 private static JournalArticleLocalService _service;
1214 }