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