001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * The utility for the journal article local service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
023     *
024     * <p>
025     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalArticleLocalService
030     * @see com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
031     * @see com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
032     * @generated
033     */
034    public class JournalArticleLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the journal article to the database. Also notifies the appropriate model listeners.
043            *
044            * @param journalArticle the journal article
045            * @return the journal article that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
049                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addJournalArticle(journalArticle);
052            }
053    
054            /**
055            * Creates a new journal article with the primary key. Does not add the journal article to the database.
056            *
057            * @param id the primary key for the new journal article
058            * @return the new journal article
059            */
060            public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
061                    long id) {
062                    return getService().createJournalArticle(id);
063            }
064    
065            /**
066            * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param id the primary key of the journal article
069            * @throws PortalException if a journal article with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static void deleteJournalArticle(long id)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    getService().deleteJournalArticle(id);
076            }
077    
078            /**
079            * Deletes the journal article from the database. Also notifies the appropriate model listeners.
080            *
081            * @param journalArticle the journal article
082            * @throws SystemException if a system exception occurred
083            */
084            public static void deleteJournalArticle(
085                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    getService().deleteJournalArticle(journalArticle);
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public static java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public static java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().dynamicQuery(dynamicQuery, start, end);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public static java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getService()
145                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146            }
147    
148            /**
149            * Returns the number of rows that match the dynamic query.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the number of rows that match the dynamic query
153            * @throws SystemException if a system exception occurred
154            */
155            public static long dynamicQueryCount(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getService().dynamicQueryCount(dynamicQuery);
159            }
160    
161            /**
162            * Returns the journal article with the primary key.
163            *
164            * @param id the primary key of the journal article
165            * @return the journal article
166            * @throws PortalException if a journal article with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
170                    long id)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return getService().getJournalArticle(id);
174            }
175    
176            public static com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the journal article with the UUID in the group.
185            *
186            * @param uuid the UUID of journal article
187            * @param groupId the group id of the journal article
188            * @return the journal article
189            * @throws PortalException if a journal article with the UUID in the group could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
197            }
198    
199            /**
200            * Returns a range of all the journal articles.
201            *
202            * <p>
203            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
204            * </p>
205            *
206            * @param start the lower bound of the range of journal articles
207            * @param end the upper bound of the range of journal articles (not inclusive)
208            * @return the range of journal articles
209            * @throws SystemException if a system exception occurred
210            */
211            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
212                    int start, int end)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getJournalArticles(start, end);
215            }
216    
217            /**
218            * Returns the number of journal articles.
219            *
220            * @return the number of journal articles
221            * @throws SystemException if a system exception occurred
222            */
223            public static int getJournalArticlesCount()
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getService().getJournalArticlesCount();
226            }
227    
228            /**
229            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param journalArticle the journal article
232            * @return the journal article that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
236                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getService().updateJournalArticle(journalArticle);
239            }
240    
241            /**
242            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
243            *
244            * @param journalArticle the journal article
245            * @param merge whether to merge the journal article with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
246            * @return the journal article that was updated
247            * @throws SystemException if a system exception occurred
248            */
249            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
250                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
251                    boolean merge)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return getService().updateJournalArticle(journalArticle, merge);
254            }
255    
256            /**
257            * Returns the Spring bean ID for this bean.
258            *
259            * @return the Spring bean ID for this bean
260            */
261            public static java.lang.String getBeanIdentifier() {
262                    return getService().getBeanIdentifier();
263            }
264    
265            /**
266            * Sets the Spring bean ID for this bean.
267            *
268            * @param beanIdentifier the Spring bean ID for this bean
269            */
270            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271                    getService().setBeanIdentifier(beanIdentifier);
272            }
273    
274            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
275                    long userId, long groupId, java.lang.String articleId,
276                    boolean autoArticleId, double version, java.lang.String title,
277                    java.lang.String description, java.lang.String content,
278                    java.lang.String type, java.lang.String structureId,
279                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
280                    int displayDateYear, int displayDateHour, int displayDateMinute,
281                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
282                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
283                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
284                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
285                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
286                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
287                    java.lang.String articleURL,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return getService()
292                                       .addArticle(userId, groupId, articleId, autoArticleId,
293                            version, title, description, content, type, structureId,
294                            templateId, displayDateMonth, displayDateDay, displayDateYear,
295                            displayDateHour, displayDateMinute, expirationDateMonth,
296                            expirationDateDay, expirationDateYear, expirationDateHour,
297                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
298                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
299                            indexable, smallImage, smallImageURL, smallFile, images,
300                            articleURL, serviceContext);
301            }
302    
303            public static void addArticleResources(
304                    com.liferay.portlet.journal.model.JournalArticle article,
305                    boolean addCommunityPermissions, boolean addGuestPermissions)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    getService()
309                            .addArticleResources(article, addCommunityPermissions,
310                            addGuestPermissions);
311            }
312    
313            public static void addArticleResources(
314                    com.liferay.portlet.journal.model.JournalArticle article,
315                    java.lang.String[] communityPermissions,
316                    java.lang.String[] guestPermissions)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    getService()
320                            .addArticleResources(article, communityPermissions, guestPermissions);
321            }
322    
323            public static void addArticleResources(long groupId,
324                    java.lang.String articleId, boolean addCommunityPermissions,
325                    boolean addGuestPermissions)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    getService()
329                            .addArticleResources(groupId, articleId, addCommunityPermissions,
330                            addGuestPermissions);
331            }
332    
333            public static void addArticleResources(long groupId,
334                    java.lang.String articleId, java.lang.String[] communityPermissions,
335                    java.lang.String[] guestPermissions)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    getService()
339                            .addArticleResources(groupId, articleId, communityPermissions,
340                            guestPermissions);
341            }
342    
343            public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
344                    long groupId, java.lang.String articleId, double version)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return getService()
348                                       .checkArticleResourcePrimKey(groupId, articleId, version);
349            }
350    
351            public static void checkArticles()
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    getService().checkArticles();
355            }
356    
357            public static void checkNewLine(long groupId, java.lang.String articleId,
358                    double version)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    getService().checkNewLine(groupId, articleId, version);
362            }
363    
364            public static void checkStructure(long groupId, java.lang.String articleId,
365                    double version)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    getService().checkStructure(groupId, articleId, version);
369            }
370    
371            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
372                    long userId, long groupId, java.lang.String oldArticleId,
373                    java.lang.String newArticleId, boolean autoArticleId, double version)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException {
376                    return getService()
377                                       .copyArticle(userId, groupId, oldArticleId, newArticleId,
378                            autoArticleId, version);
379            }
380    
381            public static void deleteArticle(
382                    com.liferay.portlet.journal.model.JournalArticle article,
383                    java.lang.String articleURL,
384                    com.liferay.portal.service.ServiceContext serviceContext)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    getService().deleteArticle(article, articleURL, serviceContext);
388            }
389    
390            public static void deleteArticle(long groupId, java.lang.String articleId,
391                    double version, java.lang.String articleURL,
392                    com.liferay.portal.service.ServiceContext serviceContext)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    getService()
396                            .deleteArticle(groupId, articleId, version, articleURL,
397                            serviceContext);
398            }
399    
400            public static void deleteArticle(long groupId, java.lang.String articleId,
401                    com.liferay.portal.service.ServiceContext serviceContext)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    getService().deleteArticle(groupId, articleId, serviceContext);
405            }
406    
407            public static void deleteArticles(long groupId)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    getService().deleteArticles(groupId);
411            }
412    
413            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
414                    long userId, long groupId, java.lang.String articleId, double version,
415                    java.lang.String articleURL,
416                    com.liferay.portal.service.ServiceContext serviceContext)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    return getService()
420                                       .expireArticle(userId, groupId, articleId, version,
421                            articleURL, serviceContext);
422            }
423    
424            public static void expireArticle(long userId, long groupId,
425                    java.lang.String articleId, java.lang.String articleURL,
426                    com.liferay.portal.service.ServiceContext serviceContext)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    getService()
430                            .expireArticle(userId, groupId, articleId, articleURL,
431                            serviceContext);
432            }
433    
434            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
435                    long id)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    return getService().getArticle(id);
439            }
440    
441            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
442                    long groupId, java.lang.String articleId)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return getService().getArticle(groupId, articleId);
446            }
447    
448            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
449                    long groupId, java.lang.String articleId, double version)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return getService().getArticle(groupId, articleId, version);
453            }
454    
455            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
456                    long groupId, java.lang.String urlTitle)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return getService().getArticleByUrlTitle(groupId, urlTitle);
460            }
461    
462            public static java.lang.String getArticleContent(
463                    com.liferay.portlet.journal.model.JournalArticle article,
464                    java.lang.String templateId, java.lang.String viewMode,
465                    java.lang.String languageId,
466                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
467                    throws com.liferay.portal.kernel.exception.PortalException,
468                            com.liferay.portal.kernel.exception.SystemException {
469                    return getService()
470                                       .getArticleContent(article, templateId, viewMode,
471                            languageId, themeDisplay);
472            }
473    
474            public static java.lang.String getArticleContent(long groupId,
475                    java.lang.String articleId, double version, java.lang.String viewMode,
476                    java.lang.String templateId, java.lang.String languageId,
477                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException {
480                    return getService()
481                                       .getArticleContent(groupId, articleId, version, viewMode,
482                            templateId, languageId, themeDisplay);
483            }
484    
485            public static java.lang.String getArticleContent(long groupId,
486                    java.lang.String articleId, double version, java.lang.String viewMode,
487                    java.lang.String languageId,
488                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return getService()
492                                       .getArticleContent(groupId, articleId, version, viewMode,
493                            languageId, themeDisplay);
494            }
495    
496            public static java.lang.String getArticleContent(long groupId,
497                    java.lang.String articleId, java.lang.String viewMode,
498                    java.lang.String templateId, java.lang.String languageId,
499                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    return getService()
503                                       .getArticleContent(groupId, articleId, viewMode, templateId,
504                            languageId, themeDisplay);
505            }
506    
507            public static java.lang.String getArticleContent(long groupId,
508                    java.lang.String articleId, java.lang.String viewMode,
509                    java.lang.String languageId,
510                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException {
513                    return getService()
514                                       .getArticleContent(groupId, articleId, viewMode, languageId,
515                            themeDisplay);
516            }
517    
518            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
519                    com.liferay.portlet.journal.model.JournalArticle article,
520                    java.lang.String templateId, java.lang.String viewMode,
521                    java.lang.String languageId, int page, java.lang.String xmlRequest,
522                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    return getService()
526                                       .getArticleDisplay(article, templateId, viewMode,
527                            languageId, page, xmlRequest, themeDisplay);
528            }
529    
530            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
531                    long groupId, java.lang.String articleId, double version,
532                    java.lang.String templateId, java.lang.String viewMode,
533                    java.lang.String languageId, int page, java.lang.String xmlRequest,
534                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException {
537                    return getService()
538                                       .getArticleDisplay(groupId, articleId, version, templateId,
539                            viewMode, languageId, page, xmlRequest, themeDisplay);
540            }
541    
542            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
543                    long groupId, java.lang.String articleId, double version,
544                    java.lang.String templateId, java.lang.String viewMode,
545                    java.lang.String languageId,
546                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
547                    throws com.liferay.portal.kernel.exception.PortalException,
548                            com.liferay.portal.kernel.exception.SystemException {
549                    return getService()
550                                       .getArticleDisplay(groupId, articleId, version, templateId,
551                            viewMode, languageId, themeDisplay);
552            }
553    
554            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
555                    long groupId, java.lang.String articleId, java.lang.String viewMode,
556                    java.lang.String languageId, int page, java.lang.String xmlRequest,
557                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException {
560                    return getService()
561                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
562                            page, xmlRequest, themeDisplay);
563            }
564    
565            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
566                    long groupId, java.lang.String articleId, java.lang.String templateId,
567                    java.lang.String viewMode, java.lang.String languageId, int page,
568                    java.lang.String xmlRequest,
569                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
570                    throws com.liferay.portal.kernel.exception.PortalException,
571                            com.liferay.portal.kernel.exception.SystemException {
572                    return getService()
573                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
574                            languageId, page, xmlRequest, themeDisplay);
575            }
576    
577            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
578                    long groupId, java.lang.String articleId, java.lang.String templateId,
579                    java.lang.String viewMode, java.lang.String languageId,
580                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException {
583                    return getService()
584                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
585                            languageId, themeDisplay);
586            }
587    
588            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
589                    long groupId, java.lang.String articleId, java.lang.String viewMode,
590                    java.lang.String languageId,
591                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
592                    throws com.liferay.portal.kernel.exception.PortalException,
593                            com.liferay.portal.kernel.exception.SystemException {
594                    return getService()
595                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
596                            themeDisplay);
597            }
598    
599            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getService().getArticles();
602            }
603    
604            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
605                    long groupId)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getService().getArticles(groupId);
608            }
609    
610            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
611                    long groupId, int start, int end)
612                    throws com.liferay.portal.kernel.exception.SystemException {
613                    return getService().getArticles(groupId, start, end);
614            }
615    
616            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
617                    long groupId, int start, int end,
618                    com.liferay.portal.kernel.util.OrderByComparator obc)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getService().getArticles(groupId, start, end, obc);
621            }
622    
623            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
624                    long groupId, java.lang.String articleId)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    return getService().getArticles(groupId, articleId);
627            }
628    
629            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
630                    long smallImageId)
631                    throws com.liferay.portal.kernel.exception.SystemException {
632                    return getService().getArticlesBySmallImageId(smallImageId);
633            }
634    
635            public static int getArticlesCount(long groupId)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getService().getArticlesCount(groupId);
638            }
639    
640            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
641                    long companyId, double version, int status, int start, int end)
642                    throws com.liferay.portal.kernel.exception.SystemException {
643                    return getService()
644                                       .getCompanyArticles(companyId, version, status, start, end);
645            }
646    
647            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
648                    long companyId, int status, int start, int end)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getService().getCompanyArticles(companyId, status, start, end);
651            }
652    
653            public static int getCompanyArticlesCount(long companyId, double version,
654                    int status, int start, int end)
655                    throws com.liferay.portal.kernel.exception.SystemException {
656                    return getService()
657                                       .getCompanyArticlesCount(companyId, version, status, start,
658                            end);
659            }
660    
661            public static int getCompanyArticlesCount(long companyId, int status)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    return getService().getCompanyArticlesCount(companyId, status);
664            }
665    
666            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
667                    long groupId, java.lang.String articleId)
668                    throws com.liferay.portal.kernel.exception.PortalException,
669                            com.liferay.portal.kernel.exception.SystemException {
670                    return getService().getDisplayArticle(groupId, articleId);
671            }
672    
673            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
674                    long resourcePrimKey)
675                    throws com.liferay.portal.kernel.exception.PortalException,
676                            com.liferay.portal.kernel.exception.SystemException {
677                    return getService().getLatestArticle(resourcePrimKey);
678            }
679    
680            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
681                    long resourcePrimKey, int status)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException {
684                    return getService().getLatestArticle(resourcePrimKey, status);
685            }
686    
687            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
688                    long resourcePrimKey, int status, boolean preferApproved)
689                    throws com.liferay.portal.kernel.exception.PortalException,
690                            com.liferay.portal.kernel.exception.SystemException {
691                    return getService()
692                                       .getLatestArticle(resourcePrimKey, status, preferApproved);
693            }
694    
695            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
696                    long groupId, java.lang.String articleId)
697                    throws com.liferay.portal.kernel.exception.PortalException,
698                            com.liferay.portal.kernel.exception.SystemException {
699                    return getService().getLatestArticle(groupId, articleId);
700            }
701    
702            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
703                    long groupId, java.lang.String articleId, int status)
704                    throws com.liferay.portal.kernel.exception.PortalException,
705                            com.liferay.portal.kernel.exception.SystemException {
706                    return getService().getLatestArticle(groupId, articleId, status);
707            }
708    
709            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
710                    long groupId, java.lang.String urlTitle, int status)
711                    throws com.liferay.portal.kernel.exception.PortalException,
712                            com.liferay.portal.kernel.exception.SystemException {
713                    return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
714            }
715    
716            public static double getLatestVersion(long groupId,
717                    java.lang.String articleId)
718                    throws com.liferay.portal.kernel.exception.PortalException,
719                            com.liferay.portal.kernel.exception.SystemException {
720                    return getService().getLatestVersion(groupId, articleId);
721            }
722    
723            public static double getLatestVersion(long groupId,
724                    java.lang.String articleId, int status)
725                    throws com.liferay.portal.kernel.exception.PortalException,
726                            com.liferay.portal.kernel.exception.SystemException {
727                    return getService().getLatestVersion(groupId, articleId, status);
728            }
729    
730            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
731                    long groupId, java.lang.String structureId)
732                    throws com.liferay.portal.kernel.exception.SystemException {
733                    return getService().getStructureArticles(groupId, structureId);
734            }
735    
736            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
737                    long groupId, java.lang.String structureId, int start, int end,
738                    com.liferay.portal.kernel.util.OrderByComparator obc)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getService()
741                                       .getStructureArticles(groupId, structureId, start, end, obc);
742            }
743    
744            public static int getStructureArticlesCount(long groupId,
745                    java.lang.String structureId)
746                    throws com.liferay.portal.kernel.exception.SystemException {
747                    return getService().getStructureArticlesCount(groupId, structureId);
748            }
749    
750            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
751                    long groupId, java.lang.String templateId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getService().getTemplateArticles(groupId, templateId);
754            }
755    
756            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
757                    long groupId, java.lang.String templateId, int start, int end,
758                    com.liferay.portal.kernel.util.OrderByComparator obc)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getService()
761                                       .getTemplateArticles(groupId, templateId, start, end, obc);
762            }
763    
764            public static int getTemplateArticlesCount(long groupId,
765                    java.lang.String templateId)
766                    throws com.liferay.portal.kernel.exception.SystemException {
767                    return getService().getTemplateArticlesCount(groupId, templateId);
768            }
769    
770            public static boolean hasArticle(long groupId, java.lang.String articleId)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return getService().hasArticle(groupId, articleId);
773            }
774    
775            public static boolean isLatestVersion(long groupId,
776                    java.lang.String articleId, double version)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException {
779                    return getService().isLatestVersion(groupId, articleId, version);
780            }
781    
782            public static boolean isLatestVersion(long groupId,
783                    java.lang.String articleId, double version, int status)
784                    throws com.liferay.portal.kernel.exception.PortalException,
785                            com.liferay.portal.kernel.exception.SystemException {
786                    return getService().isLatestVersion(groupId, articleId, version, status);
787            }
788    
789            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
790                    long groupId, java.lang.String articleId, double version,
791                    java.lang.String languageId)
792                    throws com.liferay.portal.kernel.exception.PortalException,
793                            com.liferay.portal.kernel.exception.SystemException {
794                    return getService()
795                                       .removeArticleLocale(groupId, articleId, version, languageId);
796            }
797    
798            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
799                    long companyId, long groupId, java.lang.String keywords,
800                    java.lang.Double version, java.lang.String type,
801                    java.lang.String structureId, java.lang.String templateId,
802                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
803                    java.util.Date reviewDate, int start, int end,
804                    com.liferay.portal.kernel.util.OrderByComparator obc)
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    return getService()
807                                       .search(companyId, groupId, keywords, version, type,
808                            structureId, templateId, displayDateGT, displayDateLT, status,
809                            reviewDate, start, end, obc);
810            }
811    
812            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
813                    long companyId, long groupId, java.lang.String articleId,
814                    java.lang.Double version, java.lang.String title,
815                    java.lang.String description, java.lang.String content,
816                    java.lang.String type, java.lang.String structureId,
817                    java.lang.String templateId, java.util.Date displayDateGT,
818                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
819                    boolean andOperator, int start, int end,
820                    com.liferay.portal.kernel.util.OrderByComparator obc)
821                    throws com.liferay.portal.kernel.exception.SystemException {
822                    return getService()
823                                       .search(companyId, groupId, articleId, version, title,
824                            description, content, type, structureId, templateId, displayDateGT,
825                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
826            }
827    
828            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
829                    long companyId, long groupId, java.lang.String articleId,
830                    java.lang.Double version, java.lang.String title,
831                    java.lang.String description, java.lang.String content,
832                    java.lang.String type, java.lang.String[] structureIds,
833                    java.lang.String[] templateIds, java.util.Date displayDateGT,
834                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
835                    boolean andOperator, int start, int end,
836                    com.liferay.portal.kernel.util.OrderByComparator obc)
837                    throws com.liferay.portal.kernel.exception.SystemException {
838                    return getService()
839                                       .search(companyId, groupId, articleId, version, title,
840                            description, content, type, structureIds, templateIds,
841                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
842                            start, end, obc);
843            }
844    
845            /**
846            * @deprecated {@link #search(long, long, String, String, String,
847            LinkedHashMap<String, Object>, int, int, Sort)}
848            */
849            public static com.liferay.portal.kernel.search.Hits search(long companyId,
850                    long groupId, java.lang.String keywords,
851                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
852                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
853                    throws com.liferay.portal.kernel.exception.SystemException {
854                    return getService()
855                                       .search(companyId, groupId, keywords, params, start, end,
856                            sort);
857            }
858    
859            public static com.liferay.portal.kernel.search.Hits search(long companyId,
860                    long groupId, java.lang.String structureId,
861                    java.lang.String templateId, java.lang.String keywords,
862                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
863                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
864                    throws com.liferay.portal.kernel.exception.SystemException {
865                    return getService()
866                                       .search(companyId, groupId, structureId, templateId,
867                            keywords, params, start, end, sort);
868            }
869    
870            /**
871            * @deprecated {@link #search(long, long, String, String, String, String,
872            String, String, String, String, LinkedHashMap<String,
873            Object>, boolean, int, int, Sort)}
874            */
875            public static com.liferay.portal.kernel.search.Hits search(long companyId,
876                    long groupId, java.lang.String articleId, java.lang.String title,
877                    java.lang.String description, java.lang.String content,
878                    java.lang.String type, java.lang.String status,
879                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
880                    boolean andSearch, int start, int end,
881                    com.liferay.portal.kernel.search.Sort sort)
882                    throws com.liferay.portal.kernel.exception.SystemException {
883                    return getService()
884                                       .search(companyId, groupId, articleId, title, description,
885                            content, type, status, params, andSearch, start, end, sort);
886            }
887    
888            public static com.liferay.portal.kernel.search.Hits search(long companyId,
889                    long groupId, java.lang.String articleId, java.lang.String title,
890                    java.lang.String description, java.lang.String content,
891                    java.lang.String type, java.lang.String status,
892                    java.lang.String structureId, java.lang.String templateId,
893                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
894                    boolean andSearch, int start, int end,
895                    com.liferay.portal.kernel.search.Sort sort)
896                    throws com.liferay.portal.kernel.exception.SystemException {
897                    return getService()
898                                       .search(companyId, groupId, articleId, title, description,
899                            content, type, status, structureId, templateId, params, andSearch,
900                            start, end, sort);
901            }
902    
903            public static int searchCount(long companyId, long groupId,
904                    java.lang.String keywords, java.lang.Double version,
905                    java.lang.String type, java.lang.String structureId,
906                    java.lang.String templateId, java.util.Date displayDateGT,
907                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
908                    throws com.liferay.portal.kernel.exception.SystemException {
909                    return getService()
910                                       .searchCount(companyId, groupId, keywords, version, type,
911                            structureId, templateId, displayDateGT, displayDateLT, status,
912                            reviewDate);
913            }
914    
915            public static int searchCount(long companyId, long groupId,
916                    java.lang.String articleId, java.lang.Double version,
917                    java.lang.String title, java.lang.String description,
918                    java.lang.String content, java.lang.String type,
919                    java.lang.String structureId, java.lang.String templateId,
920                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
921                    java.util.Date reviewDate, boolean andOperator)
922                    throws com.liferay.portal.kernel.exception.SystemException {
923                    return getService()
924                                       .searchCount(companyId, groupId, articleId, version, title,
925                            description, content, type, structureId, templateId, displayDateGT,
926                            displayDateLT, status, reviewDate, andOperator);
927            }
928    
929            public static int searchCount(long companyId, long groupId,
930                    java.lang.String articleId, java.lang.Double version,
931                    java.lang.String title, java.lang.String description,
932                    java.lang.String content, java.lang.String type,
933                    java.lang.String[] structureIds, java.lang.String[] templateIds,
934                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
935                    java.util.Date reviewDate, boolean andOperator)
936                    throws com.liferay.portal.kernel.exception.SystemException {
937                    return getService()
938                                       .searchCount(companyId, groupId, articleId, version, title,
939                            description, content, type, structureIds, templateIds,
940                            displayDateGT, displayDateLT, status, reviewDate, andOperator);
941            }
942    
943            public static void subscribe(long userId, long groupId)
944                    throws com.liferay.portal.kernel.exception.PortalException,
945                            com.liferay.portal.kernel.exception.SystemException {
946                    getService().subscribe(userId, groupId);
947            }
948    
949            public static void unsubscribe(long userId, long groupId)
950                    throws com.liferay.portal.kernel.exception.PortalException,
951                            com.liferay.portal.kernel.exception.SystemException {
952                    getService().unsubscribe(userId, groupId);
953            }
954    
955            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
956                    long userId, long groupId, java.lang.String articleId, double version,
957                    java.lang.String content)
958                    throws com.liferay.portal.kernel.exception.PortalException,
959                            com.liferay.portal.kernel.exception.SystemException {
960                    return getService()
961                                       .updateArticle(userId, groupId, articleId, version, content);
962            }
963    
964            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
965                    long userId, long groupId, java.lang.String articleId, double version,
966                    java.lang.String title, java.lang.String description,
967                    java.lang.String content, java.lang.String type,
968                    java.lang.String structureId, java.lang.String templateId,
969                    int displayDateMonth, int displayDateDay, int displayDateYear,
970                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
971                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
972                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
973                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
974                    int reviewDateMinute, boolean neverReview, boolean indexable,
975                    boolean smallImage, java.lang.String smallImageURL,
976                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
977                    java.lang.String articleURL,
978                    com.liferay.portal.service.ServiceContext serviceContext)
979                    throws com.liferay.portal.kernel.exception.PortalException,
980                            com.liferay.portal.kernel.exception.SystemException {
981                    return getService()
982                                       .updateArticle(userId, groupId, articleId, version, title,
983                            description, content, type, structureId, templateId,
984                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
985                            displayDateMinute, expirationDateMonth, expirationDateDay,
986                            expirationDateYear, expirationDateHour, expirationDateMinute,
987                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
988                            reviewDateHour, reviewDateMinute, neverReview, indexable,
989                            smallImage, smallImageURL, smallFile, images, articleURL,
990                            serviceContext);
991            }
992    
993            public static void updateAsset(long userId,
994                    com.liferay.portlet.journal.model.JournalArticle article,
995                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
996                    throws com.liferay.portal.kernel.exception.PortalException,
997                            com.liferay.portal.kernel.exception.SystemException {
998                    getService()
999                            .updateAsset(userId, article, assetCategoryIds, assetTagNames);
1000            }
1001    
1002            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1003                    long groupId, java.lang.String articleId, double version,
1004                    java.lang.String content)
1005                    throws com.liferay.portal.kernel.exception.PortalException,
1006                            com.liferay.portal.kernel.exception.SystemException {
1007                    return getService().updateContent(groupId, articleId, version, content);
1008            }
1009    
1010            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1011                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
1012                    int status, java.lang.String articleURL,
1013                    com.liferay.portal.service.ServiceContext serviceContext)
1014                    throws com.liferay.portal.kernel.exception.PortalException,
1015                            com.liferay.portal.kernel.exception.SystemException {
1016                    return getService()
1017                                       .updateStatus(userId, article, status, articleURL,
1018                            serviceContext);
1019            }
1020    
1021            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1022                    long userId, long classPK, int status,
1023                    com.liferay.portal.service.ServiceContext serviceContext)
1024                    throws com.liferay.portal.kernel.exception.PortalException,
1025                            com.liferay.portal.kernel.exception.SystemException {
1026                    return getService().updateStatus(userId, classPK, status, serviceContext);
1027            }
1028    
1029            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1030                    long userId, long groupId, java.lang.String articleId, double version,
1031                    int status, java.lang.String articleURL,
1032                    com.liferay.portal.service.ServiceContext serviceContext)
1033                    throws com.liferay.portal.kernel.exception.PortalException,
1034                            com.liferay.portal.kernel.exception.SystemException {
1035                    return getService()
1036                                       .updateStatus(userId, groupId, articleId, version, status,
1037                            articleURL, serviceContext);
1038            }
1039    
1040            public static JournalArticleLocalService getService() {
1041                    if (_service == null) {
1042                            _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
1043    
1044                            ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1045                                    "_service");
1046                            MethodCache.remove(JournalArticleLocalService.class);
1047                    }
1048    
1049                    return _service;
1050            }
1051    
1052            public void setService(JournalArticleLocalService service) {
1053                    MethodCache.remove(JournalArticleLocalService.class);
1054    
1055                    _service = service;
1056    
1057                    ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1058                            "_service");
1059                    MethodCache.remove(JournalArticleLocalService.class);
1060            }
1061    
1062            private static JournalArticleLocalService _service;
1063    }