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
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
160 long entryId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.PersistedModel getPersistedModel(
166 java.io.Serializable primaryKeyObj)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
181 java.lang.String uuid, long groupId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getBookmarksEntriesCount()
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
219 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
220 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
231 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
232 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
233 boolean merge)
234 throws com.liferay.portal.kernel.exception.SystemException;
235
236
241 public java.lang.String getBeanIdentifier();
242
243
248 public void setBeanIdentifier(java.lang.String beanIdentifier);
249
250 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
251 long userId, long groupId, long folderId, java.lang.String name,
252 java.lang.String url, java.lang.String description,
253 com.liferay.portal.service.ServiceContext serviceContext)
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 long[] assetLinkEntryIds)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
331 long userId, long entryId, long groupId, long folderId,
332 java.lang.String name, java.lang.String url,
333 java.lang.String description,
334 com.liferay.portal.service.ServiceContext serviceContext)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337 }