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