1   /**
2    * Copyright (c) 2000-2008 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 addEntry(
107         long userId, long folderId, java.lang.String name,
108         java.lang.String url, java.lang.String comments,
109         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
110         boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return getService()
114                    .addEntry(userId, folderId, name, url, comments,
115             tagsEntries, addCommunityPermissions, addGuestPermissions);
116     }
117 
118     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
119         java.lang.String uuid, long userId, long folderId,
120         java.lang.String name, java.lang.String url, java.lang.String comments,
121         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
122         boolean addGuestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         return getService()
126                    .addEntry(uuid, userId, folderId, name, url, comments,
127             tagsEntries, addCommunityPermissions, addGuestPermissions);
128     }
129 
130     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
131         long userId, long folderId, java.lang.String name,
132         java.lang.String url, java.lang.String comments,
133         java.lang.String[] tagsEntries,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return getService()
139                    .addEntry(userId, folderId, name, url, comments,
140             tagsEntries, communityPermissions, guestPermissions);
141     }
142 
143     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
144         java.lang.String uuid, long userId, long folderId,
145         java.lang.String name, java.lang.String url, java.lang.String comments,
146         java.lang.String[] tagsEntries,
147         java.lang.Boolean addCommunityPermissions,
148         java.lang.Boolean addGuestPermissions,
149         java.lang.String[] communityPermissions,
150         java.lang.String[] guestPermissions)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         return getService()
154                    .addEntry(uuid, userId, folderId, name, url, comments,
155             tagsEntries, addCommunityPermissions, addGuestPermissions,
156             communityPermissions, guestPermissions);
157     }
158 
159     public static void addEntryResources(long folderId, long entryId,
160         boolean addCommunityPermissions, boolean addGuestPermissions)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         getService()
164             .addEntryResources(folderId, entryId, addCommunityPermissions,
165             addGuestPermissions);
166     }
167 
168     public static void addEntryResources(
169         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
170         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
171         boolean addCommunityPermissions, boolean addGuestPermissions)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         getService()
175             .addEntryResources(folder, entry, addCommunityPermissions,
176             addGuestPermissions);
177     }
178 
179     public static void addEntryResources(long folderId, long entryId,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         getService()
185             .addEntryResources(folderId, entryId, communityPermissions,
186             guestPermissions);
187     }
188 
189     public static void addEntryResources(
190         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
191         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
192         java.lang.String[] communityPermissions,
193         java.lang.String[] guestPermissions)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         getService()
197             .addEntryResources(folder, entry, communityPermissions,
198             guestPermissions);
199     }
200 
201     public static void deleteEntries(long folderId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         getService().deleteEntries(folderId);
205     }
206 
207     public static void deleteEntry(long entryId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException {
210         getService().deleteEntry(entryId);
211     }
212 
213     public static void deleteEntry(
214         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         getService().deleteEntry(entry);
218     }
219 
220     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
221         long folderId, int start, int end)
222         throws com.liferay.portal.SystemException {
223         return getService().getEntries(folderId, start, end);
224     }
225 
226     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
227         long folderId, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.SystemException {
230         return getService().getEntries(folderId, start, end, orderByComparator);
231     }
232 
233     public static int getEntriesCount(long folderId)
234         throws com.liferay.portal.SystemException {
235         return getService().getEntriesCount(folderId);
236     }
237 
238     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
239         long entryId)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException {
242         return getService().getEntry(entryId);
243     }
244 
245     public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
246         throws com.liferay.portal.SystemException {
247         return getService().getFoldersEntriesCount(folderIds);
248     }
249 
250     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
251         long groupId, int start, int end)
252         throws com.liferay.portal.SystemException {
253         return getService().getGroupEntries(groupId, start, end);
254     }
255 
256     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
257         long groupId, long userId, int start, int end)
258         throws com.liferay.portal.SystemException {
259         return getService().getGroupEntries(groupId, userId, start, end);
260     }
261 
262     public static int getGroupEntriesCount(long groupId)
263         throws com.liferay.portal.SystemException {
264         return getService().getGroupEntriesCount(groupId);
265     }
266 
267     public static int getGroupEntriesCount(long groupId, long userId)
268         throws com.liferay.portal.SystemException {
269         return getService().getGroupEntriesCount(groupId, userId);
270     }
271 
272     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
273         throws com.liferay.portal.SystemException {
274         return getService().getNoAssetEntries();
275     }
276 
277     public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
278         long entryId)
279         throws com.liferay.portal.PortalException,
280             com.liferay.portal.SystemException {
281         return getService().openEntry(entryId);
282     }
283 
284     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
285         long userId, long entryId, long folderId, java.lang.String name,
286         java.lang.String url, java.lang.String comments,
287         java.lang.String[] tagsEntries)
288         throws com.liferay.portal.PortalException,
289             com.liferay.portal.SystemException {
290         return getService()
291                    .updateEntry(userId, entryId, folderId, name, url, comments,
292             tagsEntries);
293     }
294 
295     public static void updateTagsAsset(long userId,
296         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
297         java.lang.String[] tagsEntries)
298         throws com.liferay.portal.PortalException,
299             com.liferay.portal.SystemException {
300         getService().updateTagsAsset(userId, entry, tagsEntries);
301     }
302 
303     public static BookmarksEntryLocalService getService() {
304         if (_service == null) {
305             throw new RuntimeException("BookmarksEntryLocalService is not set");
306         }
307 
308         return _service;
309     }
310 
311     public void setService(BookmarksEntryLocalService service) {
312         _service = service;
313     }
314 
315     private static BookmarksEntryLocalService _service;
316 }