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