001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class BookmarksEntryServiceUtil {
033 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
034 long groupId, long folderId, java.lang.String name,
035 java.lang.String url, java.lang.String comments,
036 com.liferay.portal.service.ServiceContext serviceContext)
037 throws com.liferay.portal.kernel.exception.PortalException,
038 com.liferay.portal.kernel.exception.SystemException {
039 return getService()
040 .addEntry(groupId, folderId, name, url, comments,
041 serviceContext);
042 }
043
044 public static void deleteEntry(long entryId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteEntry(entryId);
048 }
049
050 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
051 long entryId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 return getService().getEntry(entryId);
055 }
056
057 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
058 long entryId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return getService().openEntry(entryId);
062 }
063
064 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
065 long entryId, long groupId, long folderId, java.lang.String name,
066 java.lang.String url, java.lang.String comments,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .updateEntry(entryId, groupId, folderId, name, url,
072 comments, serviceContext);
073 }
074
075 public static BookmarksEntryService getService() {
076 if (_service == null) {
077 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
078 }
079
080 return _service;
081 }
082
083 public void setService(BookmarksEntryService service) {
084 _service = service;
085 }
086
087 private static BookmarksEntryService _service;
088 }