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.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 groupId, 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 groupId, 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 groupId,
125         java.lang.String feedId, 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 groupId,
139         java.lang.String feedId, 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 groupId,
154         java.lang.String feedId, 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 void addFeedResources(long feedId, boolean addCommunityPermissions,
170         boolean addGuestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void addFeedResources(
175         com.liferay.portlet.journal.model.JournalFeed feed,
176         boolean addCommunityPermissions, boolean addGuestPermissions)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public void addFeedResources(long feedId,
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(
187         com.liferay.portlet.journal.model.JournalFeed feed,
188         java.lang.String[] communityPermissions,
189         java.lang.String[] guestPermissions)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public void deleteFeed(long feedId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public void deleteFeed(long groupId, java.lang.String feedId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
212         java.lang.String feedId)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
218         throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
222         long groupId) throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
226         long groupId, int start, int end)
227         throws com.liferay.portal.SystemException;
228 
229     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230     public int getFeedsCount(long groupId)
231         throws com.liferay.portal.SystemException;
232 
233     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
235         long companyId, long groupId, java.lang.String keywords, int start,
236         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
241         long companyId, long groupId, java.lang.String feedId,
242         java.lang.String name, java.lang.String description,
243         boolean andOperator, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException;
246 
247     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248     public int searchCount(long companyId, long groupId,
249         java.lang.String keywords) throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public int searchCount(long companyId, long groupId,
253         java.lang.String feedId, java.lang.String name,
254         java.lang.String description, boolean andOperator)
255         throws com.liferay.portal.SystemException;
256 
257     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
258         long groupId, java.lang.String feedId, java.lang.String name,
259         java.lang.String description, java.lang.String type,
260         java.lang.String structureId, java.lang.String templateId,
261         java.lang.String rendererTemplateId, int delta,
262         java.lang.String orderByCol, java.lang.String orderByType,
263         java.lang.String targetLayoutFriendlyUrl,
264         java.lang.String targetPortletId, java.lang.String contentField,
265         java.lang.String feedType, double feedVersion)
266         throws com.liferay.portal.PortalException,
267             com.liferay.portal.SystemException;
268 }