1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalArticleLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalArticleLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalArticleLocalService
37   * @generated
38   */
39  public class JournalArticleLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
41          com.liferay.portlet.journal.model.JournalArticle journalArticle)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addJournalArticle(journalArticle);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
47          long id) {
48          return getService().createJournalArticle(id);
49      }
50  
51      public static void deleteJournalArticle(long id)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteJournalArticle(id);
55      }
56  
57      public static void deleteJournalArticle(
58          com.liferay.portlet.journal.model.JournalArticle journalArticle)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteJournalArticle(journalArticle);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
94          long id)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getJournalArticle(id);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getJournalArticles(start, end);
111     }
112 
113     public static int getJournalArticlesCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getJournalArticlesCount();
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
119         com.liferay.portlet.journal.model.JournalArticle journalArticle)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateJournalArticle(journalArticle);
122     }
123 
124     public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
125         com.liferay.portlet.journal.model.JournalArticle journalArticle,
126         boolean merge)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getService().updateJournalArticle(journalArticle, merge);
129     }
130 
131     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
132         long userId, long groupId, java.lang.String articleId,
133         boolean autoArticleId, double version, java.lang.String title,
134         java.lang.String description, java.lang.String content,
135         java.lang.String type, java.lang.String structureId,
136         java.lang.String templateId, int displayDateMonth, int displayDateDay,
137         int displayDateYear, int displayDateHour, int displayDateMinute,
138         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
139         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
140         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
141         int reviewDateHour, int reviewDateMinute, boolean neverReview,
142         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
143         java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
144         java.lang.String articleURL,
145         com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return getService()
149                    .addArticle(userId, groupId, articleId, autoArticleId,
150             version, title, description, content, type, structureId,
151             templateId, displayDateMonth, displayDateDay, displayDateYear,
152             displayDateHour, displayDateMinute, expirationDateMonth,
153             expirationDateDay, expirationDateYear, expirationDateHour,
154             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
155             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
156             indexable, smallImage, smallImageURL, smallFile, images,
157             articleURL, serviceContext);
158     }
159 
160     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
161         long userId, long groupId, java.lang.String articleId,
162         boolean autoArticleId, java.lang.String title,
163         java.lang.String description, java.lang.String content,
164         java.lang.String type, java.lang.String structureId,
165         java.lang.String templateId, int displayDateMonth, int displayDateDay,
166         int displayDateYear, int displayDateHour, int displayDateMinute,
167         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
168         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
169         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
170         int reviewDateHour, int reviewDateMinute, boolean neverReview,
171         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
172         java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
173         java.lang.String articleURL,
174         com.liferay.portal.service.ServiceContext serviceContext)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException {
177         return getService()
178                    .addArticle(userId, groupId, articleId, autoArticleId,
179             title, description, content, type, structureId, templateId,
180             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
181             displayDateMinute, expirationDateMonth, expirationDateDay,
182             expirationDateYear, expirationDateHour, expirationDateMinute,
183             neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
184             reviewDateHour, reviewDateMinute, neverReview, indexable,
185             smallImage, smallImageURL, smallFile, images, articleURL,
186             serviceContext);
187     }
188 
189     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
190         java.lang.String uuid, long userId, long groupId,
191         java.lang.String articleId, boolean autoArticleId, double version,
192         java.lang.String title, java.lang.String description,
193         java.lang.String content, java.lang.String type,
194         java.lang.String structureId, java.lang.String templateId,
195         int displayDateMonth, int displayDateDay, int displayDateYear,
196         int displayDateHour, int displayDateMinute, int expirationDateMonth,
197         int expirationDateDay, int expirationDateYear, int expirationDateHour,
198         int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
199         int reviewDateDay, int reviewDateYear, int reviewDateHour,
200         int reviewDateMinute, boolean neverReview, boolean indexable,
201         boolean smallImage, java.lang.String smallImageURL,
202         java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
203         java.lang.String articleURL,
204         com.liferay.portal.service.ServiceContext serviceContext)
205         throws com.liferay.portal.kernel.exception.PortalException,
206             com.liferay.portal.kernel.exception.SystemException {
207         return getService()
208                    .addArticle(uuid, userId, groupId, articleId, autoArticleId,
209             version, title, description, content, type, structureId,
210             templateId, displayDateMonth, displayDateDay, displayDateYear,
211             displayDateHour, displayDateMinute, expirationDateMonth,
212             expirationDateDay, expirationDateYear, expirationDateHour,
213             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
214             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
215             indexable, smallImage, smallImageURL, smallFile, images,
216             articleURL, serviceContext);
217     }
218 
219     public static void addArticleResources(
220         com.liferay.portlet.journal.model.JournalArticle article,
221         boolean addCommunityPermissions, boolean addGuestPermissions)
222         throws com.liferay.portal.kernel.exception.PortalException,
223             com.liferay.portal.kernel.exception.SystemException {
224         getService()
225             .addArticleResources(article, addCommunityPermissions,
226             addGuestPermissions);
227     }
228 
229     public static void addArticleResources(
230         com.liferay.portlet.journal.model.JournalArticle article,
231         java.lang.String[] communityPermissions,
232         java.lang.String[] guestPermissions)
233         throws com.liferay.portal.kernel.exception.PortalException,
234             com.liferay.portal.kernel.exception.SystemException {
235         getService()
236             .addArticleResources(article, communityPermissions, guestPermissions);
237     }
238 
239     public static void addArticleResources(long groupId,
240         java.lang.String articleId, boolean addCommunityPermissions,
241         boolean addGuestPermissions)
242         throws com.liferay.portal.kernel.exception.PortalException,
243             com.liferay.portal.kernel.exception.SystemException {
244         getService()
245             .addArticleResources(groupId, articleId, addCommunityPermissions,
246             addGuestPermissions);
247     }
248 
249     public static void addArticleResources(long groupId,
250         java.lang.String articleId, java.lang.String[] communityPermissions,
251         java.lang.String[] guestPermissions)
252         throws com.liferay.portal.kernel.exception.PortalException,
253             com.liferay.portal.kernel.exception.SystemException {
254         getService()
255             .addArticleResources(groupId, articleId, communityPermissions,
256             guestPermissions);
257     }
258 
259     public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
260         long groupId, java.lang.String articleId, double version)
261         throws com.liferay.portal.kernel.exception.PortalException,
262             com.liferay.portal.kernel.exception.SystemException {
263         return getService()
264                    .checkArticleResourcePrimKey(groupId, articleId, version);
265     }
266 
267     public static void checkArticles()
268         throws com.liferay.portal.kernel.exception.PortalException,
269             com.liferay.portal.kernel.exception.SystemException {
270         getService().checkArticles();
271     }
272 
273     public static void checkNewLine(long groupId, java.lang.String articleId,
274         double version)
275         throws com.liferay.portal.kernel.exception.PortalException,
276             com.liferay.portal.kernel.exception.SystemException {
277         getService().checkNewLine(groupId, articleId, version);
278     }
279 
280     public static void checkStructure(long groupId, java.lang.String articleId,
281         double version)
282         throws com.liferay.portal.kernel.exception.PortalException,
283             com.liferay.portal.kernel.exception.SystemException {
284         getService().checkStructure(groupId, articleId, version);
285     }
286 
287     public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
288         long userId, long groupId, java.lang.String oldArticleId,
289         java.lang.String newArticleId, boolean autoArticleId, double version)
290         throws com.liferay.portal.kernel.exception.PortalException,
291             com.liferay.portal.kernel.exception.SystemException {
292         return getService()
293                    .copyArticle(userId, groupId, oldArticleId, newArticleId,
294             autoArticleId, version);
295     }
296 
297     public static void deleteArticle(
298         com.liferay.portlet.journal.model.JournalArticle article,
299         java.lang.String articleURL,
300         com.liferay.portal.service.ServiceContext serviceContext)
301         throws com.liferay.portal.kernel.exception.PortalException,
302             com.liferay.portal.kernel.exception.SystemException {
303         getService().deleteArticle(article, articleURL, serviceContext);
304     }
305 
306     public static void deleteArticle(long groupId, java.lang.String articleId,
307         double version, java.lang.String articleURL,
308         com.liferay.portal.service.ServiceContext serviceContext)
309         throws com.liferay.portal.kernel.exception.PortalException,
310             com.liferay.portal.kernel.exception.SystemException {
311         getService()
312             .deleteArticle(groupId, articleId, version, articleURL,
313             serviceContext);
314     }
315 
316     public static void deleteArticle(long groupId, java.lang.String articleId,
317         com.liferay.portal.service.ServiceContext serviceContext)
318         throws com.liferay.portal.kernel.exception.PortalException,
319             com.liferay.portal.kernel.exception.SystemException {
320         getService().deleteArticle(groupId, articleId, serviceContext);
321     }
322 
323     public static void deleteArticles(long groupId)
324         throws com.liferay.portal.kernel.exception.PortalException,
325             com.liferay.portal.kernel.exception.SystemException {
326         getService().deleteArticles(groupId);
327     }
328 
329     public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
330         long userId, long groupId, java.lang.String articleId, double version,
331         java.lang.String articleURL,
332         com.liferay.portal.service.ServiceContext serviceContext)
333         throws com.liferay.portal.kernel.exception.PortalException,
334             com.liferay.portal.kernel.exception.SystemException {
335         return getService()
336                    .expireArticle(userId, groupId, articleId, version,
337             articleURL, serviceContext);
338     }
339 
340     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
341         long id)
342         throws com.liferay.portal.kernel.exception.PortalException,
343             com.liferay.portal.kernel.exception.SystemException {
344         return getService().getArticle(id);
345     }
346 
347     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
348         long groupId, java.lang.String articleId)
349         throws com.liferay.portal.kernel.exception.PortalException,
350             com.liferay.portal.kernel.exception.SystemException {
351         return getService().getArticle(groupId, articleId);
352     }
353 
354     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
355         long groupId, java.lang.String articleId, double version)
356         throws com.liferay.portal.kernel.exception.PortalException,
357             com.liferay.portal.kernel.exception.SystemException {
358         return getService().getArticle(groupId, articleId, version);
359     }
360 
361     public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
362         long groupId, java.lang.String urlTitle)
363         throws com.liferay.portal.kernel.exception.PortalException,
364             com.liferay.portal.kernel.exception.SystemException {
365         return getService().getArticleByUrlTitle(groupId, urlTitle);
366     }
367 
368     public static java.lang.String getArticleContent(
369         com.liferay.portlet.journal.model.JournalArticle article,
370         java.lang.String templateId, java.lang.String viewMode,
371         java.lang.String languageId,
372         com.liferay.portal.theme.ThemeDisplay themeDisplay)
373         throws com.liferay.portal.kernel.exception.PortalException,
374             com.liferay.portal.kernel.exception.SystemException {
375         return getService()
376                    .getArticleContent(article, templateId, viewMode,
377             languageId, themeDisplay);
378     }
379 
380     public static java.lang.String getArticleContent(long groupId,
381         java.lang.String articleId, double version, java.lang.String viewMode,
382         java.lang.String templateId, java.lang.String languageId,
383         com.liferay.portal.theme.ThemeDisplay themeDisplay)
384         throws com.liferay.portal.kernel.exception.PortalException,
385             com.liferay.portal.kernel.exception.SystemException {
386         return getService()
387                    .getArticleContent(groupId, articleId, version, viewMode,
388             templateId, languageId, themeDisplay);
389     }
390 
391     public static java.lang.String getArticleContent(long groupId,
392         java.lang.String articleId, double version, java.lang.String viewMode,
393         java.lang.String languageId,
394         com.liferay.portal.theme.ThemeDisplay themeDisplay)
395         throws com.liferay.portal.kernel.exception.PortalException,
396             com.liferay.portal.kernel.exception.SystemException {
397         return getService()
398                    .getArticleContent(groupId, articleId, version, viewMode,
399             languageId, themeDisplay);
400     }
401 
402     public static java.lang.String getArticleContent(long groupId,
403         java.lang.String articleId, java.lang.String viewMode,
404         java.lang.String templateId, java.lang.String languageId,
405         com.liferay.portal.theme.ThemeDisplay themeDisplay)
406         throws com.liferay.portal.kernel.exception.PortalException,
407             com.liferay.portal.kernel.exception.SystemException {
408         return getService()
409                    .getArticleContent(groupId, articleId, viewMode, templateId,
410             languageId, themeDisplay);
411     }
412 
413     public static java.lang.String getArticleContent(long groupId,
414         java.lang.String articleId, java.lang.String viewMode,
415         java.lang.String languageId,
416         com.liferay.portal.theme.ThemeDisplay themeDisplay)
417         throws com.liferay.portal.kernel.exception.PortalException,
418             com.liferay.portal.kernel.exception.SystemException {
419         return getService()
420                    .getArticleContent(groupId, articleId, viewMode, languageId,
421             themeDisplay);
422     }
423 
424     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
425         com.liferay.portlet.journal.model.JournalArticle article,
426         java.lang.String templateId, java.lang.String viewMode,
427         java.lang.String languageId, int page, java.lang.String xmlRequest,
428         com.liferay.portal.theme.ThemeDisplay themeDisplay)
429         throws com.liferay.portal.kernel.exception.PortalException,
430             com.liferay.portal.kernel.exception.SystemException {
431         return getService()
432                    .getArticleDisplay(article, templateId, viewMode,
433             languageId, page, xmlRequest, themeDisplay);
434     }
435 
436     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
437         long groupId, java.lang.String articleId, double version,
438         java.lang.String templateId, java.lang.String viewMode,
439         java.lang.String languageId, int page, java.lang.String xmlRequest,
440         com.liferay.portal.theme.ThemeDisplay themeDisplay)
441         throws com.liferay.portal.kernel.exception.PortalException,
442             com.liferay.portal.kernel.exception.SystemException {
443         return getService()
444                    .getArticleDisplay(groupId, articleId, version, templateId,
445             viewMode, languageId, page, xmlRequest, themeDisplay);
446     }
447 
448     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
449         long groupId, java.lang.String articleId, double version,
450         java.lang.String templateId, java.lang.String viewMode,
451         java.lang.String languageId,
452         com.liferay.portal.theme.ThemeDisplay themeDisplay)
453         throws com.liferay.portal.kernel.exception.PortalException,
454             com.liferay.portal.kernel.exception.SystemException {
455         return getService()
456                    .getArticleDisplay(groupId, articleId, version, templateId,
457             viewMode, languageId, themeDisplay);
458     }
459 
460     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
461         long groupId, java.lang.String articleId, java.lang.String viewMode,
462         java.lang.String languageId, int page, java.lang.String xmlRequest,
463         com.liferay.portal.theme.ThemeDisplay themeDisplay)
464         throws com.liferay.portal.kernel.exception.PortalException,
465             com.liferay.portal.kernel.exception.SystemException {
466         return getService()
467                    .getArticleDisplay(groupId, articleId, viewMode, languageId,
468             page, xmlRequest, themeDisplay);
469     }
470 
471     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
472         long groupId, java.lang.String articleId, java.lang.String templateId,
473         java.lang.String viewMode, java.lang.String languageId, int page,
474         java.lang.String xmlRequest,
475         com.liferay.portal.theme.ThemeDisplay themeDisplay)
476         throws com.liferay.portal.kernel.exception.PortalException,
477             com.liferay.portal.kernel.exception.SystemException {
478         return getService()
479                    .getArticleDisplay(groupId, articleId, templateId, viewMode,
480             languageId, page, xmlRequest, themeDisplay);
481     }
482 
483     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
484         long groupId, java.lang.String articleId, java.lang.String templateId,
485         java.lang.String viewMode, java.lang.String languageId,
486         com.liferay.portal.theme.ThemeDisplay themeDisplay)
487         throws com.liferay.portal.kernel.exception.PortalException,
488             com.liferay.portal.kernel.exception.SystemException {
489         return getService()
490                    .getArticleDisplay(groupId, articleId, templateId, viewMode,
491             languageId, themeDisplay);
492     }
493 
494     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
495         long groupId, java.lang.String articleId, java.lang.String viewMode,
496         java.lang.String languageId,
497         com.liferay.portal.theme.ThemeDisplay themeDisplay)
498         throws com.liferay.portal.kernel.exception.PortalException,
499             com.liferay.portal.kernel.exception.SystemException {
500         return getService()
501                    .getArticleDisplay(groupId, articleId, viewMode, languageId,
502             themeDisplay);
503     }
504 
505     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
506         throws com.liferay.portal.kernel.exception.SystemException {
507         return getService().getArticles();
508     }
509 
510     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
511         long groupId)
512         throws com.liferay.portal.kernel.exception.SystemException {
513         return getService().getArticles(groupId);
514     }
515 
516     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
517         long groupId, int start, int end)
518         throws com.liferay.portal.kernel.exception.SystemException {
519         return getService().getArticles(groupId, start, end);
520     }
521 
522     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
523         long groupId, int start, int end,
524         com.liferay.portal.kernel.util.OrderByComparator obc)
525         throws com.liferay.portal.kernel.exception.SystemException {
526         return getService().getArticles(groupId, start, end, obc);
527     }
528 
529     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
530         long groupId, java.lang.String articleId)
531         throws com.liferay.portal.kernel.exception.SystemException {
532         return getService().getArticles(groupId, articleId);
533     }
534 
535     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
536         long smallImageId)
537         throws com.liferay.portal.kernel.exception.SystemException {
538         return getService().getArticlesBySmallImageId(smallImageId);
539     }
540 
541     public static int getArticlesCount(long groupId)
542         throws com.liferay.portal.kernel.exception.SystemException {
543         return getService().getArticlesCount(groupId);
544     }
545 
546     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
547         long companyId, int status, int start, int end)
548         throws com.liferay.portal.kernel.exception.SystemException {
549         return getService().getCompanyArticles(companyId, status, start, end);
550     }
551 
552     public static int getCompanyArticlesCount(long companyId, int status)
553         throws com.liferay.portal.kernel.exception.SystemException {
554         return getService().getCompanyArticlesCount(companyId, status);
555     }
556 
557     public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
558         long groupId, java.lang.String articleId)
559         throws com.liferay.portal.kernel.exception.PortalException,
560             com.liferay.portal.kernel.exception.SystemException {
561         return getService().getDisplayArticle(groupId, articleId);
562     }
563 
564     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
565         long resourcePrimKey)
566         throws com.liferay.portal.kernel.exception.PortalException,
567             com.liferay.portal.kernel.exception.SystemException {
568         return getService().getLatestArticle(resourcePrimKey);
569     }
570 
571     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
572         long resourcePrimKey, int status)
573         throws com.liferay.portal.kernel.exception.PortalException,
574             com.liferay.portal.kernel.exception.SystemException {
575         return getService().getLatestArticle(resourcePrimKey, status);
576     }
577 
578     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
579         long groupId, java.lang.String articleId)
580         throws com.liferay.portal.kernel.exception.PortalException,
581             com.liferay.portal.kernel.exception.SystemException {
582         return getService().getLatestArticle(groupId, articleId);
583     }
584 
585     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
586         long groupId, java.lang.String articleId, int status)
587         throws com.liferay.portal.kernel.exception.PortalException,
588             com.liferay.portal.kernel.exception.SystemException {
589         return getService().getLatestArticle(groupId, articleId, status);
590     }
591 
592     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
593         long groupId, java.lang.String urlTitle, int status)
594         throws com.liferay.portal.kernel.exception.PortalException,
595             com.liferay.portal.kernel.exception.SystemException {
596         return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
597     }
598 
599     public static double getLatestVersion(long groupId,
600         java.lang.String articleId)
601         throws com.liferay.portal.kernel.exception.PortalException,
602             com.liferay.portal.kernel.exception.SystemException {
603         return getService().getLatestVersion(groupId, articleId);
604     }
605 
606     public static double getLatestVersion(long groupId,
607         java.lang.String articleId, int status)
608         throws com.liferay.portal.kernel.exception.PortalException,
609             com.liferay.portal.kernel.exception.SystemException {
610         return getService().getLatestVersion(groupId, articleId, status);
611     }
612 
613     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
614         long groupId, java.lang.String structureId)
615         throws com.liferay.portal.kernel.exception.SystemException {
616         return getService().getStructureArticles(groupId, structureId);
617     }
618 
619     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
620         long groupId, java.lang.String structureId, int start, int end,
621         com.liferay.portal.kernel.util.OrderByComparator obc)
622         throws com.liferay.portal.kernel.exception.SystemException {
623         return getService()
624                    .getStructureArticles(groupId, structureId, start, end, obc);
625     }
626 
627     public static int getStructureArticlesCount(long groupId,
628         java.lang.String structureId)
629         throws com.liferay.portal.kernel.exception.SystemException {
630         return getService().getStructureArticlesCount(groupId, structureId);
631     }
632 
633     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
634         long groupId, java.lang.String templateId)
635         throws com.liferay.portal.kernel.exception.SystemException {
636         return getService().getTemplateArticles(groupId, templateId);
637     }
638 
639     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
640         long groupId, java.lang.String templateId, int start, int end,
641         com.liferay.portal.kernel.util.OrderByComparator obc)
642         throws com.liferay.portal.kernel.exception.SystemException {
643         return getService()
644                    .getTemplateArticles(groupId, templateId, start, end, obc);
645     }
646 
647     public static int getTemplateArticlesCount(long groupId,
648         java.lang.String templateId)
649         throws com.liferay.portal.kernel.exception.SystemException {
650         return getService().getTemplateArticlesCount(groupId, templateId);
651     }
652 
653     public static boolean hasArticle(long groupId, java.lang.String articleId)
654         throws com.liferay.portal.kernel.exception.SystemException {
655         return getService().hasArticle(groupId, articleId);
656     }
657 
658     public static boolean isLatestVersion(long groupId,
659         java.lang.String articleId, double version)
660         throws com.liferay.portal.kernel.exception.PortalException,
661             com.liferay.portal.kernel.exception.SystemException {
662         return getService().isLatestVersion(groupId, articleId, version);
663     }
664 
665     public static boolean isLatestVersion(long groupId,
666         java.lang.String articleId, double version, int status)
667         throws com.liferay.portal.kernel.exception.PortalException,
668             com.liferay.portal.kernel.exception.SystemException {
669         return getService().isLatestVersion(groupId, articleId, version, status);
670     }
671 
672     public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
673         long groupId, java.lang.String articleId, double version,
674         java.lang.String languageId)
675         throws com.liferay.portal.kernel.exception.PortalException,
676             com.liferay.portal.kernel.exception.SystemException {
677         return getService()
678                    .removeArticleLocale(groupId, articleId, version, languageId);
679     }
680 
681     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
682         long companyId, long groupId, java.lang.String keywords,
683         java.lang.Double version, java.lang.String type,
684         java.lang.String structureId, java.lang.String templateId,
685         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
686         java.util.Date reviewDate, int start, int end,
687         com.liferay.portal.kernel.util.OrderByComparator obc)
688         throws com.liferay.portal.kernel.exception.SystemException {
689         return getService()
690                    .search(companyId, groupId, keywords, version, type,
691             structureId, templateId, displayDateGT, displayDateLT, status,
692             reviewDate, start, end, obc);
693     }
694 
695     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
696         long companyId, long groupId, java.lang.String articleId,
697         java.lang.Double version, java.lang.String title,
698         java.lang.String description, java.lang.String content,
699         java.lang.String type, java.lang.String structureId,
700         java.lang.String templateId, java.util.Date displayDateGT,
701         java.util.Date displayDateLT, int status, java.util.Date reviewDate,
702         boolean andOperator, int start, int end,
703         com.liferay.portal.kernel.util.OrderByComparator obc)
704         throws com.liferay.portal.kernel.exception.SystemException {
705         return getService()
706                    .search(companyId, groupId, articleId, version, title,
707             description, content, type, structureId, templateId, displayDateGT,
708             displayDateLT, status, reviewDate, andOperator, start, end, obc);
709     }
710 
711     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
712         long companyId, long groupId, java.lang.String articleId,
713         java.lang.Double version, java.lang.String title,
714         java.lang.String description, java.lang.String content,
715         java.lang.String type, java.lang.String[] structureIds,
716         java.lang.String[] templateIds, java.util.Date displayDateGT,
717         java.util.Date displayDateLT, int status, java.util.Date reviewDate,
718         boolean andOperator, int start, int end,
719         com.liferay.portal.kernel.util.OrderByComparator obc)
720         throws com.liferay.portal.kernel.exception.SystemException {
721         return getService()
722                    .search(companyId, groupId, articleId, version, title,
723             description, content, type, structureIds, templateIds,
724             displayDateGT, displayDateLT, status, reviewDate, andOperator,
725             start, end, obc);
726     }
727 
728     public static int searchCount(long companyId, long groupId,
729         java.lang.String keywords, java.lang.Double version,
730         java.lang.String type, java.lang.String structureId,
731         java.lang.String templateId, java.util.Date displayDateGT,
732         java.util.Date displayDateLT, int status, java.util.Date reviewDate)
733         throws com.liferay.portal.kernel.exception.SystemException {
734         return getService()
735                    .searchCount(companyId, groupId, keywords, version, type,
736             structureId, templateId, displayDateGT, displayDateLT, status,
737             reviewDate);
738     }
739 
740     public static int searchCount(long companyId, long groupId,
741         java.lang.String articleId, java.lang.Double version,
742         java.lang.String title, java.lang.String description,
743         java.lang.String content, java.lang.String type,
744         java.lang.String structureId, java.lang.String templateId,
745         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
746         java.util.Date reviewDate, boolean andOperator)
747         throws com.liferay.portal.kernel.exception.SystemException {
748         return getService()
749                    .searchCount(companyId, groupId, articleId, version, title,
750             description, content, type, structureId, templateId, displayDateGT,
751             displayDateLT, status, reviewDate, andOperator);
752     }
753 
754     public static int searchCount(long companyId, long groupId,
755         java.lang.String articleId, java.lang.Double version,
756         java.lang.String title, java.lang.String description,
757         java.lang.String content, java.lang.String type,
758         java.lang.String[] structureIds, java.lang.String[] templateIds,
759         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
760         java.util.Date reviewDate, boolean andOperator)
761         throws com.liferay.portal.kernel.exception.SystemException {
762         return getService()
763                    .searchCount(companyId, groupId, articleId, version, title,
764             description, content, type, structureIds, templateIds,
765             displayDateGT, displayDateLT, status, reviewDate, andOperator);
766     }
767 
768     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
769         long userId, long groupId, java.lang.String articleId, double version,
770         java.lang.String content)
771         throws com.liferay.portal.kernel.exception.PortalException,
772             com.liferay.portal.kernel.exception.SystemException {
773         return getService()
774                    .updateArticle(userId, groupId, articleId, version, content);
775     }
776 
777     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
778         long userId, long groupId, java.lang.String articleId, double version,
779         java.lang.String title, java.lang.String description,
780         java.lang.String content, java.lang.String type,
781         java.lang.String structureId, java.lang.String templateId,
782         int displayDateMonth, int displayDateDay, int displayDateYear,
783         int displayDateHour, int displayDateMinute, int expirationDateMonth,
784         int expirationDateDay, int expirationDateYear, int expirationDateHour,
785         int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
786         int reviewDateDay, int reviewDateYear, int reviewDateHour,
787         int reviewDateMinute, boolean neverReview, boolean indexable,
788         boolean smallImage, java.lang.String smallImageURL,
789         java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
790         java.lang.String articleURL,
791         com.liferay.portal.service.ServiceContext serviceContext)
792         throws com.liferay.portal.kernel.exception.PortalException,
793             com.liferay.portal.kernel.exception.SystemException {
794         return getService()
795                    .updateArticle(userId, groupId, articleId, version, title,
796             description, content, type, structureId, templateId,
797             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
798             displayDateMinute, expirationDateMonth, expirationDateDay,
799             expirationDateYear, expirationDateHour, expirationDateMinute,
800             neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
801             reviewDateHour, reviewDateMinute, neverReview, indexable,
802             smallImage, smallImageURL, smallFile, images, articleURL,
803             serviceContext);
804     }
805 
806     public static void updateAsset(long userId,
807         com.liferay.portlet.journal.model.JournalArticle article,
808         long[] assetCategoryIds, java.lang.String[] assetTagNames)
809         throws com.liferay.portal.kernel.exception.PortalException,
810             com.liferay.portal.kernel.exception.SystemException {
811         getService()
812             .updateAsset(userId, article, assetCategoryIds, assetTagNames);
813     }
814 
815     public static com.liferay.portlet.journal.model.JournalArticle updateContent(
816         long groupId, java.lang.String articleId, double version,
817         java.lang.String content)
818         throws com.liferay.portal.kernel.exception.PortalException,
819             com.liferay.portal.kernel.exception.SystemException {
820         return getService().updateContent(groupId, articleId, version, content);
821     }
822 
823     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
824         long userId, com.liferay.portlet.journal.model.JournalArticle article,
825         int status, java.lang.String articleURL,
826         com.liferay.portal.service.ServiceContext serviceContext)
827         throws com.liferay.portal.kernel.exception.PortalException,
828             com.liferay.portal.kernel.exception.SystemException {
829         return getService()
830                    .updateStatus(userId, article, status, articleURL,
831             serviceContext);
832     }
833 
834     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
835         long userId, long classPK, int status,
836         com.liferay.portal.service.ServiceContext serviceContext)
837         throws com.liferay.portal.kernel.exception.PortalException,
838             com.liferay.portal.kernel.exception.SystemException {
839         return getService().updateStatus(userId, classPK, status, serviceContext);
840     }
841 
842     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
843         long userId, long groupId, java.lang.String articleId, double version,
844         int status, java.lang.String articleURL,
845         com.liferay.portal.service.ServiceContext serviceContext)
846         throws com.liferay.portal.kernel.exception.PortalException,
847             com.liferay.portal.kernel.exception.SystemException {
848         return getService()
849                    .updateStatus(userId, groupId, articleId, version, status,
850             articleURL, serviceContext);
851     }
852 
853     public static JournalArticleLocalService getService() {
854         if (_service == null) {
855             _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
856         }
857 
858         return _service;
859     }
860 
861     public void setService(JournalArticleLocalService service) {
862         _service = service;
863     }
864 
865     private static JournalArticleLocalService _service;
866 }