001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PermissionedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface BookmarksEntryLocalService extends BaseLocalService,
041 PermissionedModelLocalService {
042
047
048
055 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
056 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
066 long entryId);
067
068
076 public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
077 long entryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
089 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntry(
158 long entryId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
171 long entryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getBookmarksEntriesCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
231 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
239 public java.lang.String getBeanIdentifier();
240
241
246 public void setBeanIdentifier(java.lang.String beanIdentifier);
247
248 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
249 long userId, long groupId, long folderId, java.lang.String name,
250 java.lang.String url, java.lang.String description,
251 com.liferay.portal.service.ServiceContext serviceContext)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public void deleteEntries(long groupId, long folderId)
256 throws com.liferay.portal.kernel.exception.PortalException,
257 com.liferay.portal.kernel.exception.SystemException;
258
259 public void deleteEntries(long groupId, long folderId,
260 boolean includeTrashedEntries)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
265 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
270 long entryId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
276 long groupId, long folderId, int start, int end)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
281 long groupId, long folderId, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int getEntriesCount(long groupId, long folderId)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
291 long entryId)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int getFoldersEntriesCount(long groupId,
297 java.util.List<java.lang.Long> folderIds)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
302 long groupId, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
307 long groupId, long userId, int start, int end)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public int getGroupEntriesCount(long groupId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public int getGroupEntriesCount(long groupId, long userId)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
323 long entryId, long parentFolderId)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
328 long userId, long entryId, long parentFolderId)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
333 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
338 long userId, long entryId)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
343 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
347 long userId, long entryId)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException;
350
351 public com.liferay.portlet.bookmarks.model.BookmarksEntry restoreEntryFromTrash(
352 long userId, long entryId)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public void subscribeEntry(long userId, long entryId)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException;
359
360 public void unsubscribeEntry(long userId, long entryId)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364 public void updateAsset(long userId,
365 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
366 long[] assetCategoryIds, java.lang.String[] assetTagNames,
367 long[] assetLinkEntryIds)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
372 long userId, long entryId, long groupId, long folderId,
373 java.lang.String name, java.lang.String url,
374 java.lang.String description,
375 com.liferay.portal.service.ServiceContext serviceContext)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException;
378
379 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateStatus(
380 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
381 int status)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384 }