001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface JournalFeedLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
061 com.liferay.portlet.journal.model.JournalFeed journalFeed)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
071 long id);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
083 long id)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
096 com.liferay.portlet.journal.model.JournalFeed journalFeed)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.journal.model.JournalFeed fetchJournalFeed(
178 long id) throws com.liferay.portal.kernel.exception.SystemException;
179
180
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.journal.model.JournalFeed fetchJournalFeedByUuidAndCompanyId(
190 java.lang.String uuid, long companyId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.journal.model.JournalFeed fetchJournalFeedByUuidAndGroupId(
203 java.lang.String uuid, long groupId)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218
219 @Override
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portal.model.PersistedModel getPersistedModel(
222 java.io.Serializable primaryKeyObj)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225
226
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndCompanyId(
237 java.lang.String uuid, long companyId)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
252 java.lang.String uuid, long groupId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
270 int start, int end)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getJournalFeedsCount()
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283
290 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
291 public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
292 com.liferay.portlet.journal.model.JournalFeed journalFeed)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295
300 public java.lang.String getBeanIdentifier();
301
302
307 public void setBeanIdentifier(java.lang.String beanIdentifier);
308
309 public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
310 long groupId, java.lang.String feedId, boolean autoFeedId,
311 java.lang.String name, java.lang.String description,
312 java.lang.String type, java.lang.String structureId,
313 java.lang.String templateId, java.lang.String rendererTemplateId,
314 int delta, java.lang.String orderByCol, java.lang.String orderByType,
315 java.lang.String targetLayoutFriendlyUrl,
316 java.lang.String targetPortletId, java.lang.String contentField,
317 java.lang.String feedFormat, double feedVersion,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 public void addFeedResources(
323 com.liferay.portlet.journal.model.JournalFeed feed,
324 boolean addGroupPermissions, boolean addGuestPermissions)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public void addFeedResources(
329 com.liferay.portlet.journal.model.JournalFeed feed,
330 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void addFeedResources(long feedId, boolean addGroupPermissions,
335 boolean addGuestPermissions)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 public void addFeedResources(long feedId,
340 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344 @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
345 public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public void deleteFeed(long feedId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352
353 public void deleteFeed(long groupId, java.lang.String feedId)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public com.liferay.portlet.journal.model.JournalFeed fetchFeed(
359 long groupId, java.lang.String feedId)
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
369 java.lang.String feedId)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
379 long groupId)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
384 long groupId, int start, int end)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388 public int getFeedsCount(long groupId)
389 throws com.liferay.portal.kernel.exception.SystemException;
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
393 long companyId, long groupId, java.lang.String keywords, int start,
394 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
399 long companyId, long groupId, java.lang.String feedId,
400 java.lang.String name, java.lang.String description,
401 boolean andOperator, int start, int end,
402 com.liferay.portal.kernel.util.OrderByComparator obc)
403 throws com.liferay.portal.kernel.exception.SystemException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public int searchCount(long companyId, long groupId,
407 java.lang.String keywords)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public int searchCount(long companyId, long groupId,
412 java.lang.String feedId, java.lang.String name,
413 java.lang.String description, boolean andOperator)
414 throws com.liferay.portal.kernel.exception.SystemException;
415
416 public com.liferay.portlet.journal.model.JournalFeed updateFeed(
417 long groupId, java.lang.String feedId, java.lang.String name,
418 java.lang.String description, java.lang.String type,
419 java.lang.String structureId, java.lang.String templateId,
420 java.lang.String rendererTemplateId, int delta,
421 java.lang.String orderByCol, java.lang.String orderByType,
422 java.lang.String targetLayoutFriendlyUrl,
423 java.lang.String targetPortletId, java.lang.String contentField,
424 java.lang.String feedFormat, double feedVersion,
425 com.liferay.portal.service.ServiceContext serviceContext)
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException;
428 }