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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface BlogsEntryLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
058 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
068 long entryId);
069
070
078 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
079 long entryId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
091 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
173 long entryId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndCompanyId(
186 java.lang.String uuid, long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
212 long entryId)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215
216 @Override
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.PersistedModel getPersistedModel(
219 java.io.Serializable primaryKeyObj)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndCompanyId(
234 java.lang.String uuid, long companyId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
249 java.lang.String uuid, long groupId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
267 int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getBlogsEntriesCount()
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
287 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
288 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
296 public java.lang.String getBeanIdentifier();
297
298
303 public void setBeanIdentifier(java.lang.String beanIdentifier);
304
305 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
306 java.lang.String title, java.lang.String description,
307 java.lang.String content, int displayDateMonth, int displayDateDay,
308 int displayDateYear, int displayDateHour, int displayDateMinute,
309 boolean allowPingbacks, boolean allowTrackbacks,
310 java.lang.String[] trackbacks, boolean smallImage,
311 java.lang.String smallImageURL, java.lang.String smallImageFileName,
312 java.io.InputStream smallImageInputStream,
313 com.liferay.portal.service.ServiceContext serviceContext)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public void addEntryResources(
318 com.liferay.portlet.blogs.model.BlogsEntry entry,
319 boolean addGroupPermissions, boolean addGuestPermissions)
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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public void addEntryResources(long entryId, boolean addGroupPermissions,
330 boolean addGuestPermissions)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void addEntryResources(long entryId,
335 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 public void checkEntries()
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342
343 public void deleteEntries(long groupId)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException;
346
347 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException;
350
351 public void deleteEntry(long entryId)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354
355
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
361 long companyId, java.util.Date displayDate, int status, int start,
362 int end) throws com.liferay.portal.kernel.exception.SystemException;
363
364
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
370 long companyId, java.util.Date displayDate, int status, int start,
371 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
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,
377 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public int getCompanyEntriesCount(long companyId,
386 java.util.Date displayDate, int status)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public int getCompanyEntriesCount(long companyId,
391 java.util.Date displayDate,
392 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
397 long entryId)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException;
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
408 java.lang.String urlTitle)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
418 long groupId, java.util.Date displayDate, int status, int start, int end)
419 throws com.liferay.portal.kernel.exception.SystemException;
420
421
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
427 long groupId, java.util.Date displayDate, int status, int start,
428 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
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,
434 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
443 long groupId, int status, int start, int end)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
452 long groupId, int status, int start, int end,
453 com.liferay.portal.kernel.util.OrderByComparator obc)
454 throws com.liferay.portal.kernel.exception.SystemException;
455
456 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
457 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
458 long groupId,
459 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
460 throws com.liferay.portal.kernel.exception.SystemException;
461
462
466 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
468 int status) throws com.liferay.portal.kernel.exception.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
472 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
473 throws com.liferay.portal.kernel.exception.SystemException;
474
475
479 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480 public int getGroupEntriesCount(long groupId, int status)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public int getGroupEntriesCount(long groupId,
485 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
486 throws com.liferay.portal.kernel.exception.SystemException;
487
488
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
494 long companyId, long groupId, java.util.Date displayDate, int status,
495 int start, int end)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
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,
501 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
510 long groupId, long userId, java.util.Date displayDate, int status,
511 int start, int end)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514
518 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
520 long groupId, long userId, java.util.Date displayDate, int status,
521 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
522 throws com.liferay.portal.kernel.exception.SystemException;
523
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,
527 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
528 throws com.liferay.portal.kernel.exception.SystemException;
529
530
534 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535 public int getGroupUserEntriesCount(long groupId, long userId,
536 java.util.Date displayDate, int status)
537 throws com.liferay.portal.kernel.exception.SystemException;
538
539 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540 public int getGroupUserEntriesCount(long groupId, long userId,
541 java.util.Date displayDate,
542 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
543 throws com.liferay.portal.kernel.exception.SystemException;
544
545 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
547 throws com.liferay.portal.kernel.exception.SystemException;
548
549
553 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
554 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
555 long organizationId, java.util.Date displayDate, int status, int start,
556 int end) throws com.liferay.portal.kernel.exception.SystemException;
557
558
562 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
564 long organizationId, java.util.Date displayDate, int status, int start,
565 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
566 throws com.liferay.portal.kernel.exception.SystemException;
567
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,
571 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
572 throws com.liferay.portal.kernel.exception.SystemException;
573
574
578 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
579 public int getOrganizationEntriesCount(long organizationId,
580 java.util.Date displayDate, int status)
581 throws com.liferay.portal.kernel.exception.SystemException;
582
583 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584 public int getOrganizationEntriesCount(long organizationId,
585 java.util.Date displayDate,
586 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
587 throws com.liferay.portal.kernel.exception.SystemException;
588
589 public void moveEntriesToTrash(long groupId, long userId)
590 throws com.liferay.portal.kernel.exception.PortalException,
591 com.liferay.portal.kernel.exception.SystemException;
592
593
605 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
606 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
607 throws com.liferay.portal.kernel.exception.PortalException,
608 com.liferay.portal.kernel.exception.SystemException;
609
610
621 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
622 long userId, long entryId)
623 throws com.liferay.portal.kernel.exception.PortalException,
624 com.liferay.portal.kernel.exception.SystemException;
625
626
637 public void restoreEntryFromTrash(long userId, long entryId)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException;
640
641 public void subscribe(long userId, long groupId)
642 throws com.liferay.portal.kernel.exception.PortalException,
643 com.liferay.portal.kernel.exception.SystemException;
644
645 public void unsubscribe(long userId, long groupId)
646 throws com.liferay.portal.kernel.exception.PortalException,
647 com.liferay.portal.kernel.exception.SystemException;
648
649 public void updateAsset(long userId,
650 com.liferay.portlet.blogs.model.BlogsEntry entry,
651 long[] assetCategoryIds, java.lang.String[] assetTagNames,
652 long[] assetLinkEntryIds)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException;
655
656 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
657 long entryId, java.lang.String title, java.lang.String description,
658 java.lang.String content, int displayDateMonth, int displayDateDay,
659 int displayDateYear, int displayDateHour, int displayDateMinute,
660 boolean allowPingbacks, boolean allowTrackbacks,
661 java.lang.String[] trackbacks, boolean smallImage,
662 java.lang.String smallImageURL, java.lang.String smallImageFileName,
663 java.io.InputStream smallImageInputStream,
664 com.liferay.portal.service.ServiceContext serviceContext)
665 throws com.liferay.portal.kernel.exception.PortalException,
666 com.liferay.portal.kernel.exception.SystemException;
667
668 public void updateEntryResources(
669 com.liferay.portlet.blogs.model.BlogsEntry entry,
670 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
671 throws com.liferay.portal.kernel.exception.PortalException,
672 com.liferay.portal.kernel.exception.SystemException;
673
674 public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
675 long userId, long entryId, int status,
676 com.liferay.portal.service.ServiceContext serviceContext)
677 throws com.liferay.portal.kernel.exception.PortalException,
678 com.liferay.portal.kernel.exception.SystemException;
679 }