1
14
15 package com.liferay.portlet.bookmarks.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BookmarksEntryServiceUtil {
40 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
41 long folderId, java.lang.String name, java.lang.String url,
42 java.lang.String comments,
43 com.liferay.portal.service.ServiceContext serviceContext)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException {
46 return getService()
47 .addEntry(folderId, name, url, comments, serviceContext);
48 }
49
50 public static void deleteEntry(long entryId)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 getService().deleteEntry(entryId);
54 }
55
56 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
57 long entryId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException {
60 return getService().getEntry(entryId);
61 }
62
63 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
64 long entryId)
65 throws com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException {
67 return getService().openEntry(entryId);
68 }
69
70 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
71 long entryId, long folderId, java.lang.String name,
72 java.lang.String url, java.lang.String comments,
73 com.liferay.portal.service.ServiceContext serviceContext)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException {
76 return getService()
77 .updateEntry(entryId, folderId, name, url, comments,
78 serviceContext);
79 }
80
81 public static BookmarksEntryService getService() {
82 if (_service == null) {
83 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
84 }
85
86 return _service;
87 }
88
89 public void setService(BookmarksEntryService service) {
90 _service = service;
91 }
92
93 private static BookmarksEntryService _service;
94 }