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.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class BlogsEntryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
049 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addBlogsEntry(blogsEntry);
052 }
053
054
060 public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
061 long entryId) {
062 return getService().createBlogsEntry(entryId);
063 }
064
065
072 public static void deleteBlogsEntry(long entryId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteBlogsEntry(entryId);
076 }
077
078
084 public static void deleteBlogsEntry(
085 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteBlogsEntry(blogsEntry);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static 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 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
162 long entryId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchBlogsEntry(entryId);
165 }
166
167
175 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
176 long entryId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getBlogsEntry(entryId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
198 public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
203 }
204
205
217 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
218 int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService().getBlogsEntries(start, end);
221 }
222
223
229 public static int getBlogsEntriesCount()
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService().getBlogsEntriesCount();
232 }
233
234
241 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
242 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updateBlogsEntry(blogsEntry);
245 }
246
247
255 public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
256 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getService().updateBlogsEntry(blogsEntry, merge);
259 }
260
261
266 public static java.lang.String getBeanIdentifier() {
267 return getService().getBeanIdentifier();
268 }
269
270
275 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
276 getService().setBeanIdentifier(beanIdentifier);
277 }
278
279 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
280 long userId, java.lang.String title, java.lang.String description,
281 java.lang.String content, int displayDateMonth, int displayDateDay,
282 int displayDateYear, int displayDateHour, int displayDateMinute,
283 boolean allowPingbacks, boolean allowTrackbacks,
284 java.lang.String[] trackbacks, boolean smallImage,
285 java.lang.String smallImageURL, java.lang.String smallImageFileName,
286 java.io.InputStream smallImageInputStream,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService()
291 .addEntry(userId, title, description, content,
292 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
293 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
294 smallImage, smallImageURL, smallImageFileName,
295 smallImageInputStream, serviceContext);
296 }
297
298 public static void addEntryResources(
299 com.liferay.portlet.blogs.model.BlogsEntry entry,
300 boolean addGroupPermissions, boolean addGuestPermissions)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 getService()
304 .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
305 }
306
307 public static void addEntryResources(
308 com.liferay.portlet.blogs.model.BlogsEntry entry,
309 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 getService().addEntryResources(entry, groupPermissions, guestPermissions);
313 }
314
315 public static void addEntryResources(long entryId,
316 boolean addGroupPermissions, boolean addGuestPermissions)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 getService()
320 .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
321 }
322
323 public static void addEntryResources(long entryId,
324 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 getService()
328 .addEntryResources(entryId, groupPermissions, guestPermissions);
329 }
330
331 public static void deleteEntries(long groupId)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService().deleteEntries(groupId);
335 }
336
337 public static void deleteEntry(
338 com.liferay.portlet.blogs.model.BlogsEntry entry)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 getService().deleteEntry(entry);
342 }
343
344 public static void deleteEntry(long entryId)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException {
347 getService().deleteEntry(entryId);
348 }
349
350 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
351 long companyId, java.util.Date displayDate, int status, int start,
352 int end) throws com.liferay.portal.kernel.exception.SystemException {
353 return getService()
354 .getCompanyEntries(companyId, displayDate, status, start, end);
355 }
356
357 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
358 long companyId, java.util.Date displayDate, int status, int start,
359 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getService()
362 .getCompanyEntries(companyId, displayDate, status, start,
363 end, obc);
364 }
365
366 public static int getCompanyEntriesCount(long companyId,
367 java.util.Date displayDate, int status)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService()
370 .getCompanyEntriesCount(companyId, displayDate, status);
371 }
372
373 public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
374 long entryId)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 return getService().getEntriesPrevAndNext(entryId);
378 }
379
380 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
381 long entryId)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException {
384 return getService().getEntry(entryId);
385 }
386
387 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
388 long groupId, java.lang.String urlTitle)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException {
391 return getService().getEntry(groupId, urlTitle);
392 }
393
394 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
395 long groupId, java.util.Date displayDate, int status, int start, int end)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getService()
398 .getGroupEntries(groupId, displayDate, status, start, end);
399 }
400
401 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
402 long groupId, java.util.Date displayDate, int status, int start,
403 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
404 throws com.liferay.portal.kernel.exception.SystemException {
405 return getService()
406 .getGroupEntries(groupId, displayDate, status, start, end,
407 obc);
408 }
409
410 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
411 long groupId, int status, int start, int end)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getService().getGroupEntries(groupId, status, start, end);
414 }
415
416 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
417 long groupId, int status, int start, int end,
418 com.liferay.portal.kernel.util.OrderByComparator obc)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getService().getGroupEntries(groupId, status, start, end, obc);
421 }
422
423 public static int getGroupEntriesCount(long groupId,
424 java.util.Date displayDate, int status)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getService().getGroupEntriesCount(groupId, displayDate, status);
427 }
428
429 public static int getGroupEntriesCount(long groupId, int status)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 return getService().getGroupEntriesCount(groupId, status);
432 }
433
434 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
435 long companyId, long groupId, java.util.Date displayDate, int status,
436 int start, int end)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 return getService()
439 .getGroupsEntries(companyId, groupId, displayDate, status,
440 start, end);
441 }
442
443 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
444 long groupId, long userId, java.util.Date displayDate, int status,
445 int start, int end)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 return getService()
448 .getGroupUserEntries(groupId, userId, displayDate, status,
449 start, end);
450 }
451
452 public static 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 return getService()
457 .getGroupUserEntries(groupId, userId, displayDate, status,
458 start, end, obc);
459 }
460
461 public static int getGroupUserEntriesCount(long groupId, long userId,
462 java.util.Date displayDate, int status)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService()
465 .getGroupUserEntriesCount(groupId, userId, displayDate,
466 status);
467 }
468
469 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getService().getNoAssetEntries();
472 }
473
474 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
475 long organizationId, java.util.Date displayDate, int status, int start,
476 int end) throws com.liferay.portal.kernel.exception.SystemException {
477 return getService()
478 .getOrganizationEntries(organizationId, displayDate, status,
479 start, end);
480 }
481
482 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
483 long organizationId, java.util.Date displayDate, int status, int start,
484 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getService()
487 .getOrganizationEntries(organizationId, displayDate, status,
488 start, end, obc);
489 }
490
491 public static int getOrganizationEntriesCount(long organizationId,
492 java.util.Date displayDate, int status)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 return getService()
495 .getOrganizationEntriesCount(organizationId, displayDate,
496 status);
497 }
498
499 public static void subscribe(long userId, long groupId)
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException {
502 getService().subscribe(userId, groupId);
503 }
504
505 public static void unsubscribe(long userId, long groupId)
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException {
508 getService().unsubscribe(userId, groupId);
509 }
510
511 public static void updateAsset(long userId,
512 com.liferay.portlet.blogs.model.BlogsEntry entry,
513 long[] assetCategoryIds, java.lang.String[] assetTagNames,
514 long[] assetLinkEntryIds)
515 throws com.liferay.portal.kernel.exception.PortalException,
516 com.liferay.portal.kernel.exception.SystemException {
517 getService()
518 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
519 assetLinkEntryIds);
520 }
521
522 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
523 long userId, long entryId, java.lang.String title,
524 java.lang.String description, java.lang.String content,
525 int displayDateMonth, int displayDateDay, int displayDateYear,
526 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
527 boolean allowTrackbacks, java.lang.String[] trackbacks,
528 boolean smallImage, java.lang.String smallImageURL,
529 java.lang.String smallImageFileName,
530 java.io.InputStream smallImageInputStream,
531 com.liferay.portal.service.ServiceContext serviceContext)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException {
534 return getService()
535 .updateEntry(userId, entryId, title, description, content,
536 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
537 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
538 smallImage, smallImageURL, smallImageFileName,
539 smallImageInputStream, serviceContext);
540 }
541
542 public static void updateEntryResources(
543 com.liferay.portlet.blogs.model.BlogsEntry entry,
544 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
545 throws com.liferay.portal.kernel.exception.PortalException,
546 com.liferay.portal.kernel.exception.SystemException {
547 getService()
548 .updateEntryResources(entry, groupPermissions, guestPermissions);
549 }
550
551 public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
552 long userId, long entryId, int status,
553 com.liferay.portal.service.ServiceContext serviceContext)
554 throws com.liferay.portal.kernel.exception.PortalException,
555 com.liferay.portal.kernel.exception.SystemException {
556 return getService().updateStatus(userId, entryId, status, serviceContext);
557 }
558
559 public static BlogsEntryLocalService getService() {
560 if (_service == null) {
561 _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
562
563 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
564 "_service");
565 MethodCache.remove(BlogsEntryLocalService.class);
566 }
567
568 return _service;
569 }
570
571 public void setService(BlogsEntryLocalService service) {
572 MethodCache.remove(BlogsEntryLocalService.class);
573
574 _service = service;
575
576 ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
577 "_service");
578 MethodCache.remove(BlogsEntryLocalService.class);
579 }
580
581 private static BlogsEntryLocalService _service;
582 }