001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class BookmarksEntryServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
063 long groupId, long folderId, java.lang.String name,
064 java.lang.String url, java.lang.String description,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService()
069 .addEntry(groupId, folderId, name, url, description,
070 serviceContext);
071 }
072
073 public static void deleteEntry(long entryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteEntry(entryId);
077 }
078
079 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
080 long groupId, long folderId, int start, int end)
081 throws com.liferay.portal.kernel.exception.SystemException {
082 return getService().getEntries(groupId, folderId, start, end);
083 }
084
085 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
086 long groupId, long folderId, int start, int end,
087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService()
090 .getEntries(groupId, folderId, start, end, orderByComparator);
091 }
092
093 public static int getEntriesCount(long groupId, long folderId)
094 throws com.liferay.portal.kernel.exception.SystemException {
095 return getService().getEntriesCount(groupId, folderId);
096 }
097
098 public static int getEntriesCount(long groupId, long folderId, int status)
099 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getEntriesCount(groupId, folderId, status);
101 }
102
103 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
104 long entryId)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 return getService().getEntry(entryId);
108 }
109
110 public static int getFoldersEntriesCount(long groupId,
111 java.util.List<java.lang.Long> folderIds)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().getFoldersEntriesCount(groupId, folderIds);
114 }
115
116 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
117 long groupId, int start, int end)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService().getGroupEntries(groupId, start, end);
121 }
122
123 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
124 long groupId, long userId, int start, int end)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService().getGroupEntries(groupId, userId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
131 long groupId, long userId, long rootFolderId, int start, int end)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException {
134 return getService()
135 .getGroupEntries(groupId, userId, rootFolderId, start, end);
136 }
137
138 public static int getGroupEntriesCount(long groupId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getService().getGroupEntriesCount(groupId);
142 }
143
144 public static int getGroupEntriesCount(long groupId, long userId)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 return getService().getGroupEntriesCount(groupId, userId);
148 }
149
150 public static int getGroupEntriesCount(long groupId, long userId,
151 long rootFolderId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException {
154 return getService().getGroupEntriesCount(groupId, userId, rootFolderId);
155 }
156
157 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
158 long entryId, long parentFolderId)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return getService().moveEntry(entryId, parentFolderId);
162 }
163
164 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
165 long entryId, long parentFolderId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException {
168 return getService().moveEntryFromTrash(entryId, parentFolderId);
169 }
170
171 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
172 long entryId)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 return getService().moveEntryToTrash(entryId);
176 }
177
178 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
179 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getService().openEntry(entry);
183 }
184
185 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
186 long entryId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getService().openEntry(entryId);
190 }
191
192 public static void restoreEntryFromTrash(long entryId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 getService().restoreEntryFromTrash(entryId);
196 }
197
198 public static com.liferay.portal.kernel.search.Hits search(long groupId,
199 long creatorUserId, int status, int start, int end)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().search(groupId, creatorUserId, status, start, end);
203 }
204
205 public static void subscribeEntry(long entryId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 getService().subscribeEntry(entryId);
209 }
210
211 public static void unsubscribeEntry(long entryId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 getService().unsubscribeEntry(entryId);
215 }
216
217 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
218 long entryId, long groupId, long folderId, java.lang.String name,
219 java.lang.String url, java.lang.String description,
220 com.liferay.portal.service.ServiceContext serviceContext)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException {
223 return getService()
224 .updateEntry(entryId, groupId, folderId, name, url,
225 description, serviceContext);
226 }
227
228 public static BookmarksEntryService getService() {
229 if (_service == null) {
230 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
231
232 ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
233 "_service");
234 }
235
236 return _service;
237 }
238
239
242 public void setService(BookmarksEntryService service) {
243 }
244
245 private static BookmarksEntryService _service;
246 }