001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link JournalArticleLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       JournalArticleLocalService
030     * @generated
031     */
032    public class JournalArticleLocalServiceUtil {
033            public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
034                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addJournalArticle(journalArticle);
037            }
038    
039            public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
040                    long id) {
041                    return getService().createJournalArticle(id);
042            }
043    
044            public static void deleteJournalArticle(long id)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteJournalArticle(id);
048            }
049    
050            public static void deleteJournalArticle(
051                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteJournalArticle(journalArticle);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
087                    long id)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getJournalArticle(id);
091            }
092    
093            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getJournalArticles(start, end);
104            }
105    
106            public static int getJournalArticlesCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getJournalArticlesCount();
109            }
110    
111            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
112                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateJournalArticle(journalArticle);
115            }
116    
117            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
118                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
119                    boolean merge)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().updateJournalArticle(journalArticle, merge);
122            }
123    
124            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
125                    long userId, long groupId, java.lang.String articleId,
126                    boolean autoArticleId, double version, java.lang.String title,
127                    java.lang.String description, java.lang.String content,
128                    java.lang.String type, java.lang.String structureId,
129                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
130                    int displayDateYear, int displayDateHour, int displayDateMinute,
131                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
132                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
133                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
134                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
135                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
136                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
137                    java.lang.String articleURL,
138                    com.liferay.portal.service.ServiceContext serviceContext)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    return getService()
142                                       .addArticle(userId, groupId, articleId, autoArticleId,
143                            version, title, description, content, type, structureId,
144                            templateId, displayDateMonth, displayDateDay, displayDateYear,
145                            displayDateHour, displayDateMinute, expirationDateMonth,
146                            expirationDateDay, expirationDateYear, expirationDateHour,
147                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
148                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
149                            indexable, smallImage, smallImageURL, smallFile, images,
150                            articleURL, serviceContext);
151            }
152    
153            public static void addArticleResources(
154                    com.liferay.portlet.journal.model.JournalArticle article,
155                    boolean addCommunityPermissions, boolean addGuestPermissions)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    getService()
159                            .addArticleResources(article, addCommunityPermissions,
160                            addGuestPermissions);
161            }
162    
163            public static void addArticleResources(
164                    com.liferay.portlet.journal.model.JournalArticle article,
165                    java.lang.String[] communityPermissions,
166                    java.lang.String[] guestPermissions)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    getService()
170                            .addArticleResources(article, communityPermissions, guestPermissions);
171            }
172    
173            public static void addArticleResources(long groupId,
174                    java.lang.String articleId, boolean addCommunityPermissions,
175                    boolean addGuestPermissions)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    getService()
179                            .addArticleResources(groupId, articleId, addCommunityPermissions,
180                            addGuestPermissions);
181            }
182    
183            public static void addArticleResources(long groupId,
184                    java.lang.String articleId, java.lang.String[] communityPermissions,
185                    java.lang.String[] guestPermissions)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    getService()
189                            .addArticleResources(groupId, articleId, communityPermissions,
190                            guestPermissions);
191            }
192    
193            public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
194                    long groupId, java.lang.String articleId, double version)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return getService()
198                                       .checkArticleResourcePrimKey(groupId, articleId, version);
199            }
200    
201            public static void checkArticles()
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    getService().checkArticles();
205            }
206    
207            public static void checkNewLine(long groupId, java.lang.String articleId,
208                    double version)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    getService().checkNewLine(groupId, articleId, version);
212            }
213    
214            public static void checkStructure(long groupId, java.lang.String articleId,
215                    double version)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    getService().checkStructure(groupId, articleId, version);
219            }
220    
221            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
222                    long userId, long groupId, java.lang.String oldArticleId,
223                    java.lang.String newArticleId, boolean autoArticleId, double version)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return getService()
227                                       .copyArticle(userId, groupId, oldArticleId, newArticleId,
228                            autoArticleId, version);
229            }
230    
231            public static void deleteArticle(
232                    com.liferay.portlet.journal.model.JournalArticle article,
233                    java.lang.String articleURL,
234                    com.liferay.portal.service.ServiceContext serviceContext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    getService().deleteArticle(article, articleURL, serviceContext);
238            }
239    
240            public static void deleteArticle(long groupId, java.lang.String articleId,
241                    double version, java.lang.String articleURL,
242                    com.liferay.portal.service.ServiceContext serviceContext)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    getService()
246                            .deleteArticle(groupId, articleId, version, articleURL,
247                            serviceContext);
248            }
249    
250            public static void deleteArticle(long groupId, java.lang.String articleId,
251                    com.liferay.portal.service.ServiceContext serviceContext)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    getService().deleteArticle(groupId, articleId, serviceContext);
255            }
256    
257            public static void deleteArticles(long groupId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    getService().deleteArticles(groupId);
261            }
262    
263            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
264                    long userId, long groupId, java.lang.String articleId, double version,
265                    java.lang.String articleURL,
266                    com.liferay.portal.service.ServiceContext serviceContext)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    return getService()
270                                       .expireArticle(userId, groupId, articleId, version,
271                            articleURL, serviceContext);
272            }
273    
274            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
275                    long id)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return getService().getArticle(id);
279            }
280    
281            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
282                    long groupId, java.lang.String articleId)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return getService().getArticle(groupId, articleId);
286            }
287    
288            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
289                    long groupId, java.lang.String articleId, double version)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return getService().getArticle(groupId, articleId, version);
293            }
294    
295            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
296                    long groupId, java.lang.String urlTitle)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return getService().getArticleByUrlTitle(groupId, urlTitle);
300            }
301    
302            public static java.lang.String getArticleContent(
303                    com.liferay.portlet.journal.model.JournalArticle article,
304                    java.lang.String templateId, java.lang.String viewMode,
305                    java.lang.String languageId,
306                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return getService()
310                                       .getArticleContent(article, templateId, viewMode,
311                            languageId, themeDisplay);
312            }
313    
314            public static java.lang.String getArticleContent(long groupId,
315                    java.lang.String articleId, double version, java.lang.String viewMode,
316                    java.lang.String templateId, java.lang.String languageId,
317                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return getService()
321                                       .getArticleContent(groupId, articleId, version, viewMode,
322                            templateId, languageId, themeDisplay);
323            }
324    
325            public static java.lang.String getArticleContent(long groupId,
326                    java.lang.String articleId, double version, java.lang.String viewMode,
327                    java.lang.String languageId,
328                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return getService()
332                                       .getArticleContent(groupId, articleId, version, viewMode,
333                            languageId, themeDisplay);
334            }
335    
336            public static java.lang.String getArticleContent(long groupId,
337                    java.lang.String articleId, java.lang.String viewMode,
338                    java.lang.String templateId, java.lang.String languageId,
339                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return getService()
343                                       .getArticleContent(groupId, articleId, viewMode, templateId,
344                            languageId, themeDisplay);
345            }
346    
347            public static java.lang.String getArticleContent(long groupId,
348                    java.lang.String articleId, java.lang.String viewMode,
349                    java.lang.String languageId,
350                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return getService()
354                                       .getArticleContent(groupId, articleId, viewMode, languageId,
355                            themeDisplay);
356            }
357    
358            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
359                    com.liferay.portlet.journal.model.JournalArticle article,
360                    java.lang.String templateId, java.lang.String viewMode,
361                    java.lang.String languageId, int page, java.lang.String xmlRequest,
362                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return getService()
366                                       .getArticleDisplay(article, templateId, viewMode,
367                            languageId, page, xmlRequest, themeDisplay);
368            }
369    
370            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
371                    long groupId, java.lang.String articleId, double version,
372                    java.lang.String templateId, java.lang.String viewMode,
373                    java.lang.String languageId, int page, java.lang.String xmlRequest,
374                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getService()
378                                       .getArticleDisplay(groupId, articleId, version, templateId,
379                            viewMode, languageId, page, xmlRequest, themeDisplay);
380            }
381    
382            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
383                    long groupId, java.lang.String articleId, double version,
384                    java.lang.String templateId, java.lang.String viewMode,
385                    java.lang.String languageId,
386                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    return getService()
390                                       .getArticleDisplay(groupId, articleId, version, templateId,
391                            viewMode, languageId, themeDisplay);
392            }
393    
394            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
395                    long groupId, java.lang.String articleId, java.lang.String viewMode,
396                    java.lang.String languageId, int page, java.lang.String xmlRequest,
397                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return getService()
401                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
402                            page, xmlRequest, themeDisplay);
403            }
404    
405            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
406                    long groupId, java.lang.String articleId, java.lang.String templateId,
407                    java.lang.String viewMode, java.lang.String languageId, int page,
408                    java.lang.String xmlRequest,
409                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return getService()
413                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
414                            languageId, page, xmlRequest, themeDisplay);
415            }
416    
417            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
418                    long groupId, java.lang.String articleId, java.lang.String templateId,
419                    java.lang.String viewMode, java.lang.String languageId,
420                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return getService()
424                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
425                            languageId, themeDisplay);
426            }
427    
428            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
429                    long groupId, java.lang.String articleId, java.lang.String viewMode,
430                    java.lang.String languageId,
431                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
432                    throws com.liferay.portal.kernel.exception.PortalException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    return getService()
435                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
436                            themeDisplay);
437            }
438    
439            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return getService().getArticles();
442            }
443    
444            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
445                    long groupId)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getService().getArticles(groupId);
448            }
449    
450            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
451                    long groupId, int start, int end)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    return getService().getArticles(groupId, start, end);
454            }
455    
456            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
457                    long groupId, int start, int end,
458                    com.liferay.portal.kernel.util.OrderByComparator obc)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return getService().getArticles(groupId, start, end, obc);
461            }
462    
463            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
464                    long groupId, java.lang.String articleId)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getService().getArticles(groupId, articleId);
467            }
468    
469            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
470                    long smallImageId)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getService().getArticlesBySmallImageId(smallImageId);
473            }
474    
475            public static int getArticlesCount(long groupId)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return getService().getArticlesCount(groupId);
478            }
479    
480            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
481                    long companyId, int status, int start, int end)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return getService().getCompanyArticles(companyId, status, start, end);
484            }
485    
486            public static int getCompanyArticlesCount(long companyId, int status)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getService().getCompanyArticlesCount(companyId, status);
489            }
490    
491            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
492                    long groupId, java.lang.String articleId)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException {
495                    return getService().getDisplayArticle(groupId, articleId);
496            }
497    
498            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
499                    long resourcePrimKey)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    return getService().getLatestArticle(resourcePrimKey);
503            }
504    
505            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
506                    long resourcePrimKey, int status)
507                    throws com.liferay.portal.kernel.exception.PortalException,
508                            com.liferay.portal.kernel.exception.SystemException {
509                    return getService().getLatestArticle(resourcePrimKey, status);
510            }
511    
512            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
513                    long resourcePrimKey, int status, boolean preferApproved)
514                    throws com.liferay.portal.kernel.exception.PortalException,
515                            com.liferay.portal.kernel.exception.SystemException {
516                    return getService()
517                                       .getLatestArticle(resourcePrimKey, status, preferApproved);
518            }
519    
520            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
521                    long groupId, java.lang.String articleId)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException {
524                    return getService().getLatestArticle(groupId, articleId);
525            }
526    
527            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
528                    long groupId, java.lang.String articleId, int status)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException {
531                    return getService().getLatestArticle(groupId, articleId, status);
532            }
533    
534            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
535                    long groupId, java.lang.String urlTitle, int status)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException {
538                    return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
539            }
540    
541            public static double getLatestVersion(long groupId,
542                    java.lang.String articleId)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException {
545                    return getService().getLatestVersion(groupId, articleId);
546            }
547    
548            public static double getLatestVersion(long groupId,
549                    java.lang.String articleId, int status)
550                    throws com.liferay.portal.kernel.exception.PortalException,
551                            com.liferay.portal.kernel.exception.SystemException {
552                    return getService().getLatestVersion(groupId, articleId, status);
553            }
554    
555            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
556                    long groupId, java.lang.String structureId)
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    return getService().getStructureArticles(groupId, structureId);
559            }
560    
561            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
562                    long groupId, java.lang.String structureId, int start, int end,
563                    com.liferay.portal.kernel.util.OrderByComparator obc)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    return getService()
566                                       .getStructureArticles(groupId, structureId, start, end, obc);
567            }
568    
569            public static int getStructureArticlesCount(long groupId,
570                    java.lang.String structureId)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    return getService().getStructureArticlesCount(groupId, structureId);
573            }
574    
575            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
576                    long groupId, java.lang.String templateId)
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    return getService().getTemplateArticles(groupId, templateId);
579            }
580    
581            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
582                    long groupId, java.lang.String templateId, int start, int end,
583                    com.liferay.portal.kernel.util.OrderByComparator obc)
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    return getService()
586                                       .getTemplateArticles(groupId, templateId, start, end, obc);
587            }
588    
589            public static int getTemplateArticlesCount(long groupId,
590                    java.lang.String templateId)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    return getService().getTemplateArticlesCount(groupId, templateId);
593            }
594    
595            public static boolean hasArticle(long groupId, java.lang.String articleId)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    return getService().hasArticle(groupId, articleId);
598            }
599    
600            public static boolean isLatestVersion(long groupId,
601                    java.lang.String articleId, double version)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException {
604                    return getService().isLatestVersion(groupId, articleId, version);
605            }
606    
607            public static boolean isLatestVersion(long groupId,
608                    java.lang.String articleId, double version, int status)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    return getService().isLatestVersion(groupId, articleId, version, status);
612            }
613    
614            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
615                    long groupId, java.lang.String articleId, double version,
616                    java.lang.String languageId)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException {
619                    return getService()
620                                       .removeArticleLocale(groupId, articleId, version, languageId);
621            }
622    
623            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
624                    long companyId, long groupId, java.lang.String keywords,
625                    java.lang.Double version, java.lang.String type,
626                    java.lang.String structureId, java.lang.String templateId,
627                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
628                    java.util.Date reviewDate, int start, int end,
629                    com.liferay.portal.kernel.util.OrderByComparator obc)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return getService()
632                                       .search(companyId, groupId, keywords, version, type,
633                            structureId, templateId, displayDateGT, displayDateLT, status,
634                            reviewDate, start, end, obc);
635            }
636    
637            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
638                    long companyId, long groupId, java.lang.String articleId,
639                    java.lang.Double version, java.lang.String title,
640                    java.lang.String description, java.lang.String content,
641                    java.lang.String type, java.lang.String structureId,
642                    java.lang.String templateId, java.util.Date displayDateGT,
643                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
644                    boolean andOperator, int start, int end,
645                    com.liferay.portal.kernel.util.OrderByComparator obc)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return getService()
648                                       .search(companyId, groupId, articleId, version, title,
649                            description, content, type, structureId, templateId, displayDateGT,
650                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
651            }
652    
653            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
654                    long companyId, long groupId, java.lang.String articleId,
655                    java.lang.Double version, java.lang.String title,
656                    java.lang.String description, java.lang.String content,
657                    java.lang.String type, java.lang.String[] structureIds,
658                    java.lang.String[] templateIds, java.util.Date displayDateGT,
659                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
660                    boolean andOperator, int start, int end,
661                    com.liferay.portal.kernel.util.OrderByComparator obc)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    return getService()
664                                       .search(companyId, groupId, articleId, version, title,
665                            description, content, type, structureIds, templateIds,
666                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
667                            start, end, obc);
668            }
669    
670            public static int searchCount(long companyId, long groupId,
671                    java.lang.String keywords, java.lang.Double version,
672                    java.lang.String type, java.lang.String structureId,
673                    java.lang.String templateId, java.util.Date displayDateGT,
674                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    return getService()
677                                       .searchCount(companyId, groupId, keywords, version, type,
678                            structureId, templateId, displayDateGT, displayDateLT, status,
679                            reviewDate);
680            }
681    
682            public static int searchCount(long companyId, long groupId,
683                    java.lang.String articleId, java.lang.Double version,
684                    java.lang.String title, java.lang.String description,
685                    java.lang.String content, java.lang.String type,
686                    java.lang.String structureId, java.lang.String templateId,
687                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
688                    java.util.Date reviewDate, boolean andOperator)
689                    throws com.liferay.portal.kernel.exception.SystemException {
690                    return getService()
691                                       .searchCount(companyId, groupId, articleId, version, title,
692                            description, content, type, structureId, templateId, displayDateGT,
693                            displayDateLT, status, reviewDate, andOperator);
694            }
695    
696            public static int searchCount(long companyId, long groupId,
697                    java.lang.String articleId, java.lang.Double version,
698                    java.lang.String title, java.lang.String description,
699                    java.lang.String content, java.lang.String type,
700                    java.lang.String[] structureIds, java.lang.String[] templateIds,
701                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
702                    java.util.Date reviewDate, boolean andOperator)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return getService()
705                                       .searchCount(companyId, groupId, articleId, version, title,
706                            description, content, type, structureIds, templateIds,
707                            displayDateGT, displayDateLT, status, reviewDate, andOperator);
708            }
709    
710            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
711                    long userId, long groupId, java.lang.String articleId, double version,
712                    java.lang.String content)
713                    throws com.liferay.portal.kernel.exception.PortalException,
714                            com.liferay.portal.kernel.exception.SystemException {
715                    return getService()
716                                       .updateArticle(userId, groupId, articleId, version, content);
717            }
718    
719            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
720                    long userId, long groupId, java.lang.String articleId, double version,
721                    java.lang.String title, java.lang.String description,
722                    java.lang.String content, java.lang.String type,
723                    java.lang.String structureId, java.lang.String templateId,
724                    int displayDateMonth, int displayDateDay, int displayDateYear,
725                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
726                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
727                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
728                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
729                    int reviewDateMinute, boolean neverReview, boolean indexable,
730                    boolean smallImage, java.lang.String smallImageURL,
731                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
732                    java.lang.String articleURL,
733                    com.liferay.portal.service.ServiceContext serviceContext)
734                    throws com.liferay.portal.kernel.exception.PortalException,
735                            com.liferay.portal.kernel.exception.SystemException {
736                    return getService()
737                                       .updateArticle(userId, groupId, articleId, version, title,
738                            description, content, type, structureId, templateId,
739                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
740                            displayDateMinute, expirationDateMonth, expirationDateDay,
741                            expirationDateYear, expirationDateHour, expirationDateMinute,
742                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
743                            reviewDateHour, reviewDateMinute, neverReview, indexable,
744                            smallImage, smallImageURL, smallFile, images, articleURL,
745                            serviceContext);
746            }
747    
748            public static void updateAsset(long userId,
749                    com.liferay.portlet.journal.model.JournalArticle article,
750                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
751                    throws com.liferay.portal.kernel.exception.PortalException,
752                            com.liferay.portal.kernel.exception.SystemException {
753                    getService()
754                            .updateAsset(userId, article, assetCategoryIds, assetTagNames);
755            }
756    
757            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
758                    long groupId, java.lang.String articleId, double version,
759                    java.lang.String content)
760                    throws com.liferay.portal.kernel.exception.PortalException,
761                            com.liferay.portal.kernel.exception.SystemException {
762                    return getService().updateContent(groupId, articleId, version, content);
763            }
764    
765            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
766                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
767                    int status, java.lang.String articleURL,
768                    com.liferay.portal.service.ServiceContext serviceContext)
769                    throws com.liferay.portal.kernel.exception.PortalException,
770                            com.liferay.portal.kernel.exception.SystemException {
771                    return getService()
772                                       .updateStatus(userId, article, status, articleURL,
773                            serviceContext);
774            }
775    
776            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
777                    long userId, long classPK, int status,
778                    com.liferay.portal.service.ServiceContext serviceContext)
779                    throws com.liferay.portal.kernel.exception.PortalException,
780                            com.liferay.portal.kernel.exception.SystemException {
781                    return getService().updateStatus(userId, classPK, status, serviceContext);
782            }
783    
784            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
785                    long userId, long groupId, java.lang.String articleId, double version,
786                    int status, java.lang.String articleURL,
787                    com.liferay.portal.service.ServiceContext serviceContext)
788                    throws com.liferay.portal.kernel.exception.PortalException,
789                            com.liferay.portal.kernel.exception.SystemException {
790                    return getService()
791                                       .updateStatus(userId, groupId, articleId, version, status,
792                            articleURL, serviceContext);
793            }
794    
795            public static JournalArticleLocalService getService() {
796                    if (_service == null) {
797                            _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
798                    }
799    
800                    return _service;
801            }
802    
803            public void setService(JournalArticleLocalService service) {
804                    _service = service;
805            }
806    
807            private static JournalArticleLocalService _service;
808    }