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
351 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
352 long companyId, java.util.Date displayDate, int status, int start,
353 int end) throws com.liferay.portal.kernel.exception.SystemException {
354 return getService()
355 .getCompanyEntries(companyId, displayDate, status, start, end);
356 }
357
358
361 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
362 long companyId, java.util.Date displayDate, int status, int start,
363 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getService()
366 .getCompanyEntries(companyId, displayDate, status, start,
367 end, obc);
368 }
369
370 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
371 long companyId, java.util.Date displayDate,
372 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService()
375 .getCompanyEntries(companyId, displayDate, queryDefinition);
376 }
377
378
381 public static int getCompanyEntriesCount(long companyId,
382 java.util.Date displayDate, int status)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 return getService()
385 .getCompanyEntriesCount(companyId, displayDate, status);
386 }
387
388 public static int getCompanyEntriesCount(long companyId,
389 java.util.Date displayDate,
390 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getService()
393 .getCompanyEntriesCount(companyId, displayDate,
394 queryDefinition);
395 }
396
397 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
398 long entryId)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException {
401 return getService().getEntriesPrevAndNext(entryId);
402 }
403
404 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
405 long entryId)
406 throws com.liferay.portal.kernel.exception.PortalException,
407 com.liferay.portal.kernel.exception.SystemException {
408 return getService().getEntry(entryId);
409 }
410
411 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
412 long groupId, java.lang.String urlTitle)
413 throws com.liferay.portal.kernel.exception.PortalException,
414 com.liferay.portal.kernel.exception.SystemException {
415 return getService().getEntry(groupId, urlTitle);
416 }
417
418
421 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
422 long groupId, java.util.Date displayDate, int status, int start, int end)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 return getService()
425 .getGroupEntries(groupId, displayDate, status, start, end);
426 }
427
428
431 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
432 long groupId, java.util.Date displayDate, int status, int start,
433 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 return getService()
436 .getGroupEntries(groupId, displayDate, status, start, end,
437 obc);
438 }
439
440 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
441 long groupId, java.util.Date displayDate,
442 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
443 throws com.liferay.portal.kernel.exception.SystemException {
444 return getService()
445 .getGroupEntries(groupId, displayDate, queryDefinition);
446 }
447
448
451 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
452 long groupId, int status, int start, int end)
453 throws com.liferay.portal.kernel.exception.SystemException {
454 return getService().getGroupEntries(groupId, status, start, end);
455 }
456
457
460 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
461 long groupId, int status, int start, int end,
462 com.liferay.portal.kernel.util.OrderByComparator obc)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService().getGroupEntries(groupId, status, start, end, obc);
465 }
466
467 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
468 long groupId,
469 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService().getGroupEntries(groupId, queryDefinition);
472 }
473
474
477 public static int getGroupEntriesCount(long groupId,
478 java.util.Date displayDate, int status)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getService().getGroupEntriesCount(groupId, displayDate, status);
481 }
482
483 public static int getGroupEntriesCount(long groupId,
484 java.util.Date displayDate,
485 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
486 throws com.liferay.portal.kernel.exception.SystemException {
487 return getService()
488 .getGroupEntriesCount(groupId, displayDate, queryDefinition);
489 }
490
491
494 public static int getGroupEntriesCount(long groupId, int status)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().getGroupEntriesCount(groupId, status);
497 }
498
499 public static int getGroupEntriesCount(long groupId,
500 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getService().getGroupEntriesCount(groupId, queryDefinition);
503 }
504
505
508 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
509 long companyId, long groupId, java.util.Date displayDate, int status,
510 int start, int end)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getService()
513 .getGroupsEntries(companyId, groupId, displayDate, status,
514 start, end);
515 }
516
517 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
518 long companyId, long groupId, java.util.Date displayDate,
519 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
520 throws com.liferay.portal.kernel.exception.SystemException {
521 return getService()
522 .getGroupsEntries(companyId, groupId, displayDate,
523 queryDefinition);
524 }
525
526
530 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
531 long groupId, long userId, java.util.Date displayDate, int status,
532 int start, int end)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService()
535 .getGroupUserEntries(groupId, userId, displayDate, status,
536 start, end);
537 }
538
539
543 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
544 long groupId, long userId, java.util.Date displayDate, int status,
545 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getService()
548 .getGroupUserEntries(groupId, userId, displayDate, status,
549 start, end, obc);
550 }
551
552 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
553 long groupId, long userId, java.util.Date displayDate,
554 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
555 throws com.liferay.portal.kernel.exception.SystemException {
556 return getService()
557 .getGroupUserEntries(groupId, userId, displayDate,
558 queryDefinition);
559 }
560
561
565 public static int getGroupUserEntriesCount(long groupId, long userId,
566 java.util.Date displayDate, int status)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService()
569 .getGroupUserEntriesCount(groupId, userId, displayDate,
570 status);
571 }
572
573 public static int getGroupUserEntriesCount(long groupId, long userId,
574 java.util.Date displayDate,
575 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
576 throws com.liferay.portal.kernel.exception.SystemException {
577 return getService()
578 .getGroupUserEntriesCount(groupId, userId, displayDate,
579 queryDefinition);
580 }
581
582 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getService().getNoAssetEntries();
585 }
586
587
590 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
591 long organizationId, java.util.Date displayDate, int status, int start,
592 int end) throws com.liferay.portal.kernel.exception.SystemException {
593 return getService()
594 .getOrganizationEntries(organizationId, displayDate, status,
595 start, end);
596 }
597
598
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, com.liferay.portal.kernel.util.OrderByComparator obc)
604 throws com.liferay.portal.kernel.exception.SystemException {
605 return getService()
606 .getOrganizationEntries(organizationId, displayDate, status,
607 start, end, obc);
608 }
609
610 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
611 long organizationId, java.util.Date displayDate,
612 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
613 throws com.liferay.portal.kernel.exception.SystemException {
614 return getService()
615 .getOrganizationEntries(organizationId, displayDate,
616 queryDefinition);
617 }
618
619
623 public static int getOrganizationEntriesCount(long organizationId,
624 java.util.Date displayDate, int status)
625 throws com.liferay.portal.kernel.exception.SystemException {
626 return getService()
627 .getOrganizationEntriesCount(organizationId, displayDate,
628 status);
629 }
630
631 public static int getOrganizationEntriesCount(long organizationId,
632 java.util.Date displayDate,
633 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getService()
636 .getOrganizationEntriesCount(organizationId, displayDate,
637 queryDefinition);
638 }
639
640 public static void moveEntriesToTrash(long groupId, long userId)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException {
643 getService().moveEntriesToTrash(groupId, userId);
644 }
645
646 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
647 long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
648 throws com.liferay.portal.kernel.exception.PortalException,
649 com.liferay.portal.kernel.exception.SystemException {
650 return getService().moveEntryToTrash(userId, entry);
651 }
652
653 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
654 long userId, long entryId)
655 throws com.liferay.portal.kernel.exception.PortalException,
656 com.liferay.portal.kernel.exception.SystemException {
657 return getService().moveEntryToTrash(userId, entryId);
658 }
659
660 public static void restoreEntryFromTrash(long userId, long entryId)
661 throws com.liferay.portal.kernel.exception.PortalException,
662 com.liferay.portal.kernel.exception.SystemException {
663 getService().restoreEntryFromTrash(userId, entryId);
664 }
665
666 public static void subscribe(long userId, long groupId)
667 throws com.liferay.portal.kernel.exception.PortalException,
668 com.liferay.portal.kernel.exception.SystemException {
669 getService().subscribe(userId, groupId);
670 }
671
672 public static void unsubscribe(long userId, long groupId)
673 throws com.liferay.portal.kernel.exception.PortalException,
674 com.liferay.portal.kernel.exception.SystemException {
675 getService().unsubscribe(userId, groupId);
676 }
677
678 public static void updateAsset(long userId,
679 com.liferay.portlet.blogs.model.BlogsEntry entry,
680 long[] assetCategoryIds, java.lang.String[] assetTagNames,
681 long[] assetLinkEntryIds)
682 throws com.liferay.portal.kernel.exception.PortalException,
683 com.liferay.portal.kernel.exception.SystemException {
684 getService()
685 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
686 assetLinkEntryIds);
687 }
688
689 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
690 long userId, long entryId, java.lang.String title,
691 java.lang.String description, java.lang.String content,
692 int displayDateMonth, int displayDateDay, int displayDateYear,
693 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
694 boolean allowTrackbacks, java.lang.String[] trackbacks,
695 boolean smallImage, java.lang.String smallImageURL,
696 java.lang.String smallImageFileName,
697 java.io.InputStream smallImageInputStream,
698 com.liferay.portal.service.ServiceContext serviceContext)
699 throws com.liferay.portal.kernel.exception.PortalException,
700 com.liferay.portal.kernel.exception.SystemException {
701 return getService()
702 .updateEntry(userId, entryId, title, description, content,
703 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
704 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
705 smallImage, smallImageURL, smallImageFileName,
706 smallImageInputStream, serviceContext);
707 }
708
709 public static void updateEntryResources(
710 com.liferay.portlet.blogs.model.BlogsEntry entry,
711 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException {
714 getService()
715 .updateEntryResources(entry, groupPermissions, guestPermissions);
716 }
717
718 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
719 long userId, long entryId, int status,
720 com.liferay.portal.service.ServiceContext serviceContext)
721 throws com.liferay.portal.kernel.exception.PortalException,
722 com.liferay.portal.kernel.exception.SystemException {
723 return getService().updateStatus(userId, entryId, status, serviceContext);
724 }
725
726 public static BlogsEntryLocalService getService() {
727 if (_service == null) {
728 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
729
730 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
731 "_service");
732 }
733
734 return _service;
735 }
736
737
740 public void setService(BlogsEntryLocalService service) {
741 }
742
743 private static BlogsEntryLocalService _service;
744 }