001    /**
002     * Copyright (c) 2000-present 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            public static com.liferay.portlet.journal.model.JournalFeed addFeed(
044                    long groupId, java.lang.String feedId, boolean autoFeedId,
045                    java.lang.String name, java.lang.String description,
046                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
047                    java.lang.String ddmRendererTemplateKey, int delta,
048                    java.lang.String orderByCol, java.lang.String orderByType,
049                    java.lang.String targetLayoutFriendlyUrl,
050                    java.lang.String targetPortletId, java.lang.String contentField,
051                    java.lang.String feedType, double feedVersion,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return getService()
055                                       .addFeed(groupId, feedId, autoFeedId, name, description,
056                            ddmStructureKey, ddmTemplateKey, ddmRendererTemplateKey, delta,
057                            orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
058                            contentField, feedType, feedVersion, serviceContext);
059            }
060    
061            public static void deleteFeed(long feedId)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    getService().deleteFeed(feedId);
064            }
065    
066            /**
067            * @deprecated As of 6.2.0, replaced by {@link #deleteFeed(long, String)}
068            */
069            @Deprecated
070            public static void deleteFeed(long groupId, long feedId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    getService().deleteFeed(groupId, feedId);
073            }
074    
075            public static void deleteFeed(long groupId, java.lang.String feedId)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    getService().deleteFeed(groupId, feedId);
078            }
079    
080            /**
081            * Returns the Spring bean ID for this bean.
082            *
083            * @return the Spring bean ID for this bean
084            */
085            public static java.lang.String getBeanIdentifier() {
086                    return getService().getBeanIdentifier();
087            }
088    
089            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
090                    long feedId) throws com.liferay.portal.kernel.exception.PortalException {
091                    return getService().getFeed(feedId);
092            }
093    
094            /**
095            * @deprecated As of 6.2.0, replaced by {@link #getFeed(long, String)}
096            */
097            @Deprecated
098            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
099                    long groupId, long feedId)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService().getFeed(groupId, feedId);
102            }
103    
104            public static com.liferay.portlet.journal.model.JournalFeed getFeed(
105                    long groupId, java.lang.String feedId)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return getService().getFeed(groupId, feedId);
108            }
109    
110            /**
111            * Sets the Spring bean ID for this bean.
112            *
113            * @param beanIdentifier the Spring bean ID for this bean
114            */
115            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
116                    getService().setBeanIdentifier(beanIdentifier);
117            }
118    
119            public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
120                    long groupId, java.lang.String feedId, java.lang.String name,
121                    java.lang.String description, java.lang.String ddmStructureKey,
122                    java.lang.String ddmTemplateKey,
123                    java.lang.String ddmRendererTemplateKey, int delta,
124                    java.lang.String orderByCol, java.lang.String orderByType,
125                    java.lang.String targetLayoutFriendlyUrl,
126                    java.lang.String targetPortletId, java.lang.String contentField,
127                    java.lang.String feedType, double feedVersion,
128                    com.liferay.portal.service.ServiceContext serviceContext)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return getService()
131                                       .updateFeed(groupId, feedId, name, description,
132                            ddmStructureKey, ddmTemplateKey, ddmRendererTemplateKey, delta,
133                            orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
134                            contentField, feedType, feedVersion, serviceContext);
135            }
136    
137            public static JournalFeedService getService() {
138                    if (_service == null) {
139                            _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
140    
141                            ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
142                                    "_service");
143                    }
144    
145                    return _service;
146            }
147    
148            /**
149             * @deprecated As of 6.2.0
150             */
151            @Deprecated
152            public void setService(JournalFeedService service) {
153            }
154    
155            private static JournalFeedService _service;
156    }