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 BookmarksEntryLocalService
040 extends PermissionedModelLocalService {
041
046
047
054 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
055 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
065 long entryId);
066
067
074 public void deleteBookmarksEntry(long entryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078
084 public void deleteBookmarksEntry(
085 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
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.BookmarksEntry fetchBookmarksEntry(
152 long entryId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
165 long entryId)
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.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
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.BookmarksEntry> getBookmarksEntries(
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 getBookmarksEntriesCount()
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217
224 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
225 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228
236 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
237 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
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.BookmarksEntry addEntry(
256 long userId, long groupId, long folderId, java.lang.String name,
257 java.lang.String url, 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 deleteEntries(long groupId, long folderId)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteEntry(
267 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void deleteEntry(long entryId)
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.BookmarksEntry> getEntries(
277 long groupId, long folderId, int start, int end)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
282 long groupId, long folderId, int start, int end,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public int getEntriesCount(long groupId, long folderId)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
292 long entryId)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public int getFoldersEntriesCount(long groupId,
298 java.util.List<java.lang.Long> folderIds)
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, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
308 long groupId, long userId, int start, int end)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public int getGroupEntriesCount(long groupId)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public int getGroupEntriesCount(long groupId, long userId)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
324 long userId, long entryId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public void updateAsset(long userId,
329 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
330 long[] assetCategoryIds, java.lang.String[] assetTagNames,
331 long[] assetLinkEntryIds)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
336 long userId, long entryId, long groupId, long folderId,
337 java.lang.String name, java.lang.String url,
338 java.lang.String description,
339 com.liferay.portal.service.ServiceContext serviceContext)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342 }