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 _service.addBookmarksEntry(bookmarksEntry);
52      }
53  
54      public static void deleteBookmarksEntry(long entryId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteBookmarksEntry(entryId);
58      }
59  
60      public static void deleteBookmarksEntry(
61          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
62          throws com.liferay.portal.SystemException {
63          _service.deleteBookmarksEntry(bookmarksEntry);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
79          long entryId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getBookmarksEntry(entryId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getBookmarksEntries(start, end);
88      }
89  
90      public static int getBookmarksEntriesCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getBookmarksEntriesCount();
93      }
94  
95      public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
96          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
97          throws com.liferay.portal.SystemException {
98          return _service.updateBookmarksEntry(bookmarksEntry);
99      }
100 
101     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
102         long userId, long folderId, java.lang.String name,
103         java.lang.String url, java.lang.String comments,
104         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
105         boolean addGuestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return _service.addEntry(userId, folderId, name, url, comments,
109             tagsEntries, addCommunityPermissions, addGuestPermissions);
110     }
111 
112     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
113         java.lang.String uuid, long userId, long folderId,
114         java.lang.String name, 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 _service.addEntry(uuid, userId, folderId, name, url, comments,
120             tagsEntries, addCommunityPermissions, addGuestPermissions);
121     }
122 
123     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
124         long userId, long folderId, java.lang.String name,
125         java.lang.String url, java.lang.String comments,
126         java.lang.String[] tagsEntries,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return _service.addEntry(userId, folderId, name, url, comments,
132             tagsEntries, communityPermissions, guestPermissions);
133     }
134 
135     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
136         java.lang.String uuid, long userId, long folderId,
137         java.lang.String name, java.lang.String url, java.lang.String comments,
138         java.lang.String[] tagsEntries,
139         java.lang.Boolean addCommunityPermissions,
140         java.lang.Boolean addGuestPermissions,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         return _service.addEntry(uuid, userId, folderId, name, url, comments,
146             tagsEntries, addCommunityPermissions, addGuestPermissions,
147             communityPermissions, guestPermissions);
148     }
149 
150     public static void addEntryResources(long folderId, long entryId,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         _service.addEntryResources(folderId, entryId, addCommunityPermissions,
155             addGuestPermissions);
156     }
157 
158     public static void addEntryResources(
159         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
160         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
161         boolean addCommunityPermissions, boolean addGuestPermissions)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         _service.addEntryResources(folder, entry, addCommunityPermissions,
165             addGuestPermissions);
166     }
167 
168     public static void addEntryResources(long folderId, long entryId,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         _service.addEntryResources(folderId, entryId, communityPermissions,
174             guestPermissions);
175     }
176 
177     public static void addEntryResources(
178         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
179         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         _service.addEntryResources(folder, entry, communityPermissions,
185             guestPermissions);
186     }
187 
188     public static void deleteEntries(long folderId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         _service.deleteEntries(folderId);
192     }
193 
194     public static void deleteEntry(long entryId)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         _service.deleteEntry(entryId);
198     }
199 
200     public static void deleteEntry(
201         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         _service.deleteEntry(entry);
205     }
206 
207     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
208         long folderId, int start, int end)
209         throws com.liferay.portal.SystemException {
210         return _service.getEntries(folderId, start, end);
211     }
212 
213     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
214         long folderId, int start, int end,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.SystemException {
217         return _service.getEntries(folderId, start, end, orderByComparator);
218     }
219 
220     public static int getEntriesCount(long folderId)
221         throws com.liferay.portal.SystemException {
222         return _service.getEntriesCount(folderId);
223     }
224 
225     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
226         long entryId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return _service.getEntry(entryId);
230     }
231 
232     public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
233         throws com.liferay.portal.SystemException {
234         return _service.getFoldersEntriesCount(folderIds);
235     }
236 
237     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
238         long groupId, int start, int end)
239         throws com.liferay.portal.SystemException {
240         return _service.getGroupEntries(groupId, start, end);
241     }
242 
243     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
244         long groupId, long userId, int start, int end)
245         throws com.liferay.portal.SystemException {
246         return _service.getGroupEntries(groupId, userId, start, end);
247     }
248 
249     public static int getGroupEntriesCount(long groupId)
250         throws com.liferay.portal.SystemException {
251         return _service.getGroupEntriesCount(groupId);
252     }
253 
254     public static int getGroupEntriesCount(long groupId, long userId)
255         throws com.liferay.portal.SystemException {
256         return _service.getGroupEntriesCount(groupId, userId);
257     }
258 
259     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
260         throws com.liferay.portal.SystemException {
261         return _service.getNoAssetEntries();
262     }
263 
264     public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
265         long entryId)
266         throws com.liferay.portal.PortalException,
267             com.liferay.portal.SystemException {
268         return _service.openEntry(entryId);
269     }
270 
271     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
272         long userId, long entryId, long folderId, java.lang.String name,
273         java.lang.String url, java.lang.String comments,
274         java.lang.String[] tagsEntries)
275         throws com.liferay.portal.PortalException,
276             com.liferay.portal.SystemException {
277         return _service.updateEntry(userId, entryId, folderId, name, url,
278             comments, tagsEntries);
279     }
280 
281     public static void updateTagsAsset(long userId,
282         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
283         java.lang.String[] tagsEntries)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException {
286         _service.updateTagsAsset(userId, entry, tagsEntries);
287     }
288 
289     public static BookmarksEntryLocalService getService() {
290         return _service;
291     }
292 
293     public void setService(BookmarksEntryLocalService service) {
294         _service = service;
295     }
296 
297     private static BookmarksEntryLocalService _service;
298 }