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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.jsonwebservice.JSONWebServiceMode;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    import com.liferay.portal.security.ac.AccessControlled;
027    import com.liferay.portal.service.BaseService;
028    
029    /**
030     * Provides the remote service interface for JournalFeed. Methods of this
031     * service are expected to have security checks based on the propagated JAAS
032     * credentials because this service can be accessed remotely.
033     *
034     * @author Brian Wing Shun Chan
035     * @see JournalFeedServiceUtil
036     * @see com.liferay.portlet.journal.service.base.JournalFeedServiceBaseImpl
037     * @see com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @AccessControlled
042    @JSONWebService
043    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
044            PortalException.class, SystemException.class})
045    public interface JournalFeedService extends BaseService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link JournalFeedServiceUtil} to access the journal feed remote service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalFeedServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Returns the Spring bean ID for this bean.
054            *
055            * @return the Spring bean ID for this bean
056            */
057            public java.lang.String getBeanIdentifier();
058    
059            /**
060            * Sets the Spring bean ID for this bean.
061            *
062            * @param beanIdentifier the Spring bean ID for this bean
063            */
064            public void setBeanIdentifier(java.lang.String beanIdentifier);
065    
066            public com.liferay.portlet.journal.model.JournalFeed addFeed(long groupId,
067                    java.lang.String feedId, boolean autoFeedId, java.lang.String name,
068                    java.lang.String description, java.lang.String type,
069                    java.lang.String structureId, java.lang.String templateId,
070                    java.lang.String rendererTemplateId, int delta,
071                    java.lang.String orderByCol, java.lang.String orderByType,
072                    java.lang.String targetLayoutFriendlyUrl,
073                    java.lang.String targetPortletId, java.lang.String contentField,
074                    java.lang.String feedType, double feedVersion,
075                    com.liferay.portal.service.ServiceContext serviceContext)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public void deleteFeed(long feedId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * @deprecated As of 6.2.0, replaced by {@link #deleteFeed(long, String)}
085            */
086            @com.liferay.portal.kernel.jsonwebservice.JSONWebService(mode = JSONWebServiceMode.IGNORE)
087            public void deleteFeed(long groupId, long feedId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public void deleteFeed(long groupId, java.lang.String feedId)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * @deprecated As of 6.2.0, replaced by {@link #getFeed(long, String)}
102            */
103            @com.liferay.portal.kernel.jsonwebservice.JSONWebService(mode = JSONWebServiceMode.IGNORE)
104            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
106                    long feedId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
112                    java.lang.String feedId)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
117                    long groupId, java.lang.String feedId, java.lang.String name,
118                    java.lang.String description, java.lang.String type,
119                    java.lang.String structureId, java.lang.String templateId,
120                    java.lang.String rendererTemplateId, int delta,
121                    java.lang.String orderByCol, java.lang.String orderByType,
122                    java.lang.String targetLayoutFriendlyUrl,
123                    java.lang.String targetPortletId, java.lang.String contentField,
124                    java.lang.String feedType, double feedVersion,
125                    com.liferay.portal.service.ServiceContext serviceContext)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    }