001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PermissionedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface BookmarksFolderLocalService extends BaseLocalService,
045 PermissionedModelLocalService {
046
051
052
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
060 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
061
062 public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
063 long userId, long parentFolderId, java.lang.String name,
064 java.lang.String description,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException;
067
068
074 public com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
075 long folderId);
076
077
083 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
084 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteBookmarksFolder(
085 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteBookmarksFolder(
096 long folderId)
097 throws com.liferay.portal.kernel.exception.PortalException;
098
099 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
100 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
101 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteFolder(
102 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
103 throws com.liferay.portal.kernel.exception.PortalException;
104
105 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
106 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
107 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteFolder(
108 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
109 boolean includeTrashedEntries)
110 throws com.liferay.portal.kernel.exception.PortalException;
111
112 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
113 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteFolder(
114 long folderId)
115 throws com.liferay.portal.kernel.exception.PortalException;
116
117 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
118 public com.liferay.portlet.bookmarks.model.BookmarksFolder deleteFolder(
119 long folderId, boolean includeTrashedEntries)
120 throws com.liferay.portal.kernel.exception.PortalException;
121
122 public void deleteFolders(long groupId)
123 throws com.liferay.portal.kernel.exception.PortalException;
124
125
128 @Override
129 public com.liferay.portal.model.PersistedModel deletePersistedModel(
130 com.liferay.portal.model.PersistedModel persistedModel)
131 throws com.liferay.portal.kernel.exception.PortalException;
132
133 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
134
135
141 public <T> java.util.List<T> dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
143
144
156 public <T> java.util.List<T> dynamicQuery(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158 int end);
159
160
173 public <T> java.util.List<T> dynamicQuery(
174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175 int end,
176 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
177
178
184 public long dynamicQueryCount(
185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
186
187
194 public long dynamicQueryCount(
195 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
196 com.liferay.portal.kernel.dao.orm.Projection projection);
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchBookmarksFolder(
200 long folderId);
201
202
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchBookmarksFolderByUuidAndGroupId(
211 java.lang.String uuid, long groupId);
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
215
216
221 public java.lang.String getBeanIdentifier();
222
223
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
232 long folderId)
233 throws com.liferay.portal.kernel.exception.PortalException;
234
235
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolderByUuidAndGroupId(
245 java.lang.String uuid, long groupId)
246 throws com.liferay.portal.kernel.exception.PortalException;
247
248
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
261 int start, int end);
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(
265 java.lang.String uuid, long companyId);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(
269 java.lang.String uuid, long companyId, int start, int end,
270 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.bookmarks.model.BookmarksFolder> orderByComparator);
271
272
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public int getBookmarksFoldersCount();
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
282 long companyId, int start, int end);
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getCompanyFoldersCount(long companyId);
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
289 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
293 long folderId)
294 throws com.liferay.portal.kernel.exception.PortalException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
298 long groupId);
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
302 long groupId, long parentFolderId);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
306 long groupId, long parentFolderId, int start, int end);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
310 long groupId, long parentFolderId, int status, int start, int end);
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
314 long folderId);
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
318 long folderId, int status);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
322 long folderId, int status, int start, int end);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getFoldersAndEntriesCount(long groupId, long folderId, int status);
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public int getFoldersCount(long groupId, long parentFolderId);
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public int getFoldersCount(long groupId, long parentFolderId, int status);
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getNoAssetFolders();
335
336 @Override
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public com.liferay.portal.model.PersistedModel getPersistedModel(
339 java.io.Serializable primaryKeyObj)
340 throws com.liferay.portal.kernel.exception.PortalException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
344 long groupId, long folderId);
345
346 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
347 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(
348 long folderId, long parentFolderId)
349 throws com.liferay.portal.kernel.exception.PortalException;
350
351 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
352 long userId, long folderId, long parentFolderId)
353 throws com.liferay.portal.kernel.exception.PortalException;
354
355 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
356 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
357 long userId, long folderId)
358 throws com.liferay.portal.kernel.exception.PortalException;
359
360 public void rebuildTree(long companyId)
361 throws com.liferay.portal.kernel.exception.PortalException;
362
363 public void rebuildTree(long companyId, long parentFolderId,
364 java.lang.String parentTreePath, boolean reindex)
365 throws com.liferay.portal.kernel.exception.PortalException;
366
367 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
368 public void restoreFolderFromTrash(long userId, long folderId)
369 throws com.liferay.portal.kernel.exception.PortalException;
370
371
376 public void setBeanIdentifier(java.lang.String beanIdentifier);
377
378 public void subscribeFolder(long userId, long groupId, long folderId)
379 throws com.liferay.portal.kernel.exception.PortalException;
380
381 public void unsubscribeFolder(long userId, long groupId, long folderId)
382 throws com.liferay.portal.kernel.exception.PortalException;
383
384 public void updateAsset(long userId,
385 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
386 long[] assetCategoryIds, java.lang.String[] assetTagNames,
387 long[] assetLinkEntryIds)
388 throws com.liferay.portal.kernel.exception.PortalException;
389
390
396 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
397 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
398 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
399
400 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
401 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
402 long userId, long folderId, long parentFolderId, java.lang.String name,
403 java.lang.String description, boolean mergeWithParentFolder,
404 com.liferay.portal.service.ServiceContext serviceContext)
405 throws com.liferay.portal.kernel.exception.PortalException;
406
407 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateStatus(
408 long userId,
409 com.liferay.portlet.bookmarks.model.BookmarksFolder folder, int status)
410 throws com.liferay.portal.kernel.exception.PortalException;
411 }