1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service;
24  
25  
26  /**
27   * <a href="BookmarksEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService
45   *
46   */
47  public class BookmarksEntryLocalServiceUtil {
48      public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
49          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
50          throws com.liferay.portal.SystemException {
51          return getService().addBookmarksEntry(bookmarksEntry);
52      }
53  
54      public static com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
55          long entryId) {
56          return getService().createBookmarksEntry(entryId);
57      }
58  
59      public static void deleteBookmarksEntry(long entryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteBookmarksEntry(entryId);
63      }
64  
65      public static void deleteBookmarksEntry(
66          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
67          throws com.liferay.portal.SystemException {
68          getService().deleteBookmarksEntry(bookmarksEntry);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
84          long entryId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getBookmarksEntry(entryId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getBookmarksEntries(start, end);
93      }
94  
95      public static int getBookmarksEntriesCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getBookmarksEntriesCount();
98      }
99  
100     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
101         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
102         throws com.liferay.portal.SystemException {
103         return getService().updateBookmarksEntry(bookmarksEntry);
104     }
105 
106     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
107         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService().updateBookmarksEntry(bookmarksEntry, merge);
110     }
111 
112     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
113         long userId, long folderId, java.lang.String name,
114         java.lang.String url, java.lang.String comments,
115         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
116         boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException {
119         return getService()
120                    .addEntry(userId, folderId, name, url, comments,
121             tagsEntries, addCommunityPermissions, addGuestPermissions);
122     }
123 
124     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
125         java.lang.String uuid, long userId, long folderId,
126         java.lang.String name, java.lang.String url, java.lang.String comments,
127         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
128         boolean addGuestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return getService()
132                    .addEntry(uuid, userId, folderId, name, url, comments,
133             tagsEntries, addCommunityPermissions, addGuestPermissions);
134     }
135 
136     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
137         long userId, long folderId, java.lang.String name,
138         java.lang.String url, java.lang.String comments,
139         java.lang.String[] tagsEntries,
140         java.lang.String[] communityPermissions,
141         java.lang.String[] guestPermissions)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         return getService()
145                    .addEntry(userId, folderId, name, url, comments,
146             tagsEntries, communityPermissions, guestPermissions);
147     }
148 
149     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
150         java.lang.String uuid, long userId, long folderId,
151         java.lang.String name, java.lang.String url, java.lang.String comments,
152         java.lang.String[] tagsEntries,
153         java.lang.Boolean addCommunityPermissions,
154         java.lang.Boolean addGuestPermissions,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         return getService()
160                    .addEntry(uuid, userId, folderId, name, url, comments,
161             tagsEntries, addCommunityPermissions, addGuestPermissions,
162             communityPermissions, guestPermissions);
163     }
164 
165     public static void addEntryResources(long entryId,
166         boolean addCommunityPermissions, boolean addGuestPermissions)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         getService()
170             .addEntryResources(entryId, addCommunityPermissions,
171             addGuestPermissions);
172     }
173 
174     public static void addEntryResources(
175         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
176         boolean addCommunityPermissions, boolean addGuestPermissions)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException {
179         getService()
180             .addEntryResources(entry, addCommunityPermissions,
181             addGuestPermissions);
182     }
183 
184     public static void addEntryResources(long entryId,
185         java.lang.String[] communityPermissions,
186         java.lang.String[] guestPermissions)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         getService()
190             .addEntryResources(entryId, communityPermissions, guestPermissions);
191     }
192 
193     public static void addEntryResources(
194         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
195         java.lang.String[] communityPermissions,
196         java.lang.String[] guestPermissions)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         getService()
200             .addEntryResources(entry, communityPermissions, guestPermissions);
201     }
202 
203     public static void deleteEntries(long folderId)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         getService().deleteEntries(folderId);
207     }
208 
209     public static void deleteEntry(long entryId)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException {
212         getService().deleteEntry(entryId);
213     }
214 
215     public static void deleteEntry(
216         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException {
219         getService().deleteEntry(entry);
220     }
221 
222     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
223         long folderId, int start, int end)
224         throws com.liferay.portal.SystemException {
225         return getService().getEntries(folderId, start, end);
226     }
227 
228     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
229         long folderId, int start, int end,
230         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231         throws com.liferay.portal.SystemException {
232         return getService().getEntries(folderId, start, end, orderByComparator);
233     }
234 
235     public static int getEntriesCount(long folderId)
236         throws com.liferay.portal.SystemException {
237         return getService().getEntriesCount(folderId);
238     }
239 
240     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
241         long entryId)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException {
244         return getService().getEntry(entryId);
245     }
246 
247     public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
248         throws com.liferay.portal.SystemException {
249         return getService().getFoldersEntriesCount(folderIds);
250     }
251 
252     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
253         long groupId, int start, int end)
254         throws com.liferay.portal.SystemException {
255         return getService().getGroupEntries(groupId, start, end);
256     }
257 
258     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
259         long groupId, long userId, int start, int end)
260         throws com.liferay.portal.SystemException {
261         return getService().getGroupEntries(groupId, userId, start, end);
262     }
263 
264     public static int getGroupEntriesCount(long groupId)
265         throws com.liferay.portal.SystemException {
266         return getService().getGroupEntriesCount(groupId);
267     }
268 
269     public static int getGroupEntriesCount(long groupId, long userId)
270         throws com.liferay.portal.SystemException {
271         return getService().getGroupEntriesCount(groupId, userId);
272     }
273 
274     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
275         throws com.liferay.portal.SystemException {
276         return getService().getNoAssetEntries();
277     }
278 
279     public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
280         long entryId)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return getService().openEntry(entryId);
284     }
285 
286     public static void reIndex(long entryId)
287         throws com.liferay.portal.SystemException {
288         getService().reIndex(entryId);
289     }
290 
291     public static void reIndex(
292         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
293         throws com.liferay.portal.SystemException {
294         getService().reIndex(entry);
295     }
296 
297     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
298         long userId, long entryId, long folderId, java.lang.String name,
299         java.lang.String url, java.lang.String comments,
300         java.lang.String[] tagsEntries)
301         throws com.liferay.portal.PortalException,
302             com.liferay.portal.SystemException {
303         return getService()
304                    .updateEntry(userId, entryId, folderId, name, url, comments,
305             tagsEntries);
306     }
307 
308     public static void updateTagsAsset(long userId,
309         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
310         java.lang.String[] tagsEntries)
311         throws com.liferay.portal.PortalException,
312             com.liferay.portal.SystemException {
313         getService().updateTagsAsset(userId, entry, tagsEntries);
314     }
315 
316     public static BookmarksEntryLocalService getService() {
317         if (_service == null) {
318             throw new RuntimeException("BookmarksEntryLocalService is not set");
319         }
320 
321         return _service;
322     }
323 
324     public void setService(BookmarksEntryLocalService service) {
325         _service = service;
326     }
327 
328     private static BookmarksEntryLocalService _service;
329 }