001    /**
002     * Copyright (c) 2000-2010 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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       JournalFeedLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface JournalFeedLocalService {
043            public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
044                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
048                    long id);
049    
050            public void deleteJournalFeed(long id)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteJournalFeed(
055                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
086                    java.lang.String uuid, long groupId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
092                    int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public int getJournalFeedsCount()
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
100                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
104                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
108                    long groupId, java.lang.String feedId, boolean autoFeedId,
109                    java.lang.String name, java.lang.String description,
110                    java.lang.String type, java.lang.String structureId,
111                    java.lang.String templateId, java.lang.String rendererTemplateId,
112                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
113                    java.lang.String targetLayoutFriendlyUrl,
114                    java.lang.String targetPortletId, java.lang.String contentField,
115                    java.lang.String feedType, double feedVersion,
116                    com.liferay.portal.service.ServiceContext serviceContext)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void addFeedResources(long feedId, boolean addCommunityPermissions,
121                    boolean addGuestPermissions)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            public void addFeedResources(
126                    com.liferay.portlet.journal.model.JournalFeed feed,
127                    boolean addCommunityPermissions, boolean addGuestPermissions)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public void addFeedResources(long feedId,
132                    java.lang.String[] communityPermissions,
133                    java.lang.String[] guestPermissions)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public void addFeedResources(
138                    com.liferay.portlet.journal.model.JournalFeed feed,
139                    java.lang.String[] communityPermissions,
140                    java.lang.String[] guestPermissions)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void deleteFeed(long feedId)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            public void deleteFeed(long groupId, java.lang.String feedId)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    
152            public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException;
160    
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
163                    java.lang.String feedId)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
173                    long groupId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
178                    long groupId, int start, int end)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182            public int getFeedsCount(long groupId)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
187                    long companyId, long groupId, java.lang.String keywords, int start,
188                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
193                    long companyId, long groupId, java.lang.String feedId,
194                    java.lang.String name, java.lang.String description,
195                    boolean andOperator, int start, int end,
196                    com.liferay.portal.kernel.util.OrderByComparator obc)
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200            public int searchCount(long companyId, long groupId,
201                    java.lang.String keywords)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public int searchCount(long companyId, long groupId,
206                    java.lang.String feedId, java.lang.String name,
207                    java.lang.String description, boolean andOperator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
211                    long groupId, java.lang.String feedId, java.lang.String name,
212                    java.lang.String description, java.lang.String type,
213                    java.lang.String structureId, java.lang.String templateId,
214                    java.lang.String rendererTemplateId, int delta,
215                    java.lang.String orderByCol, java.lang.String orderByType,
216                    java.lang.String targetLayoutFriendlyUrl,
217                    java.lang.String targetPortletId, java.lang.String contentField,
218                    java.lang.String feedType, double feedVersion,
219                    com.liferay.portal.service.ServiceContext serviceContext)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    }