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