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