1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.bookmarks.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="BookmarksEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link BookmarksEntryLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       BookmarksEntryLocalService
39   * @generated
40   */
41  public class BookmarksEntryLocalServiceUtil {
42      public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
43          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
44          throws com.liferay.portal.SystemException {
45          return getService().addBookmarksEntry(bookmarksEntry);
46      }
47  
48      public static com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
49          long entryId) {
50          return getService().createBookmarksEntry(entryId);
51      }
52  
53      public static void deleteBookmarksEntry(long entryId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteBookmarksEntry(entryId);
57      }
58  
59      public static void deleteBookmarksEntry(
60          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
61          throws com.liferay.portal.SystemException {
62          getService().deleteBookmarksEntry(bookmarksEntry);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
96          long entryId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getBookmarksEntry(entryId);
100     }
101 
102     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
103         java.lang.String uuid, long groupId)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return getService().getBookmarksEntryByUuidAndGroupId(uuid, groupId);
107     }
108 
109     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
110         int start, int end) throws com.liferay.portal.SystemException {
111         return getService().getBookmarksEntries(start, end);
112     }
113 
114     public static int getBookmarksEntriesCount()
115         throws com.liferay.portal.SystemException {
116         return getService().getBookmarksEntriesCount();
117     }
118 
119     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
120         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
121         throws com.liferay.portal.SystemException {
122         return getService().updateBookmarksEntry(bookmarksEntry);
123     }
124 
125     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
126         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getService().updateBookmarksEntry(bookmarksEntry, merge);
129     }
130 
131     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
132         long userId, long folderId, java.lang.String name,
133         java.lang.String url, java.lang.String comments,
134         com.liferay.portal.service.ServiceContext serviceContext)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         return getService()
138                    .addEntry(userId, folderId, name, url, comments,
139             serviceContext);
140     }
141 
142     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
143         java.lang.String uuid, long userId, long folderId,
144         java.lang.String name, java.lang.String url, java.lang.String comments,
145         com.liferay.portal.service.ServiceContext serviceContext)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         return getService()
149                    .addEntry(uuid, userId, folderId, name, url, comments,
150             serviceContext);
151     }
152 
153     public static void addEntryResources(
154         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         getService()
159             .addEntryResources(entry, addCommunityPermissions,
160             addGuestPermissions);
161     }
162 
163     public static void addEntryResources(
164         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
165         java.lang.String[] communityPermissions,
166         java.lang.String[] guestPermissions)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         getService()
170             .addEntryResources(entry, communityPermissions, guestPermissions);
171     }
172 
173     public static void addEntryResources(long entryId,
174         boolean addCommunityPermissions, boolean addGuestPermissions)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         getService()
178             .addEntryResources(entryId, addCommunityPermissions,
179             addGuestPermissions);
180     }
181 
182     public static void addEntryResources(long entryId,
183         java.lang.String[] communityPermissions,
184         java.lang.String[] guestPermissions)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         getService()
188             .addEntryResources(entryId, communityPermissions, guestPermissions);
189     }
190 
191     public static void deleteEntries(long folderId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         getService().deleteEntries(folderId);
195     }
196 
197     public static void deleteEntry(
198         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         getService().deleteEntry(entry);
202     }
203 
204     public static void deleteEntry(long entryId)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException {
207         getService().deleteEntry(entryId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
211         long folderId, int start, int end)
212         throws com.liferay.portal.SystemException {
213         return getService().getEntries(folderId, start, end);
214     }
215 
216     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
217         long folderId, int start, int end,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException {
220         return getService().getEntries(folderId, start, end, orderByComparator);
221     }
222 
223     public static int getEntriesCount(long folderId)
224         throws com.liferay.portal.SystemException {
225         return getService().getEntriesCount(folderId);
226     }
227 
228     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
229         long entryId)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException {
232         return getService().getEntry(entryId);
233     }
234 
235     public static int getFoldersEntriesCount(
236         java.util.List<java.lang.Long> folderIds)
237         throws com.liferay.portal.SystemException {
238         return getService().getFoldersEntriesCount(folderIds);
239     }
240 
241     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
242         long groupId, int start, int end)
243         throws com.liferay.portal.SystemException {
244         return getService().getGroupEntries(groupId, start, end);
245     }
246 
247     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
248         long groupId, long userId, int start, int end)
249         throws com.liferay.portal.SystemException {
250         return getService().getGroupEntries(groupId, userId, start, end);
251     }
252 
253     public static int getGroupEntriesCount(long groupId)
254         throws com.liferay.portal.SystemException {
255         return getService().getGroupEntriesCount(groupId);
256     }
257 
258     public static int getGroupEntriesCount(long groupId, long userId)
259         throws com.liferay.portal.SystemException {
260         return getService().getGroupEntriesCount(groupId, userId);
261     }
262 
263     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
264         throws com.liferay.portal.SystemException {
265         return getService().getNoAssetEntries();
266     }
267 
268     public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
269         long entryId)
270         throws com.liferay.portal.PortalException,
271             com.liferay.portal.SystemException {
272         return getService().openEntry(entryId);
273     }
274 
275     public static void reIndex(
276         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
277         throws com.liferay.portal.SystemException {
278         getService().reIndex(entry);
279     }
280 
281     public static void reIndex(long entryId)
282         throws com.liferay.portal.SystemException {
283         getService().reIndex(entryId);
284     }
285 
286     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
287         long userId, long entryId, long folderId, java.lang.String name,
288         java.lang.String url, java.lang.String comments,
289         com.liferay.portal.service.ServiceContext serviceContext)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException {
292         return getService()
293                    .updateEntry(userId, entryId, folderId, name, url, comments,
294             serviceContext);
295     }
296 
297     public static void updateTagsAsset(long userId,
298         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
299         java.lang.String[] tagsEntries)
300         throws com.liferay.portal.PortalException,
301             com.liferay.portal.SystemException {
302         getService().updateTagsAsset(userId, entry, tagsEntries);
303     }
304 
305     public static BookmarksEntryLocalService getService() {
306         if (_service == null) {
307             _service = (BookmarksEntryLocalService)PortalBeanLocatorUtil.locate(BookmarksEntryLocalService.class.getName());
308 
309             ReferenceRegistry.registerReference(BookmarksEntryLocalServiceUtil.class,
310                 "_service");
311             MethodCache.remove(BookmarksEntryLocalService.class);
312         }
313 
314         return _service;
315     }
316 
317     public void setService(BookmarksEntryLocalService service) {
318         MethodCache.remove(BookmarksEntryLocalService.class);
319 
320         _service = service;
321 
322         ReferenceRegistry.registerReference(BookmarksEntryLocalServiceUtil.class,
323             "_service");
324         MethodCache.remove(BookmarksEntryLocalService.class);
325     }
326 
327     private static BookmarksEntryLocalService _service;
328 }