001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class BlogsEntryLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
048 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addBlogsEntry(blogsEntry);
051 }
052
053
059 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
060 long entryId) {
061 return getService().createBlogsEntry(entryId);
062 }
063
064
072 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
073 long entryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteBlogsEntry(entryId);
077 }
078
079
086 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
087 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteBlogsEntry(blogsEntry);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static 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 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
168 long entryId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchBlogsEntry(entryId);
171 }
172
173
181 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
182 long entryId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getBlogsEntry(entryId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getBlogsEntries(start, end);
227 }
228
229
235 public static int getBlogsEntriesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getBlogsEntriesCount();
238 }
239
240
247 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
248 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateBlogsEntry(blogsEntry);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
272 long userId, java.lang.String title, java.lang.String description,
273 java.lang.String content, int displayDateMonth, int displayDateDay,
274 int displayDateYear, int displayDateHour, int displayDateMinute,
275 boolean allowPingbacks, boolean allowTrackbacks,
276 java.lang.String[] trackbacks, boolean smallImage,
277 java.lang.String smallImageURL, java.lang.String smallImageFileName,
278 java.io.InputStream smallImageInputStream,
279 com.liferay.portal.service.ServiceContext serviceContext)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException {
282 return getService()
283 .addEntry(userId, title, description, content,
284 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
285 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
286 smallImage, smallImageURL, smallImageFileName,
287 smallImageInputStream, serviceContext);
288 }
289
290 public static void addEntryResources(
291 com.liferay.portlet.blogs.model.BlogsEntry entry,
292 boolean addGroupPermissions, boolean addGuestPermissions)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 getService()
296 .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
297 }
298
299 public static void addEntryResources(
300 com.liferay.portlet.blogs.model.BlogsEntry entry,
301 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 getService().addEntryResources(entry, groupPermissions, guestPermissions);
305 }
306
307 public static void addEntryResources(long entryId,
308 boolean addGroupPermissions, boolean addGuestPermissions)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService()
312 .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
313 }
314
315 public static void addEntryResources(long entryId,
316 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 getService()
320 .addEntryResources(entryId, groupPermissions, guestPermissions);
321 }
322
323 public static void checkEntries()
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException {
326 getService().checkEntries();
327 }
328
329 public static void deleteEntries(long groupId)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 getService().deleteEntries(groupId);
333 }
334
335 public static void deleteEntry(
336 com.liferay.portlet.blogs.model.BlogsEntry entry)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException {
339 getService().deleteEntry(entry);
340 }
341
342 public static void deleteEntry(long entryId)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 getService().deleteEntry(entryId);
346 }
347
348
352 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
353 long companyId, java.util.Date displayDate, int status, int start,
354 int end) throws com.liferay.portal.kernel.exception.SystemException {
355 return getService()
356 .getCompanyEntries(companyId, displayDate, status, start, end);
357 }
358
359
363 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
364 long companyId, java.util.Date displayDate, int status, int start,
365 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService()
368 .getCompanyEntries(companyId, displayDate, status, start,
369 end, obc);
370 }
371
372 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
373 long companyId, java.util.Date displayDate,
374 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getService()
377 .getCompanyEntries(companyId, displayDate, queryDefinition);
378 }
379
380
384 public static int getCompanyEntriesCount(long companyId,
385 java.util.Date displayDate, int status)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getService()
388 .getCompanyEntriesCount(companyId, displayDate, status);
389 }
390
391 public static int getCompanyEntriesCount(long companyId,
392 java.util.Date displayDate,
393 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getService()
396 .getCompanyEntriesCount(companyId, displayDate,
397 queryDefinition);
398 }
399
400 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
401 long entryId)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException {
404 return getService().getEntriesPrevAndNext(entryId);
405 }
406
407 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
408 long entryId)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException {
411 return getService().getEntry(entryId);
412 }
413
414 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
415 long groupId, java.lang.String urlTitle)
416 throws com.liferay.portal.kernel.exception.PortalException,
417 com.liferay.portal.kernel.exception.SystemException {
418 return getService().getEntry(groupId, urlTitle);
419 }
420
421
425 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
426 long groupId, java.util.Date displayDate, int status, int start, int end)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getService()
429 .getGroupEntries(groupId, displayDate, status, start, end);
430 }
431
432
436 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
437 long groupId, java.util.Date displayDate, int status, int start,
438 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 return getService()
441 .getGroupEntries(groupId, displayDate, status, start, end,
442 obc);
443 }
444
445 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
446 long groupId, java.util.Date displayDate,
447 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getService()
450 .getGroupEntries(groupId, displayDate, queryDefinition);
451 }
452
453
457 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
458 long groupId, int status, int start, int end)
459 throws com.liferay.portal.kernel.exception.SystemException {
460 return getService().getGroupEntries(groupId, status, start, end);
461 }
462
463
467 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
468 long groupId, int status, int start, int end,
469 com.liferay.portal.kernel.util.OrderByComparator obc)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService().getGroupEntries(groupId, status, start, end, obc);
472 }
473
474 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
475 long groupId,
476 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
477 throws com.liferay.portal.kernel.exception.SystemException {
478 return getService().getGroupEntries(groupId, queryDefinition);
479 }
480
481
485 public static int getGroupEntriesCount(long groupId,
486 java.util.Date displayDate, int status)
487 throws com.liferay.portal.kernel.exception.SystemException {
488 return getService().getGroupEntriesCount(groupId, displayDate, status);
489 }
490
491 public static int getGroupEntriesCount(long groupId,
492 java.util.Date displayDate,
493 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getService()
496 .getGroupEntriesCount(groupId, displayDate, queryDefinition);
497 }
498
499
503 public static int getGroupEntriesCount(long groupId, int status)
504 throws com.liferay.portal.kernel.exception.SystemException {
505 return getService().getGroupEntriesCount(groupId, status);
506 }
507
508 public static int getGroupEntriesCount(long groupId,
509 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
510 throws com.liferay.portal.kernel.exception.SystemException {
511 return getService().getGroupEntriesCount(groupId, queryDefinition);
512 }
513
514
518 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
519 long companyId, long groupId, java.util.Date displayDate, int status,
520 int start, int end)
521 throws com.liferay.portal.kernel.exception.SystemException {
522 return getService()
523 .getGroupsEntries(companyId, groupId, displayDate, status,
524 start, end);
525 }
526
527 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
528 long companyId, long groupId, java.util.Date displayDate,
529 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
530 throws com.liferay.portal.kernel.exception.SystemException {
531 return getService()
532 .getGroupsEntries(companyId, groupId, displayDate,
533 queryDefinition);
534 }
535
536
540 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
541 long groupId, long userId, java.util.Date displayDate, int status,
542 int start, int end)
543 throws com.liferay.portal.kernel.exception.SystemException {
544 return getService()
545 .getGroupUserEntries(groupId, userId, displayDate, status,
546 start, end);
547 }
548
549
553 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
554 long groupId, long userId, java.util.Date displayDate, int status,
555 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
556 throws com.liferay.portal.kernel.exception.SystemException {
557 return getService()
558 .getGroupUserEntries(groupId, userId, displayDate, status,
559 start, end, obc);
560 }
561
562 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
563 long groupId, long userId, java.util.Date displayDate,
564 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
565 throws com.liferay.portal.kernel.exception.SystemException {
566 return getService()
567 .getGroupUserEntries(groupId, userId, displayDate,
568 queryDefinition);
569 }
570
571
575 public static int getGroupUserEntriesCount(long groupId, long userId,
576 java.util.Date displayDate, int status)
577 throws com.liferay.portal.kernel.exception.SystemException {
578 return getService()
579 .getGroupUserEntriesCount(groupId, userId, displayDate,
580 status);
581 }
582
583 public static int getGroupUserEntriesCount(long groupId, long userId,
584 java.util.Date displayDate,
585 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
586 throws com.liferay.portal.kernel.exception.SystemException {
587 return getService()
588 .getGroupUserEntriesCount(groupId, userId, displayDate,
589 queryDefinition);
590 }
591
592 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
593 throws com.liferay.portal.kernel.exception.SystemException {
594 return getService().getNoAssetEntries();
595 }
596
597
601 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
602 long organizationId, java.util.Date displayDate, int status, int start,
603 int end) throws com.liferay.portal.kernel.exception.SystemException {
604 return getService()
605 .getOrganizationEntries(organizationId, displayDate, status,
606 start, end);
607 }
608
609
613 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
614 long organizationId, java.util.Date displayDate, int status, int start,
615 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 return getService()
618 .getOrganizationEntries(organizationId, displayDate, status,
619 start, end, obc);
620 }
621
622 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
623 long organizationId, java.util.Date displayDate,
624 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
625 throws com.liferay.portal.kernel.exception.SystemException {
626 return getService()
627 .getOrganizationEntries(organizationId, displayDate,
628 queryDefinition);
629 }
630
631
635 public static int getOrganizationEntriesCount(long organizationId,
636 java.util.Date displayDate, int status)
637 throws com.liferay.portal.kernel.exception.SystemException {
638 return getService()
639 .getOrganizationEntriesCount(organizationId, displayDate,
640 status);
641 }
642
643 public static int getOrganizationEntriesCount(long organizationId,
644 java.util.Date displayDate,
645 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService()
648 .getOrganizationEntriesCount(organizationId, displayDate,
649 queryDefinition);
650 }
651
652 public static void moveEntriesToTrash(long groupId, long userId)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException {
655 getService().moveEntriesToTrash(groupId, userId);
656 }
657
658
670 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
671 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
672 throws com.liferay.portal.kernel.exception.PortalException,
673 com.liferay.portal.kernel.exception.SystemException {
674 return getService().moveEntryToTrash(userId, entry);
675 }
676
677
688 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
689 long userId, long entryId)
690 throws com.liferay.portal.kernel.exception.PortalException,
691 com.liferay.portal.kernel.exception.SystemException {
692 return getService().moveEntryToTrash(userId, entryId);
693 }
694
695
706 public static void restoreEntryFromTrash(long userId, long entryId)
707 throws com.liferay.portal.kernel.exception.PortalException,
708 com.liferay.portal.kernel.exception.SystemException {
709 getService().restoreEntryFromTrash(userId, entryId);
710 }
711
712 public static void subscribe(long userId, long groupId)
713 throws com.liferay.portal.kernel.exception.PortalException,
714 com.liferay.portal.kernel.exception.SystemException {
715 getService().subscribe(userId, groupId);
716 }
717
718 public static void unsubscribe(long userId, long groupId)
719 throws com.liferay.portal.kernel.exception.PortalException,
720 com.liferay.portal.kernel.exception.SystemException {
721 getService().unsubscribe(userId, groupId);
722 }
723
724 public static void updateAsset(long userId,
725 com.liferay.portlet.blogs.model.BlogsEntry entry,
726 long[] assetCategoryIds, java.lang.String[] assetTagNames,
727 long[] assetLinkEntryIds)
728 throws com.liferay.portal.kernel.exception.PortalException,
729 com.liferay.portal.kernel.exception.SystemException {
730 getService()
731 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
732 assetLinkEntryIds);
733 }
734
735 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
736 long userId, long entryId, java.lang.String title,
737 java.lang.String description, java.lang.String content,
738 int displayDateMonth, int displayDateDay, int displayDateYear,
739 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
740 boolean allowTrackbacks, java.lang.String[] trackbacks,
741 boolean smallImage, java.lang.String smallImageURL,
742 java.lang.String smallImageFileName,
743 java.io.InputStream smallImageInputStream,
744 com.liferay.portal.service.ServiceContext serviceContext)
745 throws com.liferay.portal.kernel.exception.PortalException,
746 com.liferay.portal.kernel.exception.SystemException {
747 return getService()
748 .updateEntry(userId, entryId, title, description, content,
749 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
750 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
751 smallImage, smallImageURL, smallImageFileName,
752 smallImageInputStream, serviceContext);
753 }
754
755 public static void updateEntryResources(
756 com.liferay.portlet.blogs.model.BlogsEntry entry,
757 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
758 throws com.liferay.portal.kernel.exception.PortalException,
759 com.liferay.portal.kernel.exception.SystemException {
760 getService()
761 .updateEntryResources(entry, groupPermissions, guestPermissions);
762 }
763
764 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
765 long userId, long entryId, int status,
766 com.liferay.portal.service.ServiceContext serviceContext)
767 throws com.liferay.portal.kernel.exception.PortalException,
768 com.liferay.portal.kernel.exception.SystemException {
769 return getService().updateStatus(userId, entryId, status, serviceContext);
770 }
771
772 public static BlogsEntryLocalService getService() {
773 if (_service == null) {
774 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
775
776 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
777 "_service");
778 }
779
780 return _service;
781 }
782
783
786 public void setService(BlogsEntryLocalService service) {
787 }
788
789 private static BlogsEntryLocalService _service;
790 }