1
14
15 package com.liferay.portlet.bookmarks.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface BookmarksEntryLocalService {
50 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
51 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
55 long entryId);
56
57 public void deleteBookmarksEntry(long entryId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteBookmarksEntry(
62 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
75 long entryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
81 int start, int end) throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getBookmarksEntriesCount()
85 throws com.liferay.portal.SystemException;
86
87 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
88 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
92 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
93 boolean merge) throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
96 long userId, long folderId, java.lang.String name,
97 java.lang.String url, java.lang.String comments,
98 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
99 boolean addGuestPermissions)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
104 long userId, long folderId, java.lang.String name,
105 java.lang.String url, java.lang.String comments,
106 java.lang.String[] tagsEntries,
107 java.lang.String[] communityPermissions,
108 java.lang.String[] guestPermissions)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
113 java.lang.String uuid, long userId, long folderId,
114 java.lang.String name, java.lang.String url, java.lang.String comments,
115 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
116 boolean addGuestPermissions)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119
120 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
121 java.lang.String uuid, long userId, long folderId,
122 java.lang.String name, java.lang.String url, java.lang.String comments,
123 java.lang.String[] tagsEntries,
124 java.lang.Boolean addCommunityPermissions,
125 java.lang.Boolean addGuestPermissions,
126 java.lang.String[] communityPermissions,
127 java.lang.String[] guestPermissions)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public void addEntryResources(
132 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public void addEntryResources(
138 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public void addEntryResources(long entryId,
145 boolean addCommunityPermissions, boolean addGuestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void addEntryResources(long entryId,
150 java.lang.String[] communityPermissions,
151 java.lang.String[] guestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void deleteEntries(long folderId)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void deleteEntry(
160 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deleteEntry(long entryId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
170 long folderId, int start, int end)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
175 long folderId, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getEntriesCount(long folderId)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
185 long entryId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public int getFoldersEntriesCount(java.util.List<Long> folderIds)
191 throws com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
195 long groupId, int start, int end)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
200 long groupId, long userId, int start, int end)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public int getGroupEntriesCount(long groupId)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int getGroupEntriesCount(long groupId, long userId)
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
213 throws com.liferay.portal.SystemException;
214
215 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
216 long entryId)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public void reIndex(
222 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
223 throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
227
228 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
229 long userId, long entryId, long folderId, java.lang.String name,
230 java.lang.String url, java.lang.String comments,
231 java.lang.String[] tagsEntries)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException;
234
235 public void updateTagsAsset(long userId,
236 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
237 java.lang.String[] tagsEntries)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException;
240 }