001
014
015 package com.liferay.portlet.blogs.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.service.BaseLocalService;
026 import com.liferay.portal.service.PersistedModelLocalService;
027
028
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface BlogsEntryLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050
051
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
060 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063
069 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
070 long entryId);
071
072
080 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
082 long entryId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086
093 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
095 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099
100
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112
125 @SuppressWarnings("rawtypes")
126 public java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException;
129
130
144 @SuppressWarnings("rawtypes")
145 public java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151
158 public long dynamicQueryCount(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162
170 public long dynamicQueryCount(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172 com.liferay.portal.kernel.dao.orm.Projection projection)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
177 long entryId)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndCompanyId(
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.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndGroupId(
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.blogs.model.BlogsEntry getBlogsEntry(
216 long entryId)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220 @Override
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.model.PersistedModel getPersistedModel(
223 java.io.Serializable primaryKeyObj)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndCompanyId(
238 java.lang.String uuid, long companyId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
253 java.lang.String uuid, long groupId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
271 int start, int end)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public int getBlogsEntriesCount()
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284
291 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
292 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
293 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296
301 public java.lang.String getBeanIdentifier();
302
303
308 public void setBeanIdentifier(java.lang.String beanIdentifier);
309
310 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
311 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
312 java.lang.String title, java.lang.String description,
313 java.lang.String content, int displayDateMonth, int displayDateDay,
314 int displayDateYear, int displayDateHour, int displayDateMinute,
315 boolean allowPingbacks, boolean allowTrackbacks,
316 java.lang.String[] trackbacks, boolean smallImage,
317 java.lang.String smallImageURL, java.lang.String smallImageFileName,
318 java.io.InputStream smallImageInputStream,
319 com.liferay.portal.service.ServiceContext serviceContext)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 public void addEntryResources(
324 com.liferay.portlet.blogs.model.BlogsEntry entry,
325 boolean addGroupPermissions, boolean addGuestPermissions)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public void addEntryResources(
330 com.liferay.portlet.blogs.model.BlogsEntry entry,
331 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public void addEntryResources(long entryId, boolean addGroupPermissions,
336 boolean addGuestPermissions)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public void addEntryResources(long entryId,
341 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 public void checkEntries()
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public void deleteEntries(long groupId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352
353 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public void deleteEntry(long entryId)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException;
360
361
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
367 long companyId, java.util.Date displayDate, int status, int start,
368 int end) throws com.liferay.portal.kernel.exception.SystemException;
369
370
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
376 long companyId, java.util.Date displayDate, int status, int start,
377 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
382 long companyId, java.util.Date displayDate,
383 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
384 throws com.liferay.portal.kernel.exception.SystemException;
385
386
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public int getCompanyEntriesCount(long companyId,
392 java.util.Date displayDate, int status)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public int getCompanyEntriesCount(long companyId,
397 java.util.Date displayDate,
398 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
403 long entryId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
414 java.lang.String urlTitle)
415 throws com.liferay.portal.kernel.exception.PortalException,
416 com.liferay.portal.kernel.exception.SystemException;
417
418
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
424 long groupId, java.util.Date displayDate, int status, int start, int end)
425 throws com.liferay.portal.kernel.exception.SystemException;
426
427
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
433 long groupId, java.util.Date displayDate, int status, int start,
434 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
439 long groupId, java.util.Date displayDate,
440 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
441 throws com.liferay.portal.kernel.exception.SystemException;
442
443
447 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
449 long groupId, int status, int start, int end)
450 throws com.liferay.portal.kernel.exception.SystemException;
451
452
456 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
457 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
458 long groupId, int status, int start, int end,
459 com.liferay.portal.kernel.util.OrderByComparator obc)
460 throws com.liferay.portal.kernel.exception.SystemException;
461
462 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
464 long groupId,
465 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
466 throws com.liferay.portal.kernel.exception.SystemException;
467
468
472 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
474 int status) throws com.liferay.portal.kernel.exception.SystemException;
475
476 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
478 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
479 throws com.liferay.portal.kernel.exception.SystemException;
480
481
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public int getGroupEntriesCount(long groupId, int status)
487 throws com.liferay.portal.kernel.exception.SystemException;
488
489 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490 public int getGroupEntriesCount(long groupId,
491 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
500 long companyId, long groupId, java.util.Date displayDate, int status,
501 int start, int end)
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
506 long companyId, long groupId, java.util.Date displayDate,
507 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
508 throws com.liferay.portal.kernel.exception.SystemException;
509
510
514 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
516 long groupId, long userId, java.util.Date displayDate, int status,
517 int start, int end)
518 throws com.liferay.portal.kernel.exception.SystemException;
519
520
524 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
526 long groupId, long userId, java.util.Date displayDate, int status,
527 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
528 throws com.liferay.portal.kernel.exception.SystemException;
529
530 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
531 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
532 long groupId, long userId, java.util.Date displayDate,
533 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
534 throws com.liferay.portal.kernel.exception.SystemException;
535
536
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public int getGroupUserEntriesCount(long groupId, long userId,
542 java.util.Date displayDate, int status)
543 throws com.liferay.portal.kernel.exception.SystemException;
544
545 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546 public int getGroupUserEntriesCount(long groupId, long userId,
547 java.util.Date displayDate,
548 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
549 throws com.liferay.portal.kernel.exception.SystemException;
550
551 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
553 throws com.liferay.portal.kernel.exception.SystemException;
554
555
559 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
561 long organizationId, java.util.Date displayDate, int status, int start,
562 int end) throws com.liferay.portal.kernel.exception.SystemException;
563
564
568 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
569 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
570 long organizationId, java.util.Date displayDate, int status, int start,
571 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
572 throws com.liferay.portal.kernel.exception.SystemException;
573
574 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
575 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
576 long organizationId, java.util.Date displayDate,
577 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
578 throws com.liferay.portal.kernel.exception.SystemException;
579
580
584 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585 public int getOrganizationEntriesCount(long organizationId,
586 java.util.Date displayDate, int status)
587 throws com.liferay.portal.kernel.exception.SystemException;
588
589 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590 public int getOrganizationEntriesCount(long organizationId,
591 java.util.Date displayDate,
592 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
593 throws com.liferay.portal.kernel.exception.SystemException;
594
595 public void moveEntriesToTrash(long groupId, long userId)
596 throws com.liferay.portal.kernel.exception.PortalException,
597 com.liferay.portal.kernel.exception.SystemException;
598
599
611 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
612 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
613 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException;
616
617
628 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
629 long userId, long entryId)
630 throws com.liferay.portal.kernel.exception.PortalException,
631 com.liferay.portal.kernel.exception.SystemException;
632
633
644 public void restoreEntryFromTrash(long userId, long entryId)
645 throws com.liferay.portal.kernel.exception.PortalException,
646 com.liferay.portal.kernel.exception.SystemException;
647
648 public void subscribe(long userId, long groupId)
649 throws com.liferay.portal.kernel.exception.PortalException,
650 com.liferay.portal.kernel.exception.SystemException;
651
652 public void unsubscribe(long userId, long groupId)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException;
655
656 public void updateAsset(long userId,
657 com.liferay.portlet.blogs.model.BlogsEntry entry,
658 long[] assetCategoryIds, java.lang.String[] assetTagNames,
659 long[] assetLinkEntryIds)
660 throws com.liferay.portal.kernel.exception.PortalException,
661 com.liferay.portal.kernel.exception.SystemException;
662
663 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
664 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
665 long entryId, java.lang.String title, java.lang.String description,
666 java.lang.String content, int displayDateMonth, int displayDateDay,
667 int displayDateYear, int displayDateHour, int displayDateMinute,
668 boolean allowPingbacks, boolean allowTrackbacks,
669 java.lang.String[] trackbacks, boolean smallImage,
670 java.lang.String smallImageURL, java.lang.String smallImageFileName,
671 java.io.InputStream smallImageInputStream,
672 com.liferay.portal.service.ServiceContext serviceContext)
673 throws com.liferay.portal.kernel.exception.PortalException,
674 com.liferay.portal.kernel.exception.SystemException;
675
676 public void updateEntryResources(
677 com.liferay.portlet.blogs.model.BlogsEntry entry,
678 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
679 throws com.liferay.portal.kernel.exception.PortalException,
680 com.liferay.portal.kernel.exception.SystemException;
681
682 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
683 public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
684 long userId, long entryId, int status,
685 com.liferay.portal.service.ServiceContext serviceContext)
686 throws com.liferay.portal.kernel.exception.PortalException,
687 com.liferay.portal.kernel.exception.SystemException;
688 }