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