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