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 getArticle(
468 long id)
469 throws com.liferay.portal.kernel.exception.PortalException,
470 com.liferay.portal.kernel.exception.SystemException {
471 return getService().getArticle(id);
472 }
473
474 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
475 long groupId, java.lang.String articleId)
476 throws com.liferay.portal.kernel.exception.PortalException,
477 com.liferay.portal.kernel.exception.SystemException {
478 return getService().getArticle(groupId, articleId);
479 }
480
481 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
482 long groupId, java.lang.String articleId, double version)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException {
485 return getService().getArticle(groupId, articleId, version);
486 }
487
488 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
489 long groupId, java.lang.String className, long classPK)
490 throws com.liferay.portal.kernel.exception.PortalException,
491 com.liferay.portal.kernel.exception.SystemException {
492 return getService().getArticle(groupId, className, classPK);
493 }
494
495 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
496 long groupId, java.lang.String urlTitle)
497 throws com.liferay.portal.kernel.exception.PortalException,
498 com.liferay.portal.kernel.exception.SystemException {
499 return getService().getArticleByUrlTitle(groupId, urlTitle);
500 }
501
502 public static java.lang.String getArticleContent(
503 com.liferay.portlet.journal.model.JournalArticle article,
504 java.lang.String templateId, java.lang.String viewMode,
505 java.lang.String languageId,
506 com.liferay.portal.theme.ThemeDisplay themeDisplay)
507 throws com.liferay.portal.kernel.exception.PortalException,
508 com.liferay.portal.kernel.exception.SystemException {
509 return getService()
510 .getArticleContent(article, templateId, viewMode,
511 languageId, themeDisplay);
512 }
513
514 public static java.lang.String getArticleContent(long groupId,
515 java.lang.String articleId, double version, java.lang.String viewMode,
516 java.lang.String templateId, java.lang.String languageId,
517 com.liferay.portal.theme.ThemeDisplay themeDisplay)
518 throws com.liferay.portal.kernel.exception.PortalException,
519 com.liferay.portal.kernel.exception.SystemException {
520 return getService()
521 .getArticleContent(groupId, articleId, version, viewMode,
522 templateId, languageId, themeDisplay);
523 }
524
525 public static java.lang.String getArticleContent(long groupId,
526 java.lang.String articleId, double version, java.lang.String viewMode,
527 java.lang.String languageId,
528 com.liferay.portal.theme.ThemeDisplay themeDisplay)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException {
531 return getService()
532 .getArticleContent(groupId, articleId, version, viewMode,
533 languageId, themeDisplay);
534 }
535
536 public static java.lang.String getArticleContent(long groupId,
537 java.lang.String articleId, java.lang.String viewMode,
538 java.lang.String templateId, java.lang.String languageId,
539 com.liferay.portal.theme.ThemeDisplay themeDisplay)
540 throws com.liferay.portal.kernel.exception.PortalException,
541 com.liferay.portal.kernel.exception.SystemException {
542 return getService()
543 .getArticleContent(groupId, articleId, viewMode, templateId,
544 languageId, themeDisplay);
545 }
546
547 public static java.lang.String getArticleContent(long groupId,
548 java.lang.String articleId, java.lang.String viewMode,
549 java.lang.String languageId,
550 com.liferay.portal.theme.ThemeDisplay themeDisplay)
551 throws com.liferay.portal.kernel.exception.PortalException,
552 com.liferay.portal.kernel.exception.SystemException {
553 return getService()
554 .getArticleContent(groupId, articleId, viewMode, languageId,
555 themeDisplay);
556 }
557
558 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
559 com.liferay.portlet.journal.model.JournalArticle article,
560 java.lang.String templateId, java.lang.String viewMode,
561 java.lang.String languageId, int page, java.lang.String xmlRequest,
562 com.liferay.portal.theme.ThemeDisplay themeDisplay)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException {
565 return getService()
566 .getArticleDisplay(article, templateId, viewMode,
567 languageId, page, xmlRequest, themeDisplay);
568 }
569
570 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
571 long groupId, java.lang.String articleId, double version,
572 java.lang.String templateId, java.lang.String viewMode,
573 java.lang.String languageId, int page, java.lang.String xmlRequest,
574 com.liferay.portal.theme.ThemeDisplay themeDisplay)
575 throws com.liferay.portal.kernel.exception.PortalException,
576 com.liferay.portal.kernel.exception.SystemException {
577 return getService()
578 .getArticleDisplay(groupId, articleId, version, templateId,
579 viewMode, languageId, page, xmlRequest, themeDisplay);
580 }
581
582 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
583 long groupId, java.lang.String articleId, double version,
584 java.lang.String templateId, java.lang.String viewMode,
585 java.lang.String languageId,
586 com.liferay.portal.theme.ThemeDisplay themeDisplay)
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 return getService()
590 .getArticleDisplay(groupId, articleId, version, templateId,
591 viewMode, languageId, themeDisplay);
592 }
593
594 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
595 long groupId, java.lang.String articleId, java.lang.String viewMode,
596 java.lang.String languageId, int page, java.lang.String xmlRequest,
597 com.liferay.portal.theme.ThemeDisplay themeDisplay)
598 throws com.liferay.portal.kernel.exception.PortalException,
599 com.liferay.portal.kernel.exception.SystemException {
600 return getService()
601 .getArticleDisplay(groupId, articleId, viewMode, languageId,
602 page, xmlRequest, themeDisplay);
603 }
604
605 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
606 long groupId, java.lang.String articleId, java.lang.String templateId,
607 java.lang.String viewMode, java.lang.String languageId, int page,
608 java.lang.String xmlRequest,
609 com.liferay.portal.theme.ThemeDisplay themeDisplay)
610 throws com.liferay.portal.kernel.exception.PortalException,
611 com.liferay.portal.kernel.exception.SystemException {
612 return getService()
613 .getArticleDisplay(groupId, articleId, templateId, viewMode,
614 languageId, page, xmlRequest, themeDisplay);
615 }
616
617 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
618 long groupId, java.lang.String articleId, java.lang.String templateId,
619 java.lang.String viewMode, java.lang.String languageId,
620 com.liferay.portal.theme.ThemeDisplay themeDisplay)
621 throws com.liferay.portal.kernel.exception.PortalException,
622 com.liferay.portal.kernel.exception.SystemException {
623 return getService()
624 .getArticleDisplay(groupId, articleId, templateId, viewMode,
625 languageId, themeDisplay);
626 }
627
628 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
629 long groupId, java.lang.String articleId, java.lang.String viewMode,
630 java.lang.String languageId,
631 com.liferay.portal.theme.ThemeDisplay themeDisplay)
632 throws com.liferay.portal.kernel.exception.PortalException,
633 com.liferay.portal.kernel.exception.SystemException {
634 return getService()
635 .getArticleDisplay(groupId, articleId, viewMode, languageId,
636 themeDisplay);
637 }
638
639 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
640 throws com.liferay.portal.kernel.exception.SystemException {
641 return getService().getArticles();
642 }
643
644 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
645 long groupId)
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService().getArticles(groupId);
648 }
649
650 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
651 long groupId, int start, int end)
652 throws com.liferay.portal.kernel.exception.SystemException {
653 return getService().getArticles(groupId, start, end);
654 }
655
656 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
657 long groupId, int start, int end,
658 com.liferay.portal.kernel.util.OrderByComparator obc)
659 throws com.liferay.portal.kernel.exception.SystemException {
660 return getService().getArticles(groupId, start, end, obc);
661 }
662
663 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
664 long groupId, long folderId)
665 throws com.liferay.portal.kernel.exception.SystemException {
666 return getService().getArticles(groupId, folderId);
667 }
668
669 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
670 long groupId, long folderId, int start, int end)
671 throws com.liferay.portal.kernel.exception.SystemException {
672 return getService().getArticles(groupId, folderId, start, end);
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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
678 throws com.liferay.portal.kernel.exception.SystemException {
679 return getService()
680 .getArticles(groupId, folderId, start, end, orderByComparator);
681 }
682
683 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
684 long groupId, java.lang.String articleId)
685 throws com.liferay.portal.kernel.exception.SystemException {
686 return getService().getArticles(groupId, articleId);
687 }
688
689 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
690 long smallImageId)
691 throws com.liferay.portal.kernel.exception.SystemException {
692 return getService().getArticlesBySmallImageId(smallImageId);
693 }
694
695 public static int getArticlesCount(long groupId)
696 throws com.liferay.portal.kernel.exception.SystemException {
697 return getService().getArticlesCount(groupId);
698 }
699
700 public static int getArticlesCount(long groupId, long folderId)
701 throws com.liferay.portal.kernel.exception.SystemException {
702 return getService().getArticlesCount(groupId, folderId);
703 }
704
705 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
706 long companyId, double version, int status, int start, int end)
707 throws com.liferay.portal.kernel.exception.SystemException {
708 return getService()
709 .getCompanyArticles(companyId, version, status, start, end);
710 }
711
712 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
713 long companyId, int status, int start, int end)
714 throws com.liferay.portal.kernel.exception.SystemException {
715 return getService().getCompanyArticles(companyId, status, start, end);
716 }
717
718 public static int getCompanyArticlesCount(long companyId, double version,
719 int status, int start, int end)
720 throws com.liferay.portal.kernel.exception.SystemException {
721 return getService()
722 .getCompanyArticlesCount(companyId, version, status, start,
723 end);
724 }
725
726 public static int getCompanyArticlesCount(long companyId, int status)
727 throws com.liferay.portal.kernel.exception.SystemException {
728 return getService().getCompanyArticlesCount(companyId, status);
729 }
730
731 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
732 long groupId, java.lang.String articleId)
733 throws com.liferay.portal.kernel.exception.PortalException,
734 com.liferay.portal.kernel.exception.SystemException {
735 return getService().getDisplayArticle(groupId, articleId);
736 }
737
738 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
739 long groupId, java.lang.String urlTitle)
740 throws com.liferay.portal.kernel.exception.PortalException,
741 com.liferay.portal.kernel.exception.SystemException {
742 return getService().getDisplayArticleByUrlTitle(groupId, urlTitle);
743 }
744
745 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
746 long resourcePrimKey)
747 throws com.liferay.portal.kernel.exception.PortalException,
748 com.liferay.portal.kernel.exception.SystemException {
749 return getService().getLatestArticle(resourcePrimKey);
750 }
751
752 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
753 long resourcePrimKey, int status)
754 throws com.liferay.portal.kernel.exception.PortalException,
755 com.liferay.portal.kernel.exception.SystemException {
756 return getService().getLatestArticle(resourcePrimKey, status);
757 }
758
759 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
760 long resourcePrimKey, int status, boolean preferApproved)
761 throws com.liferay.portal.kernel.exception.PortalException,
762 com.liferay.portal.kernel.exception.SystemException {
763 return getService()
764 .getLatestArticle(resourcePrimKey, status, preferApproved);
765 }
766
767 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
768 long groupId, java.lang.String articleId)
769 throws com.liferay.portal.kernel.exception.PortalException,
770 com.liferay.portal.kernel.exception.SystemException {
771 return getService().getLatestArticle(groupId, articleId);
772 }
773
774 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
775 long groupId, java.lang.String articleId, int status)
776 throws com.liferay.portal.kernel.exception.PortalException,
777 com.liferay.portal.kernel.exception.SystemException {
778 return getService().getLatestArticle(groupId, articleId, status);
779 }
780
781 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
782 long groupId, java.lang.String className, long classPK)
783 throws com.liferay.portal.kernel.exception.PortalException,
784 com.liferay.portal.kernel.exception.SystemException {
785 return getService().getLatestArticle(groupId, className, classPK);
786 }
787
788 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
789 long groupId, java.lang.String urlTitle, int status)
790 throws com.liferay.portal.kernel.exception.PortalException,
791 com.liferay.portal.kernel.exception.SystemException {
792 return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
793 }
794
795 public static double getLatestVersion(long groupId,
796 java.lang.String articleId)
797 throws com.liferay.portal.kernel.exception.PortalException,
798 com.liferay.portal.kernel.exception.SystemException {
799 return getService().getLatestVersion(groupId, articleId);
800 }
801
802 public static double getLatestVersion(long groupId,
803 java.lang.String articleId, int status)
804 throws com.liferay.portal.kernel.exception.PortalException,
805 com.liferay.portal.kernel.exception.SystemException {
806 return getService().getLatestVersion(groupId, articleId, status);
807 }
808
809 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
810 long groupId, java.lang.String structureId)
811 throws com.liferay.portal.kernel.exception.SystemException {
812 return getService().getStructureArticles(groupId, structureId);
813 }
814
815 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
816 long groupId, java.lang.String structureId, int start, int end,
817 com.liferay.portal.kernel.util.OrderByComparator obc)
818 throws com.liferay.portal.kernel.exception.SystemException {
819 return getService()
820 .getStructureArticles(groupId, structureId, start, end, obc);
821 }
822
823 public static int getStructureArticlesCount(long groupId,
824 java.lang.String structureId)
825 throws com.liferay.portal.kernel.exception.SystemException {
826 return getService().getStructureArticlesCount(groupId, structureId);
827 }
828
829 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
830 long groupId, java.lang.String templateId)
831 throws com.liferay.portal.kernel.exception.SystemException {
832 return getService().getTemplateArticles(groupId, templateId);
833 }
834
835 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
836 long groupId, java.lang.String templateId, int start, int end,
837 com.liferay.portal.kernel.util.OrderByComparator obc)
838 throws com.liferay.portal.kernel.exception.SystemException {
839 return getService()
840 .getTemplateArticles(groupId, templateId, start, end, obc);
841 }
842
843 public static int getTemplateArticlesCount(long groupId,
844 java.lang.String templateId)
845 throws com.liferay.portal.kernel.exception.SystemException {
846 return getService().getTemplateArticlesCount(groupId, templateId);
847 }
848
849 public static boolean hasArticle(long groupId, java.lang.String articleId)
850 throws com.liferay.portal.kernel.exception.SystemException {
851 return getService().hasArticle(groupId, articleId);
852 }
853
854 public static boolean isLatestVersion(long groupId,
855 java.lang.String articleId, double version)
856 throws com.liferay.portal.kernel.exception.PortalException,
857 com.liferay.portal.kernel.exception.SystemException {
858 return getService().isLatestVersion(groupId, articleId, version);
859 }
860
861 public static boolean isLatestVersion(long groupId,
862 java.lang.String articleId, double version, int status)
863 throws com.liferay.portal.kernel.exception.PortalException,
864 com.liferay.portal.kernel.exception.SystemException {
865 return getService().isLatestVersion(groupId, articleId, version, status);
866 }
867
868 public static void moveArticle(long groupId, java.lang.String articleId,
869 long newFolderId)
870 throws com.liferay.portal.kernel.exception.SystemException {
871 getService().moveArticle(groupId, articleId, newFolderId);
872 }
873
874 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
875 long groupId, java.lang.String articleId, double version,
876 java.lang.String languageId)
877 throws com.liferay.portal.kernel.exception.PortalException,
878 com.liferay.portal.kernel.exception.SystemException {
879 return getService()
880 .removeArticleLocale(groupId, articleId, version, languageId);
881 }
882
883 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
884 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
885 long classNameId, java.lang.String keywords, java.lang.Double version,
886 java.lang.String type, java.lang.String structureId,
887 java.lang.String templateId, java.util.Date displayDateGT,
888 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
889 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
890 throws com.liferay.portal.kernel.exception.SystemException {
891 return getService()
892 .search(companyId, groupId, folderIds, classNameId,
893 keywords, version, type, structureId, templateId, displayDateGT,
894 displayDateLT, status, reviewDate, start, end, obc);
895 }
896
897 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
898 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
899 long classNameId, java.lang.String articleId, java.lang.Double version,
900 java.lang.String title, java.lang.String description,
901 java.lang.String content, java.lang.String type,
902 java.lang.String structureId, java.lang.String templateId,
903 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
904 java.util.Date reviewDate, boolean andOperator, int start, int end,
905 com.liferay.portal.kernel.util.OrderByComparator obc)
906 throws com.liferay.portal.kernel.exception.SystemException {
907 return getService()
908 .search(companyId, groupId, folderIds, classNameId,
909 articleId, version, title, description, content, type, structureId,
910 templateId, displayDateGT, displayDateLT, status, reviewDate,
911 andOperator, start, end, obc);
912 }
913
914 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
915 long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
916 long classNameId, java.lang.String articleId, java.lang.Double version,
917 java.lang.String title, java.lang.String description,
918 java.lang.String content, java.lang.String type,
919 java.lang.String[] structureIds, java.lang.String[] templateIds,
920 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
921 java.util.Date reviewDate, boolean andOperator, int start, int end,
922 com.liferay.portal.kernel.util.OrderByComparator obc)
923 throws com.liferay.portal.kernel.exception.SystemException {
924 return getService()
925 .search(companyId, groupId, folderIds, classNameId,
926 articleId, version, title, description, content, type,
927 structureIds, templateIds, displayDateGT, displayDateLT, status,
928 reviewDate, andOperator, start, end, obc);
929 }
930
931 public static com.liferay.portal.kernel.search.Hits search(long companyId,
932 long groupId, java.util.List<java.lang.Long> folderIds,
933 long classNameId, java.lang.String structureId,
934 java.lang.String templateId, java.lang.String keywords,
935 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
936 int start, int end, com.liferay.portal.kernel.search.Sort sort)
937 throws com.liferay.portal.kernel.exception.SystemException {
938 return getService()
939 .search(companyId, groupId, folderIds, classNameId,
940 structureId, templateId, keywords, params, start, end, sort);
941 }
942
943 public static com.liferay.portal.kernel.search.Hits search(long companyId,
944 long groupId, java.util.List<java.lang.Long> folderIds,
945 long classNameId, java.lang.String articleId, java.lang.String title,
946 java.lang.String description, java.lang.String content,
947 java.lang.String type, java.lang.String status,
948 java.lang.String structureId, java.lang.String templateId,
949 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
950 boolean andSearch, int start, int end,
951 com.liferay.portal.kernel.search.Sort sort)
952 throws com.liferay.portal.kernel.exception.SystemException {
953 return getService()
954 .search(companyId, groupId, folderIds, classNameId,
955 articleId, title, description, content, type, status, structureId,
956 templateId, params, andSearch, start, end, sort);
957 }
958
959 public static int searchCount(long companyId, long groupId,
960 java.util.List<java.lang.Long> folderIds, long classNameId,
961 java.lang.String keywords, java.lang.Double version,
962 java.lang.String type, java.lang.String structureId,
963 java.lang.String templateId, java.util.Date displayDateGT,
964 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
965 throws com.liferay.portal.kernel.exception.SystemException {
966 return getService()
967 .searchCount(companyId, groupId, folderIds, classNameId,
968 keywords, version, type, structureId, templateId, displayDateGT,
969 displayDateLT, status, reviewDate);
970 }
971
972 public static int searchCount(long companyId, long groupId,
973 java.util.List<java.lang.Long> folderIds, long classNameId,
974 java.lang.String articleId, java.lang.Double version,
975 java.lang.String title, java.lang.String description,
976 java.lang.String content, java.lang.String type,
977 java.lang.String structureId, java.lang.String templateId,
978 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
979 java.util.Date reviewDate, boolean andOperator)
980 throws com.liferay.portal.kernel.exception.SystemException {
981 return getService()
982 .searchCount(companyId, groupId, folderIds, classNameId,
983 articleId, version, title, description, content, type, structureId,
984 templateId, displayDateGT, displayDateLT, status, reviewDate,
985 andOperator);
986 }
987
988 public static int searchCount(long companyId, long groupId,
989 java.util.List<java.lang.Long> folderIds, long classNameId,
990 java.lang.String articleId, java.lang.Double version,
991 java.lang.String title, java.lang.String description,
992 java.lang.String content, java.lang.String type,
993 java.lang.String[] structureIds, java.lang.String[] templateIds,
994 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
995 java.util.Date reviewDate, boolean andOperator)
996 throws com.liferay.portal.kernel.exception.SystemException {
997 return getService()
998 .searchCount(companyId, groupId, folderIds, classNameId,
999 articleId, version, title, description, content, type,
1000 structureIds, templateIds, displayDateGT, displayDateLT, status,
1001 reviewDate, andOperator);
1002 }
1003
1004 public static void subscribe(long userId, long groupId)
1005 throws com.liferay.portal.kernel.exception.PortalException,
1006 com.liferay.portal.kernel.exception.SystemException {
1007 getService().subscribe(userId, groupId);
1008 }
1009
1010 public static void unsubscribe(long userId, long groupId)
1011 throws com.liferay.portal.kernel.exception.PortalException,
1012 com.liferay.portal.kernel.exception.SystemException {
1013 getService().unsubscribe(userId, groupId);
1014 }
1015
1016 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1017 long userId, long groupId, long folderId, java.lang.String articleId,
1018 double version,
1019 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1020 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1021 java.lang.String content, java.lang.String layoutUuid,
1022 com.liferay.portal.service.ServiceContext serviceContext)
1023 throws com.liferay.portal.kernel.exception.PortalException,
1024 com.liferay.portal.kernel.exception.SystemException {
1025 return getService()
1026 .updateArticle(userId, groupId, folderId, articleId,
1027 version, titleMap, descriptionMap, content, layoutUuid,
1028 serviceContext);
1029 }
1030
1031 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1032 long userId, long groupId, long folderId, java.lang.String articleId,
1033 double version,
1034 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1035 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1036 java.lang.String content, java.lang.String type,
1037 java.lang.String structureId, java.lang.String templateId,
1038 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1039 int displayDateYear, int displayDateHour, int displayDateMinute,
1040 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1041 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1042 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1043 int reviewDateHour, int reviewDateMinute, boolean neverReview,
1044 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1045 java.io.File smallImageFile,
1046 java.util.Map<java.lang.String, byte[]> images,
1047 java.lang.String articleURL,
1048 com.liferay.portal.service.ServiceContext serviceContext)
1049 throws com.liferay.portal.kernel.exception.PortalException,
1050 com.liferay.portal.kernel.exception.SystemException {
1051 return getService()
1052 .updateArticle(userId, groupId, folderId, articleId,
1053 version, titleMap, descriptionMap, content, type, structureId,
1054 templateId, layoutUuid, displayDateMonth, displayDateDay,
1055 displayDateYear, displayDateHour, displayDateMinute,
1056 expirationDateMonth, expirationDateDay, expirationDateYear,
1057 expirationDateHour, expirationDateMinute, neverExpire,
1058 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
1059 reviewDateMinute, neverReview, indexable, smallImage,
1060 smallImageURL, smallImageFile, images, articleURL, 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, java.lang.String content,
1066 com.liferay.portal.service.ServiceContext serviceContext)
1067 throws com.liferay.portal.kernel.exception.PortalException,
1068 com.liferay.portal.kernel.exception.SystemException {
1069 return getService()
1070 .updateArticle(userId, groupId, folderId, articleId,
1071 version, content, serviceContext);
1072 }
1073
1074
1078 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1079 long groupId, java.lang.String articleId, double version,
1080 java.util.Locale locale, java.lang.String title,
1081 java.lang.String description, java.lang.String content,
1082 java.util.Map<java.lang.String, byte[]> images)
1083 throws com.liferay.portal.kernel.exception.PortalException,
1084 com.liferay.portal.kernel.exception.SystemException {
1085 return getService()
1086 .updateArticleTranslation(groupId, articleId, version,
1087 locale, title, description, content, images);
1088 }
1089
1090 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1091 long groupId, java.lang.String articleId, double version,
1092 java.util.Locale locale, java.lang.String title,
1093 java.lang.String description, java.lang.String content,
1094 java.util.Map<java.lang.String, byte[]> images,
1095 com.liferay.portal.service.ServiceContext serviceContext)
1096 throws com.liferay.portal.kernel.exception.PortalException,
1097 com.liferay.portal.kernel.exception.SystemException {
1098 return getService()
1099 .updateArticleTranslation(groupId, articleId, version,
1100 locale, title, description, content, images, serviceContext);
1101 }
1102
1103 public static void updateAsset(long userId,
1104 com.liferay.portlet.journal.model.JournalArticle article,
1105 long[] assetCategoryIds, java.lang.String[] assetTagNames,
1106 long[] assetLinkEntryIds)
1107 throws com.liferay.portal.kernel.exception.PortalException,
1108 com.liferay.portal.kernel.exception.SystemException {
1109 getService()
1110 .updateAsset(userId, article, assetCategoryIds, assetTagNames,
1111 assetLinkEntryIds);
1112 }
1113
1114 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1115 long groupId, java.lang.String articleId, double version,
1116 java.lang.String content)
1117 throws com.liferay.portal.kernel.exception.PortalException,
1118 com.liferay.portal.kernel.exception.SystemException {
1119 return getService().updateContent(groupId, articleId, version, content);
1120 }
1121
1122 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1123 long userId, com.liferay.portlet.journal.model.JournalArticle article,
1124 int status, java.lang.String articleURL,
1125 com.liferay.portal.service.ServiceContext serviceContext)
1126 throws com.liferay.portal.kernel.exception.PortalException,
1127 com.liferay.portal.kernel.exception.SystemException {
1128 return getService()
1129 .updateStatus(userId, article, status, articleURL,
1130 serviceContext);
1131 }
1132
1133 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1134 long userId, long classPK, int status,
1135 com.liferay.portal.service.ServiceContext serviceContext)
1136 throws com.liferay.portal.kernel.exception.PortalException,
1137 com.liferay.portal.kernel.exception.SystemException {
1138 return getService().updateStatus(userId, classPK, status, serviceContext);
1139 }
1140
1141 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1142 long userId, long groupId, java.lang.String articleId, double version,
1143 int status, java.lang.String articleURL,
1144 com.liferay.portal.service.ServiceContext serviceContext)
1145 throws com.liferay.portal.kernel.exception.PortalException,
1146 com.liferay.portal.kernel.exception.SystemException {
1147 return getService()
1148 .updateStatus(userId, groupId, articleId, version, status,
1149 articleURL, serviceContext);
1150 }
1151
1152 public static void updateTemplateId(long groupId, long classNameId,
1153 java.lang.String oldTemplateId, java.lang.String newTemplateId)
1154 throws com.liferay.portal.kernel.exception.SystemException {
1155 getService()
1156 .updateTemplateId(groupId, classNameId, oldTemplateId, newTemplateId);
1157 }
1158
1159 public static JournalArticleLocalService getService() {
1160 if (_service == null) {
1161 _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
1162
1163 ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1164 "_service");
1165 }
1166
1167 return _service;
1168 }
1169
1170
1173 public void setService(JournalArticleLocalService service) {
1174 }
1175
1176 private static JournalArticleLocalService _service;
1177 }