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