001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface BlogsEntryLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
056 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
066 long entryId);
067
068
076 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
077 long entryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
089 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
158 long entryId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
171 long entryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getBlogsEntriesCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
231 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
239 public java.lang.String getBeanIdentifier();
240
241
246 public void setBeanIdentifier(java.lang.String beanIdentifier);
247
248 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
249 java.lang.String title, java.lang.String description,
250 java.lang.String content, int displayDateMonth, int displayDateDay,
251 int displayDateYear, int displayDateHour, int displayDateMinute,
252 boolean allowPingbacks, boolean allowTrackbacks,
253 java.lang.String[] trackbacks, boolean smallImage,
254 java.lang.String smallImageURL, java.lang.String smallImageFileName,
255 java.io.InputStream smallImageInputStream,
256 com.liferay.portal.service.ServiceContext serviceContext)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void addEntryResources(
261 com.liferay.portlet.blogs.model.BlogsEntry entry,
262 boolean addGroupPermissions, boolean addGuestPermissions)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void addEntryResources(
267 com.liferay.portlet.blogs.model.BlogsEntry entry,
268 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addEntryResources(long entryId, boolean addGroupPermissions,
273 boolean addGuestPermissions)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public void addEntryResources(long entryId,
278 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void checkEntries()
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 public void deleteEntries(long groupId)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 public void deleteEntry(long entryId)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
304 long companyId, java.util.Date displayDate, int status, int start,
305 int end) throws com.liferay.portal.kernel.exception.SystemException;
306
307
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
313 long companyId, java.util.Date displayDate, int status, int start,
314 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
319 long companyId, java.util.Date displayDate,
320 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public int getCompanyEntriesCount(long companyId,
329 java.util.Date displayDate, int status)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public int getCompanyEntriesCount(long companyId,
334 java.util.Date displayDate,
335 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
336 throws com.liferay.portal.kernel.exception.SystemException;
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
340 long entryId)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
351 java.lang.String urlTitle)
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> getGroupEntries(
361 long groupId, java.util.Date displayDate, int status, int start, int end)
362 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> getGroupEntries(
370 long groupId, 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> getGroupEntries(
376 long groupId, 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 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
386 long groupId, int status, int start, int end)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
395 long groupId, int status, int start, int end,
396 com.liferay.portal.kernel.util.OrderByComparator obc)
397 throws com.liferay.portal.kernel.exception.SystemException;
398
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
401 long groupId,
402 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
403 throws com.liferay.portal.kernel.exception.SystemException;
404
405
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
411 int status) throws com.liferay.portal.kernel.exception.SystemException;
412
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
415 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public int getGroupEntriesCount(long groupId, int status)
424 throws com.liferay.portal.kernel.exception.SystemException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public int getGroupEntriesCount(long groupId,
428 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
437 long companyId, long groupId, java.util.Date displayDate, int status,
438 int start, int end)
439 throws com.liferay.portal.kernel.exception.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
443 long companyId, long groupId, java.util.Date displayDate,
444 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
445 throws com.liferay.portal.kernel.exception.SystemException;
446
447
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
453 long groupId, long userId, java.util.Date displayDate, int status,
454 int start, int end)
455 throws com.liferay.portal.kernel.exception.SystemException;
456
457
461 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
463 long groupId, long userId, java.util.Date displayDate, int status,
464 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
465 throws com.liferay.portal.kernel.exception.SystemException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
469 long groupId, long userId, java.util.Date displayDate,
470 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473
477 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478 public int getGroupUserEntriesCount(long groupId, long userId,
479 java.util.Date displayDate, int status)
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public int getGroupUserEntriesCount(long groupId, long userId,
484 java.util.Date displayDate,
485 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
486 throws com.liferay.portal.kernel.exception.SystemException;
487
488 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
490 throws com.liferay.portal.kernel.exception.SystemException;
491
492
496 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
498 long organizationId, java.util.Date displayDate, int status, int start,
499 int end) throws com.liferay.portal.kernel.exception.SystemException;
500
501
505 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
507 long organizationId, java.util.Date displayDate, int status, int start,
508 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
509 throws com.liferay.portal.kernel.exception.SystemException;
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
513 long organizationId, java.util.Date displayDate,
514 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
515 throws com.liferay.portal.kernel.exception.SystemException;
516
517
521 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522 public int getOrganizationEntriesCount(long organizationId,
523 java.util.Date displayDate, int status)
524 throws com.liferay.portal.kernel.exception.SystemException;
525
526 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
527 public int getOrganizationEntriesCount(long organizationId,
528 java.util.Date displayDate,
529 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
530 throws com.liferay.portal.kernel.exception.SystemException;
531
532 public void moveEntriesToTrash(long groupId, long userId)
533 throws com.liferay.portal.kernel.exception.PortalException,
534 com.liferay.portal.kernel.exception.SystemException;
535
536
548 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
549 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException;
552
553
564 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
565 long userId, long entryId)
566 throws com.liferay.portal.kernel.exception.PortalException,
567 com.liferay.portal.kernel.exception.SystemException;
568
569
580 public void restoreEntryFromTrash(long userId, long entryId)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException;
583
584 public void subscribe(long userId, long groupId)
585 throws com.liferay.portal.kernel.exception.PortalException,
586 com.liferay.portal.kernel.exception.SystemException;
587
588 public void unsubscribe(long userId, long groupId)
589 throws com.liferay.portal.kernel.exception.PortalException,
590 com.liferay.portal.kernel.exception.SystemException;
591
592 public void updateAsset(long userId,
593 com.liferay.portlet.blogs.model.BlogsEntry entry,
594 long[] assetCategoryIds, java.lang.String[] assetTagNames,
595 long[] assetLinkEntryIds)
596 throws com.liferay.portal.kernel.exception.PortalException,
597 com.liferay.portal.kernel.exception.SystemException;
598
599 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
600 long entryId, java.lang.String title, java.lang.String description,
601 java.lang.String content, int displayDateMonth, int displayDateDay,
602 int displayDateYear, int displayDateHour, int displayDateMinute,
603 boolean allowPingbacks, boolean allowTrackbacks,
604 java.lang.String[] trackbacks, boolean smallImage,
605 java.lang.String smallImageURL, java.lang.String smallImageFileName,
606 java.io.InputStream smallImageInputStream,
607 com.liferay.portal.service.ServiceContext serviceContext)
608 throws com.liferay.portal.kernel.exception.PortalException,
609 com.liferay.portal.kernel.exception.SystemException;
610
611 public void updateEntryResources(
612 com.liferay.portlet.blogs.model.BlogsEntry entry,
613 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException;
616
617 public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
618 long userId, long entryId, int status,
619 com.liferay.portal.service.ServiceContext serviceContext)
620 throws com.liferay.portal.kernel.exception.PortalException,
621 com.liferay.portal.kernel.exception.SystemException;
622 }