1   /**
2    * Copyright (c) 2000-2008 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.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface JournalFeedLocalService {
57      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
58          com.liferay.portlet.journal.model.JournalFeed journalFeed)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
62          long id);
63  
64      public void deleteJournalFeed(long id)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteJournalFeed(
69          com.liferay.portlet.journal.model.JournalFeed journalFeed)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portal.PortalException;
84  
85      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
87          int start, int end) throws com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
93          com.liferay.portlet.journal.model.JournalFeed journalFeed)
94          throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
97          long plid, java.lang.String feedId, boolean autoFeedId,
98          java.lang.String name, java.lang.String description,
99          java.lang.String type, java.lang.String structureId,
100         java.lang.String templateId, java.lang.String rendererTemplateId,
101         int delta, java.lang.String orderByCol, java.lang.String orderByType,
102         java.lang.String targetLayoutFriendlyUrl,
103         java.lang.String targetPortletId, java.lang.String contentField,
104         java.lang.String feedType, double feedVersion,
105         boolean addCommunityPermissions, boolean addGuestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
110         long plid, java.lang.String feedId, boolean autoFeedId,
111         java.lang.String name, java.lang.String description,
112         java.lang.String type, java.lang.String structureId,
113         java.lang.String templateId, java.lang.String rendererTemplateId,
114         int delta, java.lang.String orderByCol, java.lang.String orderByType,
115         java.lang.String targetLayoutFriendlyUrl,
116         java.lang.String targetPortletId, java.lang.String contentField,
117         java.lang.String feedType, double feedVersion,
118         java.lang.String[] communityPermissions,
119         java.lang.String[] guestPermissions)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.journal.model.JournalFeed addFeed(
124         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
125         boolean autoFeedId, java.lang.String name,
126         java.lang.String description, java.lang.String type,
127         java.lang.String structureId, java.lang.String templateId,
128         java.lang.String rendererTemplateId, int delta,
129         java.lang.String orderByCol, java.lang.String orderByType,
130         java.lang.String targetLayoutFriendlyUrl,
131         java.lang.String targetPortletId, java.lang.String contentField,
132         java.lang.String feedType, double feedVersion,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public com.liferay.portlet.journal.model.JournalFeed addFeed(
138         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
139         boolean autoFeedId, java.lang.String name,
140         java.lang.String description, java.lang.String type,
141         java.lang.String structureId, java.lang.String templateId,
142         java.lang.String rendererTemplateId, int delta,
143         java.lang.String orderByCol, java.lang.String orderByType,
144         java.lang.String targetLayoutFriendlyUrl,
145         java.lang.String targetPortletId, java.lang.String contentField,
146         java.lang.String feedType, double feedVersion,
147         java.lang.String[] communityPermissions,
148         java.lang.String[] guestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public com.liferay.portlet.journal.model.JournalFeed addFeed(
153         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
154         boolean autoFeedId, java.lang.String name,
155         java.lang.String description, java.lang.String type,
156         java.lang.String structureId, java.lang.String templateId,
157         java.lang.String rendererTemplateId, int delta,
158         java.lang.String orderByCol, java.lang.String orderByType,
159         java.lang.String targetLayoutFriendlyUrl,
160         java.lang.String targetPortletId, java.lang.String contentField,
161         java.lang.String feedType, double feedVersion,
162         java.lang.Boolean addCommunityPermissions,
163         java.lang.Boolean addGuestPermissions,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
170         java.lang.String uuid, long userId, long groupId,
171         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
172         java.lang.String description, java.lang.String type,
173         java.lang.String structureId, java.lang.String templateId,
174         java.lang.String rendererTemplateId, int delta,
175         java.lang.String orderByCol, java.lang.String orderByType,
176         java.lang.String targetLayoutFriendlyUrl,
177         java.lang.String targetPortletId, java.lang.String contentField,
178         java.lang.String feedType, double feedVersion,
179         java.lang.Boolean addCommunityPermissions,
180         java.lang.Boolean addGuestPermissions,
181         java.lang.String[] communityPermissions,
182         java.lang.String[] guestPermissions)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException;
185 
186     public void addFeedResources(long feedId, boolean addCommunityPermissions,
187         boolean addGuestPermissions)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException;
190 
191     public void addFeedResources(
192         com.liferay.portlet.journal.model.JournalFeed feed,
193         boolean addCommunityPermissions, boolean addGuestPermissions)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public void addFeedResources(long feedId,
198         java.lang.String[] communityPermissions,
199         java.lang.String[] guestPermissions)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     public void addFeedResources(
204         com.liferay.portlet.journal.model.JournalFeed feed,
205         java.lang.String[] communityPermissions,
206         java.lang.String[] guestPermissions)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public void deleteFeed(long feedId)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException;
213 
214     public void deleteFeed(long groupId, java.lang.String feedId)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException;
217 
218     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
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 groupId,
229         java.lang.String feedId)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 
233     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
235         throws com.liferay.portal.SystemException;
236 
237     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
239         long groupId) throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
243         long groupId, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public int getFeedsCount(long groupId)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
252         long companyId, long groupId, java.lang.String keywords, int start,
253         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
258         long companyId, long groupId, java.lang.String feedId,
259         java.lang.String name, java.lang.String description,
260         boolean andOperator, int start, int end,
261         com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public int searchCount(long companyId, long groupId,
266         java.lang.String keywords) throws com.liferay.portal.SystemException;
267 
268     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269     public int searchCount(long companyId, long groupId,
270         java.lang.String feedId, java.lang.String name,
271         java.lang.String description, boolean andOperator)
272         throws com.liferay.portal.SystemException;
273 
274     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
275         long groupId, java.lang.String feedId, java.lang.String name,
276         java.lang.String description, java.lang.String type,
277         java.lang.String structureId, java.lang.String templateId,
278         java.lang.String rendererTemplateId, int delta,
279         java.lang.String orderByCol, java.lang.String orderByType,
280         java.lang.String targetLayoutFriendlyUrl,
281         java.lang.String targetPortletId, java.lang.String contentField,
282         java.lang.String feedType, double feedVersion)
283         throws com.liferay.portal.PortalException,
284             com.liferay.portal.SystemException;
285 }