001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface BookmarksEntryLocalService {
043
050 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
051 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
061 long entryId);
062
063
070 public void deleteBookmarksEntry(long entryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteBookmarksEntry(
081 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
156 long entryId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getBookmarksEntriesCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
210 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
222 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
227 long userId, long groupId, long folderId, java.lang.String name,
228 java.lang.String url, java.lang.String comments,
229 com.liferay.portal.service.ServiceContext serviceContext)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 public void addEntryResources(
234 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
235 boolean addCommunityPermissions, boolean addGuestPermissions)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public void addEntryResources(
240 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
241 java.lang.String[] communityPermissions,
242 java.lang.String[] guestPermissions)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addEntryResources(long entryId,
247 boolean addCommunityPermissions, boolean addGuestPermissions)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public void addEntryResources(long entryId,
252 java.lang.String[] communityPermissions,
253 java.lang.String[] guestPermissions)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public void deleteEntries(long groupId, long folderId)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void deleteEntry(
262 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteEntry(long entryId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
272 long groupId, long folderId, int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
277 long groupId, long folderId, int start, int end,
278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getEntriesCount(long groupId, long folderId)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
287 long entryId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getFoldersEntriesCount(long groupId,
293 java.util.List<java.lang.Long> folderIds)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
298 long groupId, int start, int end)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
303 long groupId, long userId, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public int getGroupEntriesCount(long groupId)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public int getGroupEntriesCount(long groupId, long userId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
319 long userId, long entryId)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 public void updateAsset(long userId,
324 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
325 long[] assetCategoryIds, java.lang.String[] assetTagNames)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
330 long userId, long entryId, long groupId, long folderId,
331 java.lang.String name, java.lang.String url, java.lang.String comments,
332 com.liferay.portal.service.ServiceContext serviceContext)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335 }