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.PermissionedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface BookmarksFolderLocalService
040 extends PermissionedModelLocalService {
041
046
047
054 public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
055 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
065 long folderId);
066
067
074 public void deleteBookmarksFolder(long folderId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078
084 public void deleteBookmarksFolder(
085 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088
095 @SuppressWarnings("rawtypes")
096 public java.util.List dynamicQuery(
097 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100
113 @SuppressWarnings("rawtypes")
114 public java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException;
117
118
132 @SuppressWarnings("rawtypes")
133 public java.util.List dynamicQuery(
134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135 int end,
136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139
146 public long dynamicQueryCount(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchBookmarksFolder(
152 long folderId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
165 long folderId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.PersistedModel getPersistedModel(
171 java.io.Serializable primaryKeyObj)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolderByUuidAndGroupId(
186 java.lang.String uuid, long groupId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public int getBookmarksFoldersCount()
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217
224 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
225 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228
236 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
237 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
238 boolean merge)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241
246 public java.lang.String getBeanIdentifier();
247
248
253 public void setBeanIdentifier(java.lang.String beanIdentifier);
254
255 public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
256 long userId, long parentFolderId, java.lang.String name,
257 java.lang.String description,
258 com.liferay.portal.service.ServiceContext serviceContext)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException;
261
262 public void deleteFolder(
263 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void deleteFolder(long folderId)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void deleteFolders(long groupId)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
277 long companyId, int start, int end)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public int getCompanyFoldersCount(long companyId)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
286 long folderId)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
292 long groupId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
297 long groupId, long parentFolderId)
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.BookmarksFolder> getFolders(
302 long groupId, long parentFolderId, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getFoldersCount(long groupId, long parentFolderId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
311 long groupId, long folderId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
315 long folderId, long parentFolderId, java.lang.String name,
316 java.lang.String description, boolean mergeWithParentFolder,
317 com.liferay.portal.service.ServiceContext serviceContext)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320 }