001
014
015 package com.liferay.portlet.blogs.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class BlogsEntryLocalServiceUtil {
038
043 public static com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder(
044 long userId, long groupId)
045 throws com.liferay.portal.kernel.exception.PortalException {
046 return getService().addAttachmentsFolder(userId, groupId);
047 }
048
049
055 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
056 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
057 return getService().addBlogsEntry(blogsEntry);
058 }
059
060 public static void addCoverImage(long entryId,
061 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector)
062 throws com.liferay.portal.kernel.exception.PortalException {
063 getService().addCoverImage(entryId, imageSelector);
064 }
065
066 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
067 long userId, java.lang.String title, java.lang.String content,
068 java.util.Date displayDate,
069 com.liferay.portal.service.ServiceContext serviceContext)
070 throws com.liferay.portal.kernel.exception.PortalException {
071 return getService()
072 .addEntry(userId, title, content, displayDate, serviceContext);
073 }
074
075 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
076 long userId, java.lang.String title, java.lang.String content,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException {
079 return getService().addEntry(userId, title, content, serviceContext);
080 }
081
082
088 @Deprecated
089 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
090 long userId, java.lang.String title, java.lang.String description,
091 java.lang.String content, int displayDateMonth, int displayDateDay,
092 int displayDateYear, int displayDateHour, int displayDateMinute,
093 boolean allowPingbacks, boolean allowTrackbacks,
094 java.lang.String[] trackbacks, boolean smallImage,
095 java.lang.String smallImageURL, java.lang.String smallImageFileName,
096 java.io.InputStream smallImageInputStream,
097 com.liferay.portal.service.ServiceContext serviceContext)
098 throws com.liferay.portal.kernel.exception.PortalException {
099 return getService()
100 .addEntry(userId, title, description, content,
101 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
102 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
103 smallImage, smallImageURL, smallImageFileName,
104 smallImageInputStream, serviceContext);
105 }
106
107 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
108 long userId, java.lang.String title, java.lang.String subtitle,
109 java.lang.String description, java.lang.String content,
110 java.util.Date displayDate, boolean allowPingbacks,
111 boolean allowTrackbacks, java.lang.String[] trackbacks,
112 java.lang.String coverImageCaption,
113 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
114 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
115 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService()
118 .addEntry(userId, title, subtitle, description, content,
119 displayDate, allowPingbacks, allowTrackbacks, trackbacks,
120 coverImageCaption, coverImageImageSelector,
121 smallImageImageSelector, serviceContext);
122 }
123
124 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
125 long userId, java.lang.String title, java.lang.String subtitle,
126 java.lang.String description, java.lang.String content,
127 int displayDateMonth, int displayDateDay, int displayDateYear,
128 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
129 boolean allowTrackbacks, java.lang.String[] trackbacks,
130 java.lang.String coverImageCaption,
131 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
132 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.kernel.exception.PortalException {
135 return getService()
136 .addEntry(userId, title, subtitle, description, content,
137 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
138 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
139 coverImageCaption, coverImageImageSelector,
140 smallImageImageSelector, serviceContext);
141 }
142
143 public static void addEntryResources(
144 com.liferay.portlet.blogs.model.BlogsEntry entry,
145 boolean addGroupPermissions, boolean addGuestPermissions)
146 throws com.liferay.portal.kernel.exception.PortalException {
147 getService()
148 .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
149 }
150
151 public static void addEntryResources(
152 com.liferay.portlet.blogs.model.BlogsEntry entry,
153 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 getService().addEntryResources(entry, modelPermissions);
156 }
157
158 public static void addEntryResources(long entryId,
159 boolean addGroupPermissions, boolean addGuestPermissions)
160 throws com.liferay.portal.kernel.exception.PortalException {
161 getService()
162 .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
163 }
164
165 public static void addEntryResources(long entryId,
166 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
167 throws com.liferay.portal.kernel.exception.PortalException {
168 getService().addEntryResources(entryId, modelPermissions);
169 }
170
171 public static long addOriginalImageFileEntry(long userId, long groupId,
172 long entryId,
173 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector)
174 throws com.liferay.portal.kernel.exception.PortalException {
175 return getService()
176 .addOriginalImageFileEntry(userId, groupId, entryId,
177 imageSelector);
178 }
179
180 public static void addSmallImage(long entryId,
181 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector)
182 throws com.liferay.portal.kernel.exception.PortalException {
183 getService().addSmallImage(entryId, imageSelector);
184 }
185
186 public static void checkEntries()
187 throws com.liferay.portal.kernel.exception.PortalException {
188 getService().checkEntries();
189 }
190
191
197 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
198 long entryId) {
199 return getService().createBlogsEntry(entryId);
200 }
201
202
208 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
209 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
210 return getService().deleteBlogsEntry(blogsEntry);
211 }
212
213
220 public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
221 long entryId)
222 throws com.liferay.portal.kernel.exception.PortalException {
223 return getService().deleteBlogsEntry(entryId);
224 }
225
226 public static void deleteEntries(long groupId)
227 throws com.liferay.portal.kernel.exception.PortalException {
228 getService().deleteEntries(groupId);
229 }
230
231 public static com.liferay.portlet.blogs.model.BlogsEntry deleteEntry(
232 com.liferay.portlet.blogs.model.BlogsEntry entry)
233 throws com.liferay.portal.kernel.exception.PortalException {
234 return getService().deleteEntry(entry);
235 }
236
237 public static void deleteEntry(long entryId)
238 throws com.liferay.portal.kernel.exception.PortalException {
239 getService().deleteEntry(entryId);
240 }
241
242
245 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
246 com.liferay.portal.model.PersistedModel persistedModel)
247 throws com.liferay.portal.kernel.exception.PortalException {
248 return getService().deletePersistedModel(persistedModel);
249 }
250
251 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
252 return getService().dynamicQuery();
253 }
254
255
261 public static <T> java.util.List<T> dynamicQuery(
262 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
263 return getService().dynamicQuery(dynamicQuery);
264 }
265
266
278 public static <T> java.util.List<T> dynamicQuery(
279 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
280 int end) {
281 return getService().dynamicQuery(dynamicQuery, start, end);
282 }
283
284
297 public static <T> java.util.List<T> dynamicQuery(
298 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
299 int end,
300 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
301 return getService()
302 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
303 }
304
305
311 public static long dynamicQueryCount(
312 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
313 return getService().dynamicQueryCount(dynamicQuery);
314 }
315
316
323 public static long dynamicQueryCount(
324 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
325 com.liferay.portal.kernel.dao.orm.Projection projection) {
326 return getService().dynamicQueryCount(dynamicQuery, projection);
327 }
328
329 public static com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(
330 long userId, long groupId) {
331 return getService().fetchAttachmentsFolder(userId, groupId);
332 }
333
334 public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
335 long entryId) {
336 return getService().fetchBlogsEntry(entryId);
337 }
338
339
346 public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndGroupId(
347 java.lang.String uuid, long groupId) {
348 return getService().fetchBlogsEntryByUuidAndGroupId(uuid, groupId);
349 }
350
351 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
352 return getService().getActionableDynamicQuery();
353 }
354
355
366 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
367 int start, int end) {
368 return getService().getBlogsEntries(start, end);
369 }
370
371
378 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
379 java.lang.String uuid, long companyId) {
380 return getService().getBlogsEntriesByUuidAndCompanyId(uuid, companyId);
381 }
382
383
393 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
394 java.lang.String uuid, long companyId, int start, int end,
395 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> orderByComparator) {
396 return getService()
397 .getBlogsEntriesByUuidAndCompanyId(uuid, companyId, start,
398 end, orderByComparator);
399 }
400
401
406 public static int getBlogsEntriesCount() {
407 return getService().getBlogsEntriesCount();
408 }
409
410
417 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
418 long entryId)
419 throws com.liferay.portal.kernel.exception.PortalException {
420 return getService().getBlogsEntry(entryId);
421 }
422
423
431 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
432 java.lang.String uuid, long groupId)
433 throws com.liferay.portal.kernel.exception.PortalException {
434 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
435 }
436
437 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
438 long companyId, java.util.Date displayDate,
439 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
440 return getService()
441 .getCompanyEntries(companyId, displayDate, queryDefinition);
442 }
443
444
448 @Deprecated
449 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
450 long companyId, java.util.Date displayDate, int status, int start,
451 int end) {
452 return getService()
453 .getCompanyEntries(companyId, displayDate, status, start, end);
454 }
455
456
460 @Deprecated
461 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
462 long companyId, java.util.Date displayDate, int status, int start,
463 int end,
464 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
465 return getService()
466 .getCompanyEntries(companyId, displayDate, status, start,
467 end, obc);
468 }
469
470 public static int getCompanyEntriesCount(long companyId,
471 java.util.Date displayDate,
472 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
473 return getService()
474 .getCompanyEntriesCount(companyId, displayDate,
475 queryDefinition);
476 }
477
478
482 @Deprecated
483 public static int getCompanyEntriesCount(long companyId,
484 java.util.Date displayDate, int status) {
485 return getService()
486 .getCompanyEntriesCount(companyId, displayDate, status);
487 }
488
489 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
490 long entryId)
491 throws com.liferay.portal.kernel.exception.PortalException {
492 return getService().getEntriesPrevAndNext(entryId);
493 }
494
495 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
496 long entryId)
497 throws com.liferay.portal.kernel.exception.PortalException {
498 return getService().getEntry(entryId);
499 }
500
501 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
502 long groupId, java.lang.String urlTitle)
503 throws com.liferay.portal.kernel.exception.PortalException {
504 return getService().getEntry(groupId, urlTitle);
505 }
506
507 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
508 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
509 return getService().getExportActionableDynamicQuery(portletDataContext);
510 }
511
512 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
513 long groupId, java.util.Date displayDate,
514 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
515 return getService()
516 .getGroupEntries(groupId, displayDate, queryDefinition);
517 }
518
519
523 @Deprecated
524 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
525 long groupId, java.util.Date displayDate, int status, int start, int end) {
526 return getService()
527 .getGroupEntries(groupId, displayDate, status, start, end);
528 }
529
530
534 @Deprecated
535 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
536 long groupId, java.util.Date displayDate, int status, int start,
537 int end,
538 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
539 return getService()
540 .getGroupEntries(groupId, displayDate, status, start, end,
541 obc);
542 }
543
544 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
545 long groupId,
546 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
547 return getService().getGroupEntries(groupId, queryDefinition);
548 }
549
550
554 @Deprecated
555 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
556 long groupId, int status, int start, int end) {
557 return getService().getGroupEntries(groupId, status, start, end);
558 }
559
560
564 @Deprecated
565 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
566 long groupId, int status, int start, int end,
567 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
568 return getService().getGroupEntries(groupId, status, start, end, obc);
569 }
570
571 public static int getGroupEntriesCount(long groupId,
572 java.util.Date displayDate,
573 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
574 return getService()
575 .getGroupEntriesCount(groupId, displayDate, queryDefinition);
576 }
577
578
582 @Deprecated
583 public static int getGroupEntriesCount(long groupId,
584 java.util.Date displayDate, int status) {
585 return getService().getGroupEntriesCount(groupId, displayDate, status);
586 }
587
588 public static int getGroupEntriesCount(long groupId,
589 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
590 return getService().getGroupEntriesCount(groupId, queryDefinition);
591 }
592
593
597 @Deprecated
598 public static int getGroupEntriesCount(long groupId, int status) {
599 return getService().getGroupEntriesCount(groupId, status);
600 }
601
602 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
603 long groupId, long userId, java.util.Date displayDate,
604 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
605 return getService()
606 .getGroupUserEntries(groupId, userId, displayDate,
607 queryDefinition);
608 }
609
610
614 @Deprecated
615 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
616 long groupId, long userId, java.util.Date displayDate, int status,
617 int start, int end) {
618 return getService()
619 .getGroupUserEntries(groupId, userId, displayDate, status,
620 start, end);
621 }
622
623
627 @Deprecated
628 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
629 long groupId, long userId, java.util.Date displayDate, int status,
630 int start, int end,
631 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
632 return getService()
633 .getGroupUserEntries(groupId, userId, displayDate, status,
634 start, end, obc);
635 }
636
637 public static int getGroupUserEntriesCount(long groupId, long userId,
638 java.util.Date displayDate,
639 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
640 return getService()
641 .getGroupUserEntriesCount(groupId, userId, displayDate,
642 queryDefinition);
643 }
644
645
649 @Deprecated
650 public static int getGroupUserEntriesCount(long groupId, long userId,
651 java.util.Date displayDate, int status) {
652 return getService()
653 .getGroupUserEntriesCount(groupId, userId, displayDate,
654 status);
655 }
656
657 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
658 long companyId, long groupId, java.util.Date displayDate,
659 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
660 return getService()
661 .getGroupsEntries(companyId, groupId, displayDate,
662 queryDefinition);
663 }
664
665
669 @Deprecated
670 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
671 long companyId, long groupId, java.util.Date displayDate, int status,
672 int start, int end) {
673 return getService()
674 .getGroupsEntries(companyId, groupId, displayDate, status,
675 start, end);
676 }
677
678 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
679 return getService().getIndexableActionableDynamicQuery();
680 }
681
682 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries() {
683 return getService().getNoAssetEntries();
684 }
685
686
691 public static java.lang.String getOSGiServiceIdentifier() {
692 return getService().getOSGiServiceIdentifier();
693 }
694
695 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
696 long organizationId, java.util.Date displayDate,
697 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
698 return getService()
699 .getOrganizationEntries(organizationId, displayDate,
700 queryDefinition);
701 }
702
703
707 @Deprecated
708 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
709 long organizationId, java.util.Date displayDate, int status, int start,
710 int end) {
711 return getService()
712 .getOrganizationEntries(organizationId, displayDate, status,
713 start, end);
714 }
715
716
720 @Deprecated
721 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
722 long organizationId, java.util.Date displayDate, int status, int start,
723 int end,
724 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
725 return getService()
726 .getOrganizationEntries(organizationId, displayDate, status,
727 start, end, obc);
728 }
729
730 public static int getOrganizationEntriesCount(long organizationId,
731 java.util.Date displayDate,
732 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
733 return getService()
734 .getOrganizationEntriesCount(organizationId, displayDate,
735 queryDefinition);
736 }
737
738
742 @Deprecated
743 public static int getOrganizationEntriesCount(long organizationId,
744 java.util.Date displayDate, int status) {
745 return getService()
746 .getOrganizationEntriesCount(organizationId, displayDate,
747 status);
748 }
749
750 public static com.liferay.portal.model.PersistedModel getPersistedModel(
751 java.io.Serializable primaryKeyObj)
752 throws com.liferay.portal.kernel.exception.PortalException {
753 return getService().getPersistedModel(primaryKeyObj);
754 }
755
756 public static void moveEntriesToTrash(long groupId, long userId)
757 throws com.liferay.portal.kernel.exception.PortalException {
758 getService().moveEntriesToTrash(groupId, userId);
759 }
760
761
769 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
770 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
771 throws com.liferay.portal.kernel.exception.PortalException {
772 return getService().moveEntryToTrash(userId, entry);
773 }
774
775
782 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
783 long userId, long entryId)
784 throws com.liferay.portal.kernel.exception.PortalException {
785 return getService().moveEntryToTrash(userId, entryId);
786 }
787
788
796 public static com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
797 long userId, long entryId)
798 throws com.liferay.portal.kernel.exception.PortalException {
799 return getService().restoreEntryFromTrash(userId, entryId);
800 }
801
802 public static void subscribe(long userId, long groupId)
803 throws com.liferay.portal.kernel.exception.PortalException {
804 getService().subscribe(userId, groupId);
805 }
806
807 public static void unsubscribe(long userId, long groupId)
808 throws com.liferay.portal.kernel.exception.PortalException {
809 getService().unsubscribe(userId, groupId);
810 }
811
812 public static void updateAsset(long userId,
813 com.liferay.portlet.blogs.model.BlogsEntry entry,
814 long[] assetCategoryIds, java.lang.String[] assetTagNames,
815 long[] assetLinkEntryIds, java.lang.Double priority)
816 throws com.liferay.portal.kernel.exception.PortalException {
817 getService()
818 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
819 assetLinkEntryIds, priority);
820 }
821
822
828 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
829 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
830 return getService().updateBlogsEntry(blogsEntry);
831 }
832
833 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
834 long userId, long entryId, java.lang.String title,
835 java.lang.String content,
836 com.liferay.portal.service.ServiceContext serviceContext)
837 throws com.liferay.portal.kernel.exception.PortalException {
838 return getService()
839 .updateEntry(userId, entryId, title, content, serviceContext);
840 }
841
842
848 @Deprecated
849 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
850 long userId, long entryId, java.lang.String title,
851 java.lang.String description, java.lang.String content,
852 int displayDateMonth, int displayDateDay, int displayDateYear,
853 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
854 boolean allowTrackbacks, java.lang.String[] trackbacks,
855 boolean smallImage, java.lang.String smallImageURL,
856 java.lang.String smallImageFileName,
857 java.io.InputStream smallImageInputStream,
858 com.liferay.portal.service.ServiceContext serviceContext)
859 throws com.liferay.portal.kernel.exception.PortalException {
860 return getService()
861 .updateEntry(userId, entryId, title, description, content,
862 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
863 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
864 smallImage, smallImageURL, smallImageFileName,
865 smallImageInputStream, serviceContext);
866 }
867
868 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
869 long userId, long entryId, java.lang.String title,
870 java.lang.String subtitle, java.lang.String description,
871 java.lang.String content, java.util.Date displayDate,
872 boolean allowPingbacks, boolean allowTrackbacks,
873 java.lang.String[] trackbacks, java.lang.String coverImageCaption,
874 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
875 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
876 com.liferay.portal.service.ServiceContext serviceContext)
877 throws com.liferay.portal.kernel.exception.PortalException {
878 return getService()
879 .updateEntry(userId, entryId, title, subtitle, description,
880 content, displayDate, allowPingbacks, allowTrackbacks, trackbacks,
881 coverImageCaption, coverImageImageSelector,
882 smallImageImageSelector, serviceContext);
883 }
884
885 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
886 long userId, long entryId, java.lang.String title,
887 java.lang.String subtitle, java.lang.String description,
888 java.lang.String content, int displayDateMonth, int displayDateDay,
889 int displayDateYear, int displayDateHour, int displayDateMinute,
890 boolean allowPingbacks, boolean allowTrackbacks,
891 java.lang.String[] trackbacks, java.lang.String coverImageCaption,
892 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
893 com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
894 com.liferay.portal.service.ServiceContext serviceContext)
895 throws com.liferay.portal.kernel.exception.PortalException {
896 return getService()
897 .updateEntry(userId, entryId, title, subtitle, description,
898 content, displayDateMonth, displayDateDay, displayDateYear,
899 displayDateHour, displayDateMinute, allowPingbacks,
900 allowTrackbacks, trackbacks, coverImageCaption,
901 coverImageImageSelector, smallImageImageSelector, serviceContext);
902 }
903
904 public static void updateEntryResources(
905 com.liferay.portlet.blogs.model.BlogsEntry entry,
906 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
907 throws com.liferay.portal.kernel.exception.PortalException {
908 getService()
909 .updateEntryResources(entry, groupPermissions, guestPermissions);
910 }
911
912 public static void updateEntryResources(
913 com.liferay.portlet.blogs.model.BlogsEntry entry,
914 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
915 throws com.liferay.portal.kernel.exception.PortalException {
916 getService().updateEntryResources(entry, modelPermissions);
917 }
918
919
923 @Deprecated
924 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
925 long userId, long entryId, int status,
926 com.liferay.portal.service.ServiceContext serviceContext)
927 throws com.liferay.portal.kernel.exception.PortalException {
928 return getService().updateStatus(userId, entryId, status, serviceContext);
929 }
930
931 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
932 long userId, long entryId, int status,
933 com.liferay.portal.service.ServiceContext serviceContext,
934 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
935 throws com.liferay.portal.kernel.exception.PortalException {
936 return getService()
937 .updateStatus(userId, entryId, status, serviceContext,
938 workflowContext);
939 }
940
941 public static BlogsEntryLocalService getService() {
942 if (_service == null) {
943 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
944
945 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
946 "_service");
947 }
948
949 return _service;
950 }
951
952
955 @Deprecated
956 public void setService(BlogsEntryLocalService service) {
957 }
958
959 private static BlogsEntryLocalService _service;
960 }