001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface JournalFeedLocalService {
043
050 public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
051 com.liferay.portlet.journal.model.JournalFeed journalFeed)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
061 long id);
062
063
070 public void deleteJournalFeed(long id)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteJournalFeed(
081 com.liferay.portlet.journal.model.JournalFeed journalFeed)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getJournalFeedsCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
209 com.liferay.portlet.journal.model.JournalFeed journalFeed)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
221 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224 public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
225 long groupId, java.lang.String feedId, boolean autoFeedId,
226 java.lang.String name, java.lang.String description,
227 java.lang.String type, java.lang.String structureId,
228 java.lang.String templateId, java.lang.String rendererTemplateId,
229 int delta, java.lang.String orderByCol, java.lang.String orderByType,
230 java.lang.String targetLayoutFriendlyUrl,
231 java.lang.String targetPortletId, java.lang.String contentField,
232 java.lang.String feedType, double feedVersion,
233 com.liferay.portal.service.ServiceContext serviceContext)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void addFeedResources(long feedId, boolean addCommunityPermissions,
238 boolean addGuestPermissions)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void addFeedResources(
243 com.liferay.portlet.journal.model.JournalFeed feed,
244 boolean addCommunityPermissions, boolean addGuestPermissions)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public void addFeedResources(long feedId,
249 java.lang.String[] communityPermissions,
250 java.lang.String[] guestPermissions)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public void addFeedResources(
255 com.liferay.portlet.journal.model.JournalFeed feed,
256 java.lang.String[] communityPermissions,
257 java.lang.String[] guestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void deleteFeed(long feedId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteFeed(long groupId, java.lang.String feedId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
280 java.lang.String feedId)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
290 long groupId)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
295 long groupId, int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public int getFeedsCount(long groupId)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
304 long companyId, long groupId, java.lang.String keywords, int start,
305 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
310 long companyId, long groupId, java.lang.String feedId,
311 java.lang.String name, java.lang.String description,
312 boolean andOperator, int start, int end,
313 com.liferay.portal.kernel.util.OrderByComparator obc)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int searchCount(long companyId, long groupId,
318 java.lang.String keywords)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public int searchCount(long companyId, long groupId,
323 java.lang.String feedId, java.lang.String name,
324 java.lang.String description, boolean andOperator)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 public com.liferay.portlet.journal.model.JournalFeed updateFeed(
328 long groupId, java.lang.String feedId, java.lang.String name,
329 java.lang.String description, java.lang.String type,
330 java.lang.String structureId, java.lang.String templateId,
331 java.lang.String rendererTemplateId, int delta,
332 java.lang.String orderByCol, java.lang.String orderByType,
333 java.lang.String targetLayoutFriendlyUrl,
334 java.lang.String targetPortletId, java.lang.String contentField,
335 java.lang.String feedType, double feedVersion,
336 com.liferay.portal.service.ServiceContext serviceContext)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339 }