1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalFeedLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface JournalFeedLocalService {
50      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
51          com.liferay.portlet.journal.model.JournalFeed journalFeed)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
55          long id);
56  
57      public void deleteJournalFeed(long id)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteJournalFeed(
62          com.liferay.portlet.journal.model.JournalFeed journalFeed)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
99          int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public int getJournalFeedsCount()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
107         com.liferay.portlet.journal.model.JournalFeed journalFeed)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
111         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
115         long groupId, 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         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public com.liferay.portlet.journal.model.JournalFeed addFeed(
128         java.lang.String uuid, long userId, long groupId,
129         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
130         java.lang.String description, java.lang.String type,
131         java.lang.String structureId, java.lang.String templateId,
132         java.lang.String rendererTemplateId, int delta,
133         java.lang.String orderByCol, java.lang.String orderByType,
134         java.lang.String targetLayoutFriendlyUrl,
135         java.lang.String targetPortletId, java.lang.String contentField,
136         java.lang.String feedType, double feedVersion,
137         com.liferay.portal.service.ServiceContext serviceContext)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public void addFeedResources(long feedId, boolean addCommunityPermissions,
142         boolean addGuestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void addFeedResources(
147         com.liferay.portlet.journal.model.JournalFeed feed,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException;
151 
152     public void addFeedResources(long feedId,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException;
157 
158     public void addFeedResources(
159         com.liferay.portlet.journal.model.JournalFeed feed,
160         java.lang.String[] communityPermissions,
161         java.lang.String[] guestPermissions)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException;
164 
165     public void deleteFeed(long feedId)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException;
168 
169     public void deleteFeed(long groupId, java.lang.String feedId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
184         java.lang.String feedId)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
194         long groupId)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
199         long groupId, int start, int end)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public int getFeedsCount(long groupId)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
208         long companyId, long groupId, java.lang.String keywords, int start,
209         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
214         long companyId, long groupId, java.lang.String feedId,
215         java.lang.String name, java.lang.String description,
216         boolean andOperator, int start, int end,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public int searchCount(long companyId, long groupId,
222         java.lang.String keywords)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public int searchCount(long companyId, long groupId,
227         java.lang.String feedId, java.lang.String name,
228         java.lang.String description, boolean andOperator)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
232         long groupId, java.lang.String feedId, java.lang.String name,
233         java.lang.String description, java.lang.String type,
234         java.lang.String structureId, java.lang.String templateId,
235         java.lang.String rendererTemplateId, int delta,
236         java.lang.String orderByCol, java.lang.String orderByType,
237         java.lang.String targetLayoutFriendlyUrl,
238         java.lang.String targetPortletId, java.lang.String contentField,
239         java.lang.String feedType, double feedVersion,
240         com.liferay.portal.service.ServiceContext serviceContext)
241         throws com.liferay.portal.kernel.exception.PortalException,
242             com.liferay.portal.kernel.exception.SystemException;
243 }