1
19
20 package com.liferay.portlet.bookmarks.service;
21
22
23
44 public class BookmarksEntryServiceUtil {
45 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
46 long folderId, java.lang.String name, java.lang.String url,
47 java.lang.String comments, java.lang.String[] tagsEntries,
48 boolean addCommunityPermissions, boolean addGuestPermissions)
49 throws com.liferay.portal.PortalException,
50 com.liferay.portal.SystemException, java.rmi.RemoteException {
51 return getService()
52 .addEntry(folderId, name, url, comments, tagsEntries,
53 addCommunityPermissions, addGuestPermissions);
54 }
55
56 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
57 long folderId, java.lang.String name, java.lang.String url,
58 java.lang.String comments, java.lang.String[] tagsEntries,
59 java.lang.String[] communityPermissions,
60 java.lang.String[] guestPermissions)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException, java.rmi.RemoteException {
63 return getService()
64 .addEntry(folderId, name, url, comments, tagsEntries,
65 communityPermissions, guestPermissions);
66 }
67
68 public static void deleteEntry(long entryId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException, java.rmi.RemoteException {
71 getService().deleteEntry(entryId);
72 }
73
74 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
75 long entryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 return getService().getEntry(entryId);
79 }
80
81 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
82 long entryId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService().openEntry(entryId);
86 }
87
88 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
89 long entryId, long folderId, java.lang.String name,
90 java.lang.String url, java.lang.String comments,
91 java.lang.String[] tagsEntries)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 return getService()
95 .updateEntry(entryId, folderId, name, url, comments,
96 tagsEntries);
97 }
98
99 public static BookmarksEntryService getService() {
100 if (_service == null) {
101 throw new RuntimeException("BookmarksEntryService is not set");
102 }
103
104 return _service;
105 }
106
107 public void setService(BookmarksEntryService service) {
108 _service = service;
109 }
110
111 private static BookmarksEntryService _service;
112 }