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