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