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 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
044 long groupId, long folderId, java.lang.String name,
045 java.lang.String url, java.lang.String description,
046 com.liferay.portal.service.ServiceContext serviceContext)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 return getService()
049 .addEntry(groupId, folderId, name, url, description,
050 serviceContext);
051 }
052
053 public static void deleteEntry(long entryId)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 getService().deleteEntry(entryId);
056 }
057
058
063 public static java.lang.String getBeanIdentifier() {
064 return getService().getBeanIdentifier();
065 }
066
067 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
068 long groupId, long folderId, int start, int end) {
069 return getService().getEntries(groupId, folderId, start, end);
070 }
071
072 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
073 long groupId, long folderId, int start, int end,
074 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.bookmarks.model.BookmarksEntry> orderByComparator) {
075 return getService()
076 .getEntries(groupId, folderId, start, end, orderByComparator);
077 }
078
079 public static int getEntriesCount(long groupId, long folderId) {
080 return getService().getEntriesCount(groupId, folderId);
081 }
082
083 public static int getEntriesCount(long groupId, long folderId, int status) {
084 return getService().getEntriesCount(groupId, folderId, status);
085 }
086
087 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
088 long entryId)
089 throws com.liferay.portal.kernel.exception.PortalException {
090 return getService().getEntry(entryId);
091 }
092
093 public static int getFoldersEntriesCount(long groupId,
094 java.util.List<java.lang.Long> folderIds) {
095 return getService().getFoldersEntriesCount(groupId, folderIds);
096 }
097
098 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
099 long groupId, int start, int end)
100 throws com.liferay.portal.kernel.exception.PortalException {
101 return getService().getGroupEntries(groupId, start, end);
102 }
103
104 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
105 long groupId, long userId, long rootFolderId, int start, int end)
106 throws com.liferay.portal.kernel.exception.PortalException {
107 return getService()
108 .getGroupEntries(groupId, userId, rootFolderId, start, end);
109 }
110
111 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
112 long groupId, long userId, int start, int end)
113 throws com.liferay.portal.kernel.exception.PortalException {
114 return getService().getGroupEntries(groupId, userId, start, end);
115 }
116
117 public static int getGroupEntriesCount(long groupId)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 return getService().getGroupEntriesCount(groupId);
120 }
121
122 public static int getGroupEntriesCount(long groupId, long userId)
123 throws com.liferay.portal.kernel.exception.PortalException {
124 return getService().getGroupEntriesCount(groupId, userId);
125 }
126
127 public static int getGroupEntriesCount(long groupId, long userId,
128 long rootFolderId)
129 throws com.liferay.portal.kernel.exception.PortalException {
130 return getService().getGroupEntriesCount(groupId, userId, rootFolderId);
131 }
132
133 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
134 long entryId, long parentFolderId)
135 throws com.liferay.portal.kernel.exception.PortalException {
136 return getService().moveEntry(entryId, parentFolderId);
137 }
138
139 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
140 long entryId, long parentFolderId)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 return getService().moveEntryFromTrash(entryId, parentFolderId);
143 }
144
145 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
146 long entryId)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 return getService().moveEntryToTrash(entryId);
149 }
150
151 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
152 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
153 throws com.liferay.portal.kernel.exception.PortalException {
154 return getService().openEntry(entry);
155 }
156
157 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
158 long entryId)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 return getService().openEntry(entryId);
161 }
162
163 public static void restoreEntryFromTrash(long entryId)
164 throws com.liferay.portal.kernel.exception.PortalException {
165 getService().restoreEntryFromTrash(entryId);
166 }
167
168 public static com.liferay.portal.kernel.search.Hits search(long groupId,
169 long creatorUserId, int status, int start, int end)
170 throws com.liferay.portal.kernel.exception.PortalException {
171 return getService().search(groupId, creatorUserId, status, start, end);
172 }
173
174
179 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
180 getService().setBeanIdentifier(beanIdentifier);
181 }
182
183 public static void subscribeEntry(long entryId)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 getService().subscribeEntry(entryId);
186 }
187
188 public static void unsubscribeEntry(long entryId)
189 throws com.liferay.portal.kernel.exception.PortalException {
190 getService().unsubscribeEntry(entryId);
191 }
192
193 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
194 long entryId, long groupId, long folderId, java.lang.String name,
195 java.lang.String url, java.lang.String description,
196 com.liferay.portal.service.ServiceContext serviceContext)
197 throws com.liferay.portal.kernel.exception.PortalException {
198 return getService()
199 .updateEntry(entryId, groupId, folderId, name, url,
200 description, serviceContext);
201 }
202
203 public static BookmarksEntryService getService() {
204 if (_service == null) {
205 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
206
207 ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
208 "_service");
209 }
210
211 return _service;
212 }
213
214
217 @Deprecated
218 public void setService(BookmarksEntryService service) {
219 }
220
221 private static BookmarksEntryService _service;
222 }