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
033 public class BookmarksEntryServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
059 long groupId, long folderId, java.lang.String name,
060 java.lang.String url, java.lang.String description,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addEntry(groupId, folderId, name, url, description,
066 serviceContext);
067 }
068
069 public static void deleteEntry(long entryId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 getService().deleteEntry(entryId);
073 }
074
075 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
076 long groupId, long folderId, int start, int end)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return getService().getEntries(groupId, folderId, start, end);
079 }
080
081 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
082 long groupId, long folderId, int start, int end,
083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getService()
086 .getEntries(groupId, folderId, start, end, orderByComparator);
087 }
088
089 public static int getEntriesCount(long groupId, long folderId)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return getService().getEntriesCount(groupId, folderId);
092 }
093
094 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
095 long entryId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().getEntry(entryId);
099 }
100
101 public static int getFoldersEntriesCount(long groupId,
102 java.util.List<java.lang.Long> folderIds)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().getFoldersEntriesCount(groupId, folderIds);
105 }
106
107 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
108 long groupId, int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getGroupEntries(groupId, start, end);
111 }
112
113 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
114 long groupId, long userId, int start, int end)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService().getGroupEntries(groupId, userId, start, end);
117 }
118
119 public static int getGroupEntriesCount(long groupId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().getGroupEntriesCount(groupId);
122 }
123
124 public static int getGroupEntriesCount(long groupId, long userId)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getService().getGroupEntriesCount(groupId, userId);
127 }
128
129 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
130 long entryId)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getService().openEntry(entryId);
134 }
135
136 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
137 long entryId, long groupId, long folderId, java.lang.String name,
138 java.lang.String url, java.lang.String description,
139 com.liferay.portal.service.ServiceContext serviceContext)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService()
143 .updateEntry(entryId, groupId, folderId, name, url,
144 description, serviceContext);
145 }
146
147 public static BookmarksEntryService getService() {
148 if (_service == null) {
149 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
150
151 ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
152 "_service");
153 }
154
155 return _service;
156 }
157
158
161 public void setService(BookmarksEntryService service) {
162 }
163
164 private static BookmarksEntryService _service;
165 }