001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for JournalFeed. This utility wraps
024     * {@link com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
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    @ProviderType
037    public class JournalFeedServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.journal.model.JournalFeed addFeed(
063                    long groupId, java.lang.String feedId, boolean autoFeedId,
064                    java.lang.String name, java.lang.String description,
065                    java.lang.String type, java.lang.String structureId,
066                    java.lang.String templateId, java.lang.String rendererTemplateId,
067                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
068                    java.lang.String targetLayoutFriendlyUrl,
069                    java.lang.String targetPortletId, java.lang.String contentField,
070                    java.lang.String feedType, double feedVersion,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService()
075                                       .addFeed(groupId, feedId, autoFeedId, name, description,
076                            type, structureId, templateId, rendererTemplateId, delta,
077                            orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
078                            contentField, feedType, feedVersion, serviceContext);
079            }
080    
081            public static void deleteFeed(long feedId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService().deleteFeed(feedId);
085            }
086    
087            /**
088            * @deprecated As of 6.2.0, replaced by {@link #deleteFeed(long, String)}
089            */
090            public static void deleteFeed(long groupId, long feedId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    getService().deleteFeed(groupId, feedId);
094            }
095    
096            public static void deleteFeed(long groupId, java.lang.String feedId)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    getService().deleteFeed(groupId, feedId);
100            }
101    
102            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
103                    long feedId)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return getService().getFeed(feedId);
107            }
108    
109            /**
110            * @deprecated As of 6.2.0, replaced by {@link #getFeed(long, String)}
111            */
112            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
113                    long groupId, long feedId)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException {
116                    return getService().getFeed(groupId, feedId);
117            }
118    
119            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
120                    long groupId, java.lang.String feedId)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return getService().getFeed(groupId, feedId);
124            }
125    
126            public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
127                    long groupId, java.lang.String feedId, java.lang.String name,
128                    java.lang.String description, java.lang.String type,
129                    java.lang.String structureId, java.lang.String templateId,
130                    java.lang.String rendererTemplateId, int delta,
131                    java.lang.String orderByCol, java.lang.String orderByType,
132                    java.lang.String targetLayoutFriendlyUrl,
133                    java.lang.String targetPortletId, java.lang.String contentField,
134                    java.lang.String feedType, double feedVersion,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    return getService()
139                                       .updateFeed(groupId, feedId, name, description, type,
140                            structureId, templateId, rendererTemplateId, delta, orderByCol,
141                            orderByType, targetLayoutFriendlyUrl, targetPortletId,
142                            contentField, feedType, feedVersion, serviceContext);
143            }
144    
145            public static JournalFeedService getService() {
146                    if (_service == null) {
147                            _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
148    
149                            ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
150                                    "_service");
151                    }
152    
153                    return _service;
154            }
155    
156            /**
157             * @deprecated As of 6.2.0
158             */
159            public void setService(JournalFeedService service) {
160            }
161    
162            private static JournalFeedService _service;
163    }