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
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
303 long companyId, java.util.Date displayDate, int status, int start,
304 int end) throws com.liferay.portal.kernel.exception.SystemException;
305
306
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
311 long companyId, java.util.Date displayDate, int status, int start,
312 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
317 long companyId, java.util.Date displayDate,
318 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getCompanyEntriesCount(long companyId,
326 java.util.Date displayDate, int status)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public int getCompanyEntriesCount(long companyId,
331 java.util.Date displayDate,
332 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
337 long entryId)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
348 java.lang.String urlTitle)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
357 long groupId, java.util.Date displayDate, int status, int start, int end)
358 throws com.liferay.portal.kernel.exception.SystemException;
359
360
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
365 long groupId, java.util.Date displayDate, int status, int start,
366 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
371 long groupId, java.util.Date displayDate,
372 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
373 throws com.liferay.portal.kernel.exception.SystemException;
374
375
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
380 long groupId, int status, int start, int end)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
388 long groupId, int status, int start, int end,
389 com.liferay.portal.kernel.util.OrderByComparator obc)
390 throws com.liferay.portal.kernel.exception.SystemException;
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
394 long groupId,
395 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
396 throws com.liferay.portal.kernel.exception.SystemException;
397
398
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
403 int status) throws com.liferay.portal.kernel.exception.SystemException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
407 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public int getGroupEntriesCount(long groupId, int status)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public int getGroupEntriesCount(long groupId,
419 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
420 throws com.liferay.portal.kernel.exception.SystemException;
421
422
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
427 long companyId, long groupId, java.util.Date displayDate, int status,
428 int start, int end)
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> getGroupsEntries(
433 long companyId, 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> getGroupUserEntries(
443 long groupId, long userId, java.util.Date displayDate, int status,
444 int start, int end)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
455 throws com.liferay.portal.kernel.exception.SystemException;
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
459 long groupId, long userId, java.util.Date displayDate,
460 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public int getGroupUserEntriesCount(long groupId, long userId,
469 java.util.Date displayDate, int status)
470 throws com.liferay.portal.kernel.exception.SystemException;
471
472 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473 public int getGroupUserEntriesCount(long groupId, long userId,
474 java.util.Date displayDate,
475 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
487 long organizationId, java.util.Date displayDate, int status, int start,
488 int end) throws com.liferay.portal.kernel.exception.SystemException;
489
490
493 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
495 long organizationId, java.util.Date displayDate, int status, int start,
496 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
501 long organizationId, java.util.Date displayDate,
502 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
503 throws com.liferay.portal.kernel.exception.SystemException;
504
505
509 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510 public int getOrganizationEntriesCount(long organizationId,
511 java.util.Date displayDate, int status)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515 public int getOrganizationEntriesCount(long organizationId,
516 java.util.Date displayDate,
517 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
518 throws com.liferay.portal.kernel.exception.SystemException;
519
520 public void moveEntriesToTrash(long groupId, long userId)
521 throws com.liferay.portal.kernel.exception.PortalException,
522 com.liferay.portal.kernel.exception.SystemException;
523
524
536 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
537 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException;
540
541
552 public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
553 long userId, long entryId)
554 throws com.liferay.portal.kernel.exception.PortalException,
555 com.liferay.portal.kernel.exception.SystemException;
556
557
568 public void restoreEntryFromTrash(long userId, long entryId)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException;
571
572 public void subscribe(long userId, long groupId)
573 throws com.liferay.portal.kernel.exception.PortalException,
574 com.liferay.portal.kernel.exception.SystemException;
575
576 public void unsubscribe(long userId, long groupId)
577 throws com.liferay.portal.kernel.exception.PortalException,
578 com.liferay.portal.kernel.exception.SystemException;
579
580 public void updateAsset(long userId,
581 com.liferay.portlet.blogs.model.BlogsEntry entry,
582 long[] assetCategoryIds, java.lang.String[] assetTagNames,
583 long[] assetLinkEntryIds)
584 throws com.liferay.portal.kernel.exception.PortalException,
585 com.liferay.portal.kernel.exception.SystemException;
586
587 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
588 long entryId, java.lang.String title, java.lang.String description,
589 java.lang.String content, int displayDateMonth, int displayDateDay,
590 int displayDateYear, int displayDateHour, int displayDateMinute,
591 boolean allowPingbacks, boolean allowTrackbacks,
592 java.lang.String[] trackbacks, boolean smallImage,
593 java.lang.String smallImageURL, java.lang.String smallImageFileName,
594 java.io.InputStream smallImageInputStream,
595 com.liferay.portal.service.ServiceContext serviceContext)
596 throws com.liferay.portal.kernel.exception.PortalException,
597 com.liferay.portal.kernel.exception.SystemException;
598
599 public void updateEntryResources(
600 com.liferay.portlet.blogs.model.BlogsEntry entry,
601 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
602 throws com.liferay.portal.kernel.exception.PortalException,
603 com.liferay.portal.kernel.exception.SystemException;
604
605 public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
606 long userId, long entryId, int status,
607 com.liferay.portal.service.ServiceContext serviceContext)
608 throws com.liferay.portal.kernel.exception.PortalException,
609 com.liferay.portal.kernel.exception.SystemException;
610 }