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     * The utility for the journal feed remote service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalFeedService
032     * @see com.liferay.portlet.journal.service.base.JournalFeedServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl
034     * @generated
035     */
036    public class JournalFeedServiceUtil {
037            public static com.liferay.portlet.journal.model.JournalFeed addFeed(
038                    long groupId, java.lang.String feedId, boolean autoFeedId,
039                    java.lang.String name, java.lang.String description,
040                    java.lang.String type, java.lang.String structureId,
041                    java.lang.String templateId, java.lang.String rendererTemplateId,
042                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
043                    java.lang.String targetLayoutFriendlyUrl,
044                    java.lang.String targetPortletId, java.lang.String contentField,
045                    java.lang.String feedType, double feedVersion,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException {
049                    return getService()
050                                       .addFeed(groupId, feedId, autoFeedId, name, description,
051                            type, structureId, templateId, rendererTemplateId, delta,
052                            orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
053                            contentField, feedType, feedVersion, serviceContext);
054            }
055    
056            public static void deleteFeed(long groupId, long feedId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    getService().deleteFeed(groupId, feedId);
060            }
061    
062            public static void deleteFeed(long groupId, java.lang.String feedId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    getService().deleteFeed(groupId, feedId);
066            }
067    
068            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
069                    long groupId, long feedId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return getService().getFeed(groupId, feedId);
073            }
074    
075            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
076                    long groupId, java.lang.String feedId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return getService().getFeed(groupId, feedId);
080            }
081    
082            public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
083                    long groupId, java.lang.String feedId, java.lang.String name,
084                    java.lang.String description, java.lang.String type,
085                    java.lang.String structureId, java.lang.String templateId,
086                    java.lang.String rendererTemplateId, int delta,
087                    java.lang.String orderByCol, java.lang.String orderByType,
088                    java.lang.String targetLayoutFriendlyUrl,
089                    java.lang.String targetPortletId, java.lang.String contentField,
090                    java.lang.String feedType, double feedVersion,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return getService()
095                                       .updateFeed(groupId, feedId, name, description, type,
096                            structureId, templateId, rendererTemplateId, delta, orderByCol,
097                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
098                            contentField, feedType, feedVersion, serviceContext);
099            }
100    
101            public static JournalFeedService getService() {
102                    if (_service == null) {
103                            _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
104                    }
105    
106                    return _service;
107            }
108    
109            public void setService(JournalFeedService service) {
110                    _service = service;
111            }
112    
113            private static JournalFeedService _service;
114    }