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