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