1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * <code>com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl</code>.
42   * Modify methods in that class and rerun ServiceBuilder to populate this class
43   * and all other generated classes.
44   * </p>
45   *
46   * <p>
47   * 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.
48   * </p>
49   *
50   * @author Brian Wing Shun Chan
51   *
52   * @see com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil
53   *
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface JournalFeedLocalService {
58      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
59          com.liferay.portlet.journal.model.JournalFeed journalFeed)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
63          long id);
64  
65      public void deleteJournalFeed(long id)
66          throws com.liferay.portal.SystemException,
67              com.liferay.portal.PortalException;
68  
69      public void deleteJournalFeed(
70          com.liferay.portlet.journal.model.JournalFeed journalFeed)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
94          com.liferay.portlet.journal.model.JournalFeed journalFeed)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
98          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
102         long plid, java.lang.String feedId, boolean autoFeedId,
103         java.lang.String name, java.lang.String description,
104         java.lang.String type, java.lang.String structureId,
105         java.lang.String templateId, java.lang.String rendererTemplateId,
106         int delta, java.lang.String orderByCol, java.lang.String orderByType,
107         java.lang.String targetLayoutFriendlyUrl,
108         java.lang.String targetPortletId, java.lang.String contentField,
109         java.lang.String feedType, double feedVersion,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
115         long plid, java.lang.String feedId, boolean autoFeedId,
116         java.lang.String name, java.lang.String description,
117         java.lang.String type, java.lang.String structureId,
118         java.lang.String templateId, java.lang.String rendererTemplateId,
119         int delta, java.lang.String orderByCol, java.lang.String orderByType,
120         java.lang.String targetLayoutFriendlyUrl,
121         java.lang.String targetPortletId, java.lang.String contentField,
122         java.lang.String feedType, double feedVersion,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.journal.model.JournalFeed addFeed(
129         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
130         boolean autoFeedId, java.lang.String name,
131         java.lang.String description, java.lang.String type,
132         java.lang.String structureId, java.lang.String templateId,
133         java.lang.String rendererTemplateId, int delta,
134         java.lang.String orderByCol, java.lang.String orderByType,
135         java.lang.String targetLayoutFriendlyUrl,
136         java.lang.String targetPortletId, java.lang.String contentField,
137         java.lang.String feedType, double feedVersion,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.journal.model.JournalFeed addFeed(
143         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
144         boolean autoFeedId, java.lang.String name,
145         java.lang.String description, java.lang.String type,
146         java.lang.String structureId, java.lang.String templateId,
147         java.lang.String rendererTemplateId, int delta,
148         java.lang.String orderByCol, java.lang.String orderByType,
149         java.lang.String targetLayoutFriendlyUrl,
150         java.lang.String targetPortletId, java.lang.String contentField,
151         java.lang.String feedType, double feedVersion,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public com.liferay.portlet.journal.model.JournalFeed addFeed(
158         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
159         boolean autoFeedId, java.lang.String name,
160         java.lang.String description, java.lang.String type,
161         java.lang.String structureId, java.lang.String templateId,
162         java.lang.String rendererTemplateId, int delta,
163         java.lang.String orderByCol, java.lang.String orderByType,
164         java.lang.String targetLayoutFriendlyUrl,
165         java.lang.String targetPortletId, java.lang.String contentField,
166         java.lang.String feedType, double feedVersion,
167         java.lang.Boolean addCommunityPermissions,
168         java.lang.Boolean addGuestPermissions,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
175         java.lang.String uuid, long userId, long groupId,
176         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
177         java.lang.String description, java.lang.String type,
178         java.lang.String structureId, java.lang.String templateId,
179         java.lang.String rendererTemplateId, int delta,
180         java.lang.String orderByCol, java.lang.String orderByType,
181         java.lang.String targetLayoutFriendlyUrl,
182         java.lang.String targetPortletId, java.lang.String contentField,
183         java.lang.String feedType, double feedVersion,
184         java.lang.Boolean addCommunityPermissions,
185         java.lang.Boolean addGuestPermissions,
186         java.lang.String[] communityPermissions,
187         java.lang.String[] guestPermissions)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException;
190 
191     public void addFeedResources(long feedId, boolean addCommunityPermissions,
192         boolean addGuestPermissions)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException;
195 
196     public void addFeedResources(
197         com.liferay.portlet.journal.model.JournalFeed feed,
198         boolean addCommunityPermissions, boolean addGuestPermissions)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     public void addFeedResources(long feedId,
203         java.lang.String[] communityPermissions,
204         java.lang.String[] guestPermissions)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     public void addFeedResources(
209         com.liferay.portlet.journal.model.JournalFeed feed,
210         java.lang.String[] communityPermissions,
211         java.lang.String[] guestPermissions)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     public void deleteFeed(long feedId)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException;
218 
219     public void deleteFeed(long groupId, java.lang.String feedId)
220         throws com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException;
222 
223     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
234         java.lang.String feedId)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
240         throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
244         long groupId) throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
248         long groupId, int start, int end)
249         throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public int getFeedsCount(long groupId)
253         throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
257         long companyId, long groupId, java.lang.String keywords, int start,
258         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
263         long companyId, long groupId, java.lang.String feedId,
264         java.lang.String name, java.lang.String description,
265         boolean andOperator, int start, int end,
266         com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public int searchCount(long companyId, long groupId,
271         java.lang.String keywords) throws com.liferay.portal.SystemException;
272 
273     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274     public int searchCount(long companyId, long groupId,
275         java.lang.String feedId, java.lang.String name,
276         java.lang.String description, boolean andOperator)
277         throws com.liferay.portal.SystemException;
278 
279     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
280         long groupId, java.lang.String feedId, java.lang.String name,
281         java.lang.String description, java.lang.String type,
282         java.lang.String structureId, java.lang.String templateId,
283         java.lang.String rendererTemplateId, int delta,
284         java.lang.String orderByCol, java.lang.String orderByType,
285         java.lang.String targetLayoutFriendlyUrl,
286         java.lang.String targetPortletId, java.lang.String contentField,
287         java.lang.String feedType, double feedVersion)
288         throws com.liferay.portal.PortalException,
289             com.liferay.portal.SystemException;
290 }