001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class BookmarksEntryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
049 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addBookmarksEntry(bookmarksEntry);
052 }
053
054
060 public static com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
061 long entryId) {
062 return getService().createBookmarksEntry(entryId);
063 }
064
065
073 public static com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
074 long entryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteBookmarksEntry(entryId);
078 }
079
080
087 public static com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
088 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteBookmarksEntry(bookmarksEntry);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntry(
184 long entryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchBookmarksEntry(entryId);
187 }
188
189
197 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntryByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService()
201 .fetchBookmarksEntryByUuidAndCompanyId(uuid, companyId);
202 }
203
204
212 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntryByUuidAndGroupId(
213 java.lang.String uuid, long groupId)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().fetchBookmarksEntryByUuidAndGroupId(uuid, groupId);
216 }
217
218
226 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
227 long entryId)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException {
230 return getService().getBookmarksEntry(entryId);
231 }
232
233 public static com.liferay.portal.model.PersistedModel getPersistedModel(
234 java.io.Serializable primaryKeyObj)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService().getPersistedModel(primaryKeyObj);
238 }
239
240
249 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndCompanyId(
250 java.lang.String uuid, long companyId)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 return getService().getBookmarksEntryByUuidAndCompanyId(uuid, companyId);
254 }
255
256
265 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
266 java.lang.String uuid, long groupId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService().getBookmarksEntryByUuidAndGroupId(uuid, groupId);
270 }
271
272
284 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
285 int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getBookmarksEntries(start, end);
288 }
289
290
296 public static int getBookmarksEntriesCount()
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getService().getBookmarksEntriesCount();
299 }
300
301
308 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
309 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().updateBookmarksEntry(bookmarksEntry);
312 }
313
314
319 public static java.lang.String getBeanIdentifier() {
320 return getService().getBeanIdentifier();
321 }
322
323
328 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
329 getService().setBeanIdentifier(beanIdentifier);
330 }
331
332 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
333 long userId, long groupId, long folderId, java.lang.String name,
334 java.lang.String url, java.lang.String description,
335 com.liferay.portal.service.ServiceContext serviceContext)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getService()
339 .addEntry(userId, groupId, folderId, name, url, description,
340 serviceContext);
341 }
342
343 public static void deleteEntries(long groupId, long folderId)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 getService().deleteEntries(groupId, folderId);
347 }
348
349 public static void deleteEntries(long groupId, long folderId,
350 boolean includeTrashedEntries)
351 throws com.liferay.portal.kernel.exception.PortalException,
352 com.liferay.portal.kernel.exception.SystemException {
353 getService().deleteEntries(groupId, folderId, includeTrashedEntries);
354 }
355
356 public static com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
357 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 return getService().deleteEntry(entry);
361 }
362
363 public static com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
364 long entryId)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException {
367 return getService().deleteEntry(entryId);
368 }
369
370 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
371 long groupId, long folderId, int start, int end)
372 throws com.liferay.portal.kernel.exception.SystemException {
373 return getService().getEntries(groupId, folderId, start, end);
374 }
375
376 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
377 long groupId, long folderId, int start, int end,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService()
381 .getEntries(groupId, folderId, start, end, orderByComparator);
382 }
383
384 public static int getEntriesCount(long groupId, long folderId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getService().getEntriesCount(groupId, folderId);
387 }
388
389 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
390 long entryId)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException {
393 return getService().getEntry(entryId);
394 }
395
396 public static int getFoldersEntriesCount(long groupId,
397 java.util.List<java.lang.Long> folderIds)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getService().getFoldersEntriesCount(groupId, folderIds);
400 }
401
402 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
403 long groupId, int start, int end)
404 throws com.liferay.portal.kernel.exception.SystemException {
405 return getService().getGroupEntries(groupId, start, end);
406 }
407
408 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
409 long groupId, long userId, int start, int end)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService().getGroupEntries(groupId, userId, start, end);
412 }
413
414 public static int getGroupEntriesCount(long groupId)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getService().getGroupEntriesCount(groupId);
417 }
418
419 public static int getGroupEntriesCount(long groupId, long userId)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getService().getGroupEntriesCount(groupId, userId);
422 }
423
424 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getService().getNoAssetEntries();
427 }
428
429 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
430 long entryId, long parentFolderId)
431 throws com.liferay.portal.kernel.exception.PortalException,
432 com.liferay.portal.kernel.exception.SystemException {
433 return getService().moveEntry(entryId, parentFolderId);
434 }
435
436 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
437 long userId, long entryId, long parentFolderId)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException {
440 return getService().moveEntryFromTrash(userId, entryId, parentFolderId);
441 }
442
443 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
444 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
445 throws com.liferay.portal.kernel.exception.PortalException,
446 com.liferay.portal.kernel.exception.SystemException {
447 return getService().moveEntryToTrash(userId, entry);
448 }
449
450 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
451 long userId, long entryId)
452 throws com.liferay.portal.kernel.exception.PortalException,
453 com.liferay.portal.kernel.exception.SystemException {
454 return getService().moveEntryToTrash(userId, entryId);
455 }
456
457 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
458 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
459 throws com.liferay.portal.kernel.exception.SystemException {
460 return getService().openEntry(userId, entry);
461 }
462
463 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
464 long userId, long entryId)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException {
467 return getService().openEntry(userId, entryId);
468 }
469
470 public static com.liferay.portlet.bookmarks.model.BookmarksEntry restoreEntryFromTrash(
471 long userId, long entryId)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 return getService().restoreEntryFromTrash(userId, entryId);
475 }
476
477 public static com.liferay.portal.kernel.search.Hits search(long groupId,
478 long userId, long creatorUserId, int status, int start, int end)
479 throws com.liferay.portal.kernel.exception.PortalException,
480 com.liferay.portal.kernel.exception.SystemException {
481 return getService()
482 .search(groupId, userId, creatorUserId, status, start, end);
483 }
484
485 public static void subscribeEntry(long userId, long entryId)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 getService().subscribeEntry(userId, entryId);
489 }
490
491 public static void unsubscribeEntry(long userId, long entryId)
492 throws com.liferay.portal.kernel.exception.PortalException,
493 com.liferay.portal.kernel.exception.SystemException {
494 getService().unsubscribeEntry(userId, entryId);
495 }
496
497 public static void updateAsset(long userId,
498 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
499 long[] assetCategoryIds, java.lang.String[] assetTagNames,
500 long[] assetLinkEntryIds)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException {
503 getService()
504 .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
505 assetLinkEntryIds);
506 }
507
508 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
509 long userId, long entryId, long groupId, long folderId,
510 java.lang.String name, java.lang.String url,
511 java.lang.String description,
512 com.liferay.portal.service.ServiceContext serviceContext)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException {
515 return getService()
516 .updateEntry(userId, entryId, groupId, folderId, name, url,
517 description, serviceContext);
518 }
519
520 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateStatus(
521 long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
522 int status)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException {
525 return getService().updateStatus(userId, entry, status);
526 }
527
528 public static BookmarksEntryLocalService getService() {
529 if (_service == null) {
530 _service = (BookmarksEntryLocalService)PortalBeanLocatorUtil.locate(BookmarksEntryLocalService.class.getName());
531
532 ReferenceRegistry.registerReference(BookmarksEntryLocalServiceUtil.class,
533 "_service");
534 }
535
536 return _service;
537 }
538
539
542 public void setService(BookmarksEntryLocalService service) {
543 }
544
545 private static BookmarksEntryLocalService _service;
546 }