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, java.lang.String[] tagsEntries,
43 boolean addCommunityPermissions, boolean addGuestPermissions)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException, java.rmi.RemoteException {
46 return getService()
47 .addEntry(folderId, name, url, comments, tagsEntries,
48 addCommunityPermissions, addGuestPermissions);
49 }
50
51 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
52 long folderId, java.lang.String name, java.lang.String url,
53 java.lang.String comments, java.lang.String[] tagsEntries,
54 java.lang.String[] communityPermissions,
55 java.lang.String[] guestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 return getService()
59 .addEntry(folderId, name, url, comments, tagsEntries,
60 communityPermissions, guestPermissions);
61 }
62
63 public static void deleteEntry(long entryId)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException, java.rmi.RemoteException {
66 getService().deleteEntry(entryId);
67 }
68
69 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
70 long entryId)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException, java.rmi.RemoteException {
73 return getService().getEntry(entryId);
74 }
75
76 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
77 long entryId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException, java.rmi.RemoteException {
80 return getService().openEntry(entryId);
81 }
82
83 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
84 long entryId, long folderId, java.lang.String name,
85 java.lang.String url, java.lang.String comments,
86 java.lang.String[] tagsEntries)
87 throws com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException, java.rmi.RemoteException {
89 return getService()
90 .updateEntry(entryId, folderId, name, url, comments,
91 tagsEntries);
92 }
93
94 public static BookmarksEntryService getService() {
95 if (_service == null) {
96 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
97 }
98
99 return _service;
100 }
101
102 public void setService(BookmarksEntryService service) {
103 _service = service;
104 }
105
106 private static BookmarksEntryService _service;
107 }