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      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
76          long id)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getJournalArticle(id);
80      }
81  
82      public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getJournalArticles(start, end);
86      }
87  
88      public static int getJournalArticlesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getJournalArticlesCount();
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
94          com.liferay.portlet.journal.model.JournalArticle journalArticle)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateJournalArticle(journalArticle);
97      }
98  
99      public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
100         com.liferay.portlet.journal.model.JournalArticle journalArticle,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateJournalArticle(journalArticle, merge);
104     }
105 
106     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
107         long userId, long groupId, java.lang.String articleId,
108         boolean autoArticleId, double version, java.lang.String title,
109         java.lang.String description, java.lang.String content,
110         java.lang.String type, java.lang.String structureId,
111         java.lang.String templateId, int displayDateMonth, int displayDateDay,
112         int displayDateYear, int displayDateHour, int displayDateMinute,
113         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
114         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
115         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
116         int reviewDateHour, int reviewDateMinute, boolean neverReview,
117         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
118         java.io.File smallFile, java.util.Map<String, byte[]> images,
119         java.lang.String articleURL,
120         com.liferay.portal.service.ServiceContext serviceContext)
121         throws com.liferay.portal.kernel.exception.PortalException,
122             com.liferay.portal.kernel.exception.SystemException {
123         return getService()
124                    .addArticle(userId, groupId, articleId, autoArticleId,
125             version, title, description, content, type, structureId,
126             templateId, displayDateMonth, displayDateDay, displayDateYear,
127             displayDateHour, displayDateMinute, expirationDateMonth,
128             expirationDateDay, expirationDateYear, expirationDateHour,
129             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
130             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
131             indexable, smallImage, smallImageURL, smallFile, images,
132             articleURL, serviceContext);
133     }
134 
135     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
136         long userId, long groupId, java.lang.String articleId,
137         boolean autoArticleId, java.lang.String title,
138         java.lang.String description, java.lang.String content,
139         java.lang.String type, java.lang.String structureId,
140         java.lang.String templateId, int displayDateMonth, int displayDateDay,
141         int displayDateYear, int displayDateHour, int displayDateMinute,
142         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
143         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
144         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
145         int reviewDateHour, int reviewDateMinute, boolean neverReview,
146         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
147         java.io.File smallFile, java.util.Map<String, byte[]> images,
148         java.lang.String articleURL,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getService()
153                    .addArticle(userId, groupId, articleId, autoArticleId,
154             title, description, content, type, structureId, templateId,
155             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
156             displayDateMinute, expirationDateMonth, expirationDateDay,
157             expirationDateYear, expirationDateHour, expirationDateMinute,
158             neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
159             reviewDateHour, reviewDateMinute, neverReview, indexable,
160             smallImage, smallImageURL, smallFile, images, articleURL,
161             serviceContext);
162     }
163 
164     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
165         java.lang.String uuid, long userId, long groupId,
166         java.lang.String articleId, boolean autoArticleId, double version,
167         java.lang.String title, java.lang.String description,
168         java.lang.String content, java.lang.String type,
169         java.lang.String structureId, java.lang.String templateId,
170         int displayDateMonth, int displayDateDay, int displayDateYear,
171         int displayDateHour, int displayDateMinute, int expirationDateMonth,
172         int expirationDateDay, int expirationDateYear, int expirationDateHour,
173         int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
174         int reviewDateDay, int reviewDateYear, int reviewDateHour,
175         int reviewDateMinute, boolean neverReview, boolean indexable,
176         boolean smallImage, java.lang.String smallImageURL,
177         java.io.File smallFile, java.util.Map<String, byte[]> images,
178         java.lang.String articleURL,
179         com.liferay.portal.service.ServiceContext serviceContext)
180         throws com.liferay.portal.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException {
182         return getService()
183                    .addArticle(uuid, userId, groupId, articleId, autoArticleId,
184             version, title, description, content, type, structureId,
185             templateId, displayDateMonth, displayDateDay, displayDateYear,
186             displayDateHour, displayDateMinute, expirationDateMonth,
187             expirationDateDay, expirationDateYear, expirationDateHour,
188             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
189             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
190             indexable, smallImage, smallImageURL, smallFile, images,
191             articleURL, serviceContext);
192     }
193 
194     public static void addArticleResources(
195         com.liferay.portlet.journal.model.JournalArticle article,
196         boolean addCommunityPermissions, boolean addGuestPermissions)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException {
199         getService()
200             .addArticleResources(article, addCommunityPermissions,
201             addGuestPermissions);
202     }
203 
204     public static void addArticleResources(
205         com.liferay.portlet.journal.model.JournalArticle article,
206         java.lang.String[] communityPermissions,
207         java.lang.String[] guestPermissions)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException {
210         getService()
211             .addArticleResources(article, communityPermissions, guestPermissions);
212     }
213 
214     public static void addArticleResources(long groupId,
215         java.lang.String articleId, boolean addCommunityPermissions,
216         boolean addGuestPermissions)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException {
219         getService()
220             .addArticleResources(groupId, articleId, addCommunityPermissions,
221             addGuestPermissions);
222     }
223 
224     public static void addArticleResources(long groupId,
225         java.lang.String articleId, java.lang.String[] communityPermissions,
226         java.lang.String[] guestPermissions)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         getService()
230             .addArticleResources(groupId, articleId, communityPermissions,
231             guestPermissions);
232     }
233 
234     public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
235         long groupId, java.lang.String articleId, double version)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException {
238         return getService()
239                    .checkArticleResourcePrimKey(groupId, articleId, version);
240     }
241 
242     public static void checkArticles()
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         getService().checkArticles();
246     }
247 
248     public static void checkNewLine(long groupId, java.lang.String articleId,
249         double version)
250         throws com.liferay.portal.kernel.exception.PortalException,
251             com.liferay.portal.kernel.exception.SystemException {
252         getService().checkNewLine(groupId, articleId, version);
253     }
254 
255     public static void checkStructure(long groupId, java.lang.String articleId,
256         double version)
257         throws com.liferay.portal.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.SystemException {
259         getService().checkStructure(groupId, articleId, version);
260     }
261 
262     public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
263         long userId, long groupId, java.lang.String oldArticleId,
264         java.lang.String newArticleId, boolean autoArticleId, double version)
265         throws com.liferay.portal.kernel.exception.PortalException,
266             com.liferay.portal.kernel.exception.SystemException {
267         return getService()
268                    .copyArticle(userId, groupId, oldArticleId, newArticleId,
269             autoArticleId, version);
270     }
271 
272     public static void deleteArticle(
273         com.liferay.portlet.journal.model.JournalArticle article,
274         java.lang.String articleURL,
275         com.liferay.portal.service.ServiceContext serviceContext)
276         throws com.liferay.portal.kernel.exception.PortalException,
277             com.liferay.portal.kernel.exception.SystemException {
278         getService().deleteArticle(article, articleURL, serviceContext);
279     }
280 
281     public static void deleteArticle(long groupId, java.lang.String articleId,
282         double version, java.lang.String articleURL,
283         com.liferay.portal.service.ServiceContext serviceContext)
284         throws com.liferay.portal.kernel.exception.PortalException,
285             com.liferay.portal.kernel.exception.SystemException {
286         getService()
287             .deleteArticle(groupId, articleId, version, articleURL,
288             serviceContext);
289     }
290 
291     public static void deleteArticles(long groupId)
292         throws com.liferay.portal.kernel.exception.PortalException,
293             com.liferay.portal.kernel.exception.SystemException {
294         getService().deleteArticles(groupId);
295     }
296 
297     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
298         long id)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException {
301         return getService().getArticle(id);
302     }
303 
304     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
305         long groupId, java.lang.String articleId)
306         throws com.liferay.portal.kernel.exception.PortalException,
307             com.liferay.portal.kernel.exception.SystemException {
308         return getService().getArticle(groupId, articleId);
309     }
310 
311     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
312         long groupId, java.lang.String articleId, double version)
313         throws com.liferay.portal.kernel.exception.PortalException,
314             com.liferay.portal.kernel.exception.SystemException {
315         return getService().getArticle(groupId, articleId, version);
316     }
317 
318     public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
319         long groupId, java.lang.String urlTitle)
320         throws com.liferay.portal.kernel.exception.PortalException,
321             com.liferay.portal.kernel.exception.SystemException {
322         return getService().getArticleByUrlTitle(groupId, urlTitle);
323     }
324 
325     public static java.lang.String getArticleContent(
326         com.liferay.portlet.journal.model.JournalArticle article,
327         java.lang.String templateId, java.lang.String viewMode,
328         java.lang.String languageId,
329         com.liferay.portal.theme.ThemeDisplay themeDisplay)
330         throws com.liferay.portal.kernel.exception.SystemException {
331         return getService()
332                    .getArticleContent(article, templateId, viewMode,
333             languageId, themeDisplay);
334     }
335 
336     public static java.lang.String getArticleContent(long groupId,
337         java.lang.String articleId, double version, java.lang.String viewMode,
338         java.lang.String templateId, java.lang.String languageId,
339         com.liferay.portal.theme.ThemeDisplay themeDisplay)
340         throws com.liferay.portal.kernel.exception.PortalException,
341             com.liferay.portal.kernel.exception.SystemException {
342         return getService()
343                    .getArticleContent(groupId, articleId, version, viewMode,
344             templateId, languageId, themeDisplay);
345     }
346 
347     public static java.lang.String getArticleContent(long groupId,
348         java.lang.String articleId, double version, java.lang.String viewMode,
349         java.lang.String languageId,
350         com.liferay.portal.theme.ThemeDisplay themeDisplay)
351         throws com.liferay.portal.kernel.exception.PortalException,
352             com.liferay.portal.kernel.exception.SystemException {
353         return getService()
354                    .getArticleContent(groupId, articleId, version, viewMode,
355             languageId, themeDisplay);
356     }
357 
358     public static java.lang.String getArticleContent(long groupId,
359         java.lang.String articleId, java.lang.String viewMode,
360         java.lang.String templateId, java.lang.String languageId,
361         com.liferay.portal.theme.ThemeDisplay themeDisplay)
362         throws com.liferay.portal.kernel.exception.PortalException,
363             com.liferay.portal.kernel.exception.SystemException {
364         return getService()
365                    .getArticleContent(groupId, articleId, viewMode, templateId,
366             languageId, themeDisplay);
367     }
368 
369     public static java.lang.String getArticleContent(long groupId,
370         java.lang.String articleId, 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(groupId, articleId, viewMode, languageId,
377             themeDisplay);
378     }
379 
380     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
381         com.liferay.portlet.journal.model.JournalArticle article,
382         java.lang.String templateId, java.lang.String viewMode,
383         java.lang.String languageId, int page, java.lang.String xmlRequest,
384         com.liferay.portal.theme.ThemeDisplay themeDisplay)
385         throws com.liferay.portal.kernel.exception.SystemException {
386         return getService()
387                    .getArticleDisplay(article, templateId, viewMode,
388             languageId, page, xmlRequest, themeDisplay);
389     }
390 
391     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
392         long groupId, java.lang.String articleId, double version,
393         java.lang.String templateId, java.lang.String viewMode,
394         java.lang.String languageId, int page, java.lang.String xmlRequest,
395         com.liferay.portal.theme.ThemeDisplay themeDisplay)
396         throws com.liferay.portal.kernel.exception.PortalException,
397             com.liferay.portal.kernel.exception.SystemException {
398         return getService()
399                    .getArticleDisplay(groupId, articleId, version, templateId,
400             viewMode, languageId, page, xmlRequest, themeDisplay);
401     }
402 
403     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
404         long groupId, java.lang.String articleId, double version,
405         java.lang.String templateId, java.lang.String viewMode,
406         java.lang.String languageId,
407         com.liferay.portal.theme.ThemeDisplay themeDisplay)
408         throws com.liferay.portal.kernel.exception.PortalException,
409             com.liferay.portal.kernel.exception.SystemException {
410         return getService()
411                    .getArticleDisplay(groupId, articleId, version, templateId,
412             viewMode, languageId, themeDisplay);
413     }
414 
415     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
416         long groupId, java.lang.String articleId, java.lang.String viewMode,
417         java.lang.String languageId, int page, java.lang.String xmlRequest,
418         com.liferay.portal.theme.ThemeDisplay themeDisplay)
419         throws com.liferay.portal.kernel.exception.PortalException,
420             com.liferay.portal.kernel.exception.SystemException {
421         return getService()
422                    .getArticleDisplay(groupId, articleId, viewMode, languageId,
423             page, xmlRequest, themeDisplay);
424     }
425 
426     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
427         long groupId, java.lang.String articleId, java.lang.String templateId,
428         java.lang.String viewMode, java.lang.String languageId, int page,
429         java.lang.String xmlRequest,
430         com.liferay.portal.theme.ThemeDisplay themeDisplay)
431         throws com.liferay.portal.kernel.exception.PortalException,
432             com.liferay.portal.kernel.exception.SystemException {
433         return getService()
434                    .getArticleDisplay(groupId, articleId, templateId, viewMode,
435             languageId, page, xmlRequest, themeDisplay);
436     }
437 
438     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
439         long groupId, java.lang.String articleId, java.lang.String templateId,
440         java.lang.String viewMode, java.lang.String languageId,
441         com.liferay.portal.theme.ThemeDisplay themeDisplay)
442         throws com.liferay.portal.kernel.exception.PortalException,
443             com.liferay.portal.kernel.exception.SystemException {
444         return getService()
445                    .getArticleDisplay(groupId, articleId, templateId, viewMode,
446             languageId, themeDisplay);
447     }
448 
449     public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
450         long groupId, java.lang.String articleId, 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, viewMode, languageId,
457             themeDisplay);
458     }
459 
460     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
461         throws com.liferay.portal.kernel.exception.SystemException {
462         return getService().getArticles();
463     }
464 
465     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
466         long groupId)
467         throws com.liferay.portal.kernel.exception.SystemException {
468         return getService().getArticles(groupId);
469     }
470 
471     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
472         long groupId, int start, int end)
473         throws com.liferay.portal.kernel.exception.SystemException {
474         return getService().getArticles(groupId, start, end);
475     }
476 
477     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
478         long groupId, int start, int end,
479         com.liferay.portal.kernel.util.OrderByComparator obc)
480         throws com.liferay.portal.kernel.exception.SystemException {
481         return getService().getArticles(groupId, start, end, obc);
482     }
483 
484     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
485         long groupId, java.lang.String articleId)
486         throws com.liferay.portal.kernel.exception.SystemException {
487         return getService().getArticles(groupId, articleId);
488     }
489 
490     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
491         long smallImageId)
492         throws com.liferay.portal.kernel.exception.SystemException {
493         return getService().getArticlesBySmallImageId(smallImageId);
494     }
495 
496     public static int getArticlesCount(long groupId)
497         throws com.liferay.portal.kernel.exception.SystemException {
498         return getService().getArticlesCount(groupId);
499     }
500 
501     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
502         long companyId, int status, int start, int end)
503         throws com.liferay.portal.kernel.exception.SystemException {
504         return getService().getCompanyArticles(companyId, status, start, end);
505     }
506 
507     public static int getCompanyArticlesCount(long companyId, int status)
508         throws com.liferay.portal.kernel.exception.SystemException {
509         return getService().getCompanyArticlesCount(companyId, status);
510     }
511 
512     public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
513         long groupId, java.lang.String articleId)
514         throws com.liferay.portal.kernel.exception.PortalException,
515             com.liferay.portal.kernel.exception.SystemException {
516         return getService().getDisplayArticle(groupId, articleId);
517     }
518 
519     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
520         long resourcePrimKey)
521         throws com.liferay.portal.kernel.exception.PortalException,
522             com.liferay.portal.kernel.exception.SystemException {
523         return getService().getLatestArticle(resourcePrimKey);
524     }
525 
526     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
527         long resourcePrimKey, int status)
528         throws com.liferay.portal.kernel.exception.PortalException,
529             com.liferay.portal.kernel.exception.SystemException {
530         return getService().getLatestArticle(resourcePrimKey, status);
531     }
532 
533     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
534         long groupId, java.lang.String articleId)
535         throws com.liferay.portal.kernel.exception.PortalException,
536             com.liferay.portal.kernel.exception.SystemException {
537         return getService().getLatestArticle(groupId, articleId);
538     }
539 
540     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
541         long groupId, java.lang.String articleId, int status)
542         throws com.liferay.portal.kernel.exception.PortalException,
543             com.liferay.portal.kernel.exception.SystemException {
544         return getService().getLatestArticle(groupId, articleId, status);
545     }
546 
547     public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
548         long groupId, java.lang.String urlTitle, int status)
549         throws com.liferay.portal.kernel.exception.PortalException,
550             com.liferay.portal.kernel.exception.SystemException {
551         return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
552     }
553 
554     public static double getLatestVersion(long groupId,
555         java.lang.String articleId)
556         throws com.liferay.portal.kernel.exception.PortalException,
557             com.liferay.portal.kernel.exception.SystemException {
558         return getService().getLatestVersion(groupId, articleId);
559     }
560 
561     public static double getLatestVersion(long groupId,
562         java.lang.String articleId, int status)
563         throws com.liferay.portal.kernel.exception.PortalException,
564             com.liferay.portal.kernel.exception.SystemException {
565         return getService().getLatestVersion(groupId, articleId, status);
566     }
567 
568     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
569         long groupId, java.lang.String structureId)
570         throws com.liferay.portal.kernel.exception.SystemException {
571         return getService().getStructureArticles(groupId, structureId);
572     }
573 
574     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
575         long groupId, java.lang.String structureId, int start, int end,
576         com.liferay.portal.kernel.util.OrderByComparator obc)
577         throws com.liferay.portal.kernel.exception.SystemException {
578         return getService()
579                    .getStructureArticles(groupId, structureId, start, end, obc);
580     }
581 
582     public static int getStructureArticlesCount(long groupId,
583         java.lang.String structureId)
584         throws com.liferay.portal.kernel.exception.SystemException {
585         return getService().getStructureArticlesCount(groupId, structureId);
586     }
587 
588     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
589         long groupId, java.lang.String templateId)
590         throws com.liferay.portal.kernel.exception.SystemException {
591         return getService().getTemplateArticles(groupId, templateId);
592     }
593 
594     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
595         long groupId, java.lang.String templateId, int start, int end,
596         com.liferay.portal.kernel.util.OrderByComparator obc)
597         throws com.liferay.portal.kernel.exception.SystemException {
598         return getService()
599                    .getTemplateArticles(groupId, templateId, start, end, obc);
600     }
601 
602     public static int getTemplateArticlesCount(long groupId,
603         java.lang.String templateId)
604         throws com.liferay.portal.kernel.exception.SystemException {
605         return getService().getTemplateArticlesCount(groupId, templateId);
606     }
607 
608     public static boolean hasArticle(long groupId, java.lang.String articleId)
609         throws com.liferay.portal.kernel.exception.SystemException {
610         return getService().hasArticle(groupId, articleId);
611     }
612 
613     public static boolean isLatestVersion(long groupId,
614         java.lang.String articleId, double version)
615         throws com.liferay.portal.kernel.exception.PortalException,
616             com.liferay.portal.kernel.exception.SystemException {
617         return getService().isLatestVersion(groupId, articleId, version);
618     }
619 
620     public static boolean isLatestVersion(long groupId,
621         java.lang.String articleId, double version, int status)
622         throws com.liferay.portal.kernel.exception.PortalException,
623             com.liferay.portal.kernel.exception.SystemException {
624         return getService().isLatestVersion(groupId, articleId, version, status);
625     }
626 
627     public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
628         long groupId, java.lang.String articleId, double version,
629         java.lang.String languageId)
630         throws com.liferay.portal.kernel.exception.PortalException,
631             com.liferay.portal.kernel.exception.SystemException {
632         return getService()
633                    .removeArticleLocale(groupId, articleId, version, languageId);
634     }
635 
636     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
637         long companyId, long groupId, java.lang.String keywords,
638         java.lang.Double version, java.lang.String type,
639         java.lang.String structureId, java.lang.String templateId,
640         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
641         java.util.Date reviewDate, int start, int end,
642         com.liferay.portal.kernel.util.OrderByComparator obc)
643         throws com.liferay.portal.kernel.exception.SystemException {
644         return getService()
645                    .search(companyId, groupId, keywords, version, type,
646             structureId, templateId, displayDateGT, displayDateLT, status,
647             reviewDate, start, end, obc);
648     }
649 
650     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
651         long companyId, long groupId, java.lang.String articleId,
652         java.lang.Double version, java.lang.String title,
653         java.lang.String description, java.lang.String content,
654         java.lang.String type, java.lang.String structureId,
655         java.lang.String templateId, java.util.Date displayDateGT,
656         java.util.Date displayDateLT, int status, java.util.Date reviewDate,
657         boolean andOperator, int start, int end,
658         com.liferay.portal.kernel.util.OrderByComparator obc)
659         throws com.liferay.portal.kernel.exception.SystemException {
660         return getService()
661                    .search(companyId, groupId, articleId, version, title,
662             description, content, type, structureId, templateId, displayDateGT,
663             displayDateLT, status, reviewDate, andOperator, start, end, obc);
664     }
665 
666     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
667         long companyId, long groupId, java.lang.String articleId,
668         java.lang.Double version, java.lang.String title,
669         java.lang.String description, java.lang.String content,
670         java.lang.String type, java.lang.String[] structureIds,
671         java.lang.String[] templateIds, java.util.Date displayDateGT,
672         java.util.Date displayDateLT, int status, java.util.Date reviewDate,
673         boolean andOperator, int start, int end,
674         com.liferay.portal.kernel.util.OrderByComparator obc)
675         throws com.liferay.portal.kernel.exception.SystemException {
676         return getService()
677                    .search(companyId, groupId, articleId, version, title,
678             description, content, type, structureIds, templateIds,
679             displayDateGT, displayDateLT, status, reviewDate, andOperator,
680             start, end, obc);
681     }
682 
683     public static int searchCount(long companyId, long groupId,
684         java.lang.String keywords, java.lang.Double version,
685         java.lang.String type, java.lang.String structureId,
686         java.lang.String templateId, java.util.Date displayDateGT,
687         java.util.Date displayDateLT, int status, java.util.Date reviewDate)
688         throws com.liferay.portal.kernel.exception.SystemException {
689         return getService()
690                    .searchCount(companyId, groupId, keywords, version, type,
691             structureId, templateId, displayDateGT, displayDateLT, status,
692             reviewDate);
693     }
694 
695     public static int searchCount(long companyId, long groupId,
696         java.lang.String articleId, java.lang.Double version,
697         java.lang.String title, java.lang.String description,
698         java.lang.String content, java.lang.String type,
699         java.lang.String structureId, java.lang.String templateId,
700         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
701         java.util.Date reviewDate, boolean andOperator)
702         throws com.liferay.portal.kernel.exception.SystemException {
703         return getService()
704                    .searchCount(companyId, groupId, articleId, version, title,
705             description, content, type, structureId, templateId, displayDateGT,
706             displayDateLT, status, reviewDate, andOperator);
707     }
708 
709     public static int searchCount(long companyId, long groupId,
710         java.lang.String articleId, java.lang.Double version,
711         java.lang.String title, java.lang.String description,
712         java.lang.String content, java.lang.String type,
713         java.lang.String[] structureIds, java.lang.String[] templateIds,
714         java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
715         java.util.Date reviewDate, boolean andOperator)
716         throws com.liferay.portal.kernel.exception.SystemException {
717         return getService()
718                    .searchCount(companyId, groupId, articleId, version, title,
719             description, content, type, structureIds, templateIds,
720             displayDateGT, displayDateLT, status, reviewDate, andOperator);
721     }
722 
723     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
724         long userId, long groupId, java.lang.String articleId, double version,
725         boolean incrementVersion, java.lang.String content)
726         throws com.liferay.portal.kernel.exception.PortalException,
727             com.liferay.portal.kernel.exception.SystemException {
728         return getService()
729                    .updateArticle(userId, groupId, articleId, version,
730             incrementVersion, content);
731     }
732 
733     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
734         long userId, long groupId, java.lang.String articleId, double version,
735         boolean incrementVersion, java.lang.String title,
736         java.lang.String description, java.lang.String content,
737         java.lang.String type, java.lang.String structureId,
738         java.lang.String templateId, int displayDateMonth, int displayDateDay,
739         int displayDateYear, int displayDateHour, int displayDateMinute,
740         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
741         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
742         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
743         int reviewDateHour, int reviewDateMinute, boolean neverReview,
744         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
745         java.io.File smallFile, java.util.Map<String, byte[]> images,
746         java.lang.String articleURL,
747         com.liferay.portal.service.ServiceContext serviceContext)
748         throws com.liferay.portal.kernel.exception.PortalException,
749             com.liferay.portal.kernel.exception.SystemException {
750         return getService()
751                    .updateArticle(userId, groupId, articleId, version,
752             incrementVersion, title, description, content, type, structureId,
753             templateId, displayDateMonth, displayDateDay, displayDateYear,
754             displayDateHour, displayDateMinute, expirationDateMonth,
755             expirationDateDay, expirationDateYear, expirationDateHour,
756             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
757             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
758             indexable, smallImage, smallImageURL, smallFile, images,
759             articleURL, serviceContext);
760     }
761 
762     public static void updateAsset(long userId,
763         com.liferay.portlet.journal.model.JournalArticle article,
764         long[] assetCategoryIds, java.lang.String[] assetTagNames)
765         throws com.liferay.portal.kernel.exception.PortalException,
766             com.liferay.portal.kernel.exception.SystemException {
767         getService()
768             .updateAsset(userId, article, assetCategoryIds, assetTagNames);
769     }
770 
771     public static com.liferay.portlet.journal.model.JournalArticle updateContent(
772         long groupId, java.lang.String articleId, double version,
773         java.lang.String content)
774         throws com.liferay.portal.kernel.exception.PortalException,
775             com.liferay.portal.kernel.exception.SystemException {
776         return getService().updateContent(groupId, articleId, version, content);
777     }
778 
779     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
780         long userId, com.liferay.portlet.journal.model.JournalArticle article,
781         int status, java.lang.String articleURL,
782         com.liferay.portal.service.ServiceContext serviceContext)
783         throws com.liferay.portal.kernel.exception.PortalException,
784             com.liferay.portal.kernel.exception.SystemException {
785         return getService()
786                    .updateStatus(userId, article, status, articleURL,
787             serviceContext);
788     }
789 
790     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
791         long userId, long classPK, int status,
792         com.liferay.portal.service.ServiceContext serviceContext)
793         throws com.liferay.portal.kernel.exception.PortalException,
794             com.liferay.portal.kernel.exception.SystemException {
795         return getService().updateStatus(userId, classPK, status, serviceContext);
796     }
797 
798     public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
799         long userId, long groupId, java.lang.String articleId, double version,
800         int status, java.lang.String articleURL,
801         com.liferay.portal.service.ServiceContext serviceContext)
802         throws com.liferay.portal.kernel.exception.PortalException,
803             com.liferay.portal.kernel.exception.SystemException {
804         return getService()
805                    .updateStatus(userId, groupId, articleId, version, status,
806             articleURL, serviceContext);
807     }
808 
809     public static JournalArticleLocalService getService() {
810         if (_service == null) {
811             _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
812         }
813 
814         return _service;
815     }
816 
817     public void setService(JournalArticleLocalService service) {
818         _service = service;
819     }
820 
821     private static JournalArticleLocalService _service;
822 }