1
22
23 package com.liferay.portlet.bookmarks.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface BookmarksEntryService {
58 public 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 boolean addCommunityPermissions, boolean addGuestPermissions)
62 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException;
64
65 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
66 long folderId, java.lang.String name, java.lang.String url,
67 java.lang.String comments, java.lang.String[] tagsEntries,
68 java.lang.String[] communityPermissions,
69 java.lang.String[] guestPermissions)
70 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException;
72
73 public void deleteEntry(long entryId)
74 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
79 long entryId)
80 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
84 long entryId)
85 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 public 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 java.rmi.RemoteException, com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException;
94 }