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 JournalFeedService} 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       JournalFeedService
030     * @generated
031     */
032    public class JournalFeedServiceUtil {
033            public static com.liferay.portlet.journal.model.JournalFeed addFeed(
034                    long groupId, java.lang.String feedId, boolean autoFeedId,
035                    java.lang.String name, java.lang.String description,
036                    java.lang.String type, java.lang.String structureId,
037                    java.lang.String templateId, java.lang.String rendererTemplateId,
038                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
039                    java.lang.String targetLayoutFriendlyUrl,
040                    java.lang.String targetPortletId, java.lang.String contentField,
041                    java.lang.String feedType, double feedVersion,
042                    com.liferay.portal.service.ServiceContext serviceContext)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return getService()
046                                       .addFeed(groupId, feedId, autoFeedId, name, description,
047                            type, structureId, templateId, rendererTemplateId, delta,
048                            orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
049                            contentField, feedType, feedVersion, serviceContext);
050            }
051    
052            public static void deleteFeed(long groupId, long feedId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    getService().deleteFeed(groupId, feedId);
056            }
057    
058            public static void deleteFeed(long groupId, java.lang.String feedId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    getService().deleteFeed(groupId, feedId);
062            }
063    
064            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
065                    long groupId, long feedId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService().getFeed(groupId, feedId);
069            }
070    
071            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
072                    long groupId, java.lang.String feedId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return getService().getFeed(groupId, feedId);
076            }
077    
078            public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
079                    long groupId, java.lang.String feedId, java.lang.String name,
080                    java.lang.String description, java.lang.String type,
081                    java.lang.String structureId, java.lang.String templateId,
082                    java.lang.String rendererTemplateId, int delta,
083                    java.lang.String orderByCol, java.lang.String orderByType,
084                    java.lang.String targetLayoutFriendlyUrl,
085                    java.lang.String targetPortletId, java.lang.String contentField,
086                    java.lang.String feedType, double feedVersion,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService()
091                                       .updateFeed(groupId, feedId, name, description, type,
092                            structureId, templateId, rendererTemplateId, delta, orderByCol,
093                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
094                            contentField, feedType, feedVersion, serviceContext);
095            }
096    
097            public static JournalFeedService getService() {
098                    if (_service == null) {
099                            _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
100                    }
101    
102                    return _service;
103            }
104    
105            public void setService(JournalFeedService service) {
106                    _service = service;
107            }
108    
109            private static JournalFeedService _service;
110    }