1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="BookmarksEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link BookmarksEntryLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BookmarksEntryLocalService
45   * @generated
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         com.liferay.portal.service.ServiceContext serviceContext)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return getService()
119                    .addEntry(userId, folderId, name, url, comments,
120             serviceContext);
121     }
122 
123     public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
124         java.lang.String uuid, long userId, long folderId,
125         java.lang.String name, java.lang.String url, java.lang.String comments,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         return getService()
130                    .addEntry(uuid, userId, folderId, name, url, comments,
131             serviceContext);
132     }
133 
134     public static void addEntryResources(
135         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         getService()
140             .addEntryResources(entry, addCommunityPermissions,
141             addGuestPermissions);
142     }
143 
144     public static void addEntryResources(
145         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         getService()
151             .addEntryResources(entry, communityPermissions, guestPermissions);
152     }
153 
154     public static void addEntryResources(long entryId,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         getService()
159             .addEntryResources(entryId, addCommunityPermissions,
160             addGuestPermissions);
161     }
162 
163     public static void addEntryResources(long entryId,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         getService()
169             .addEntryResources(entryId, communityPermissions, guestPermissions);
170     }
171 
172     public static void deleteEntries(long folderId)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         getService().deleteEntries(folderId);
176     }
177 
178     public static void deleteEntry(
179         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         getService().deleteEntry(entry);
183     }
184 
185     public static void deleteEntry(long entryId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         getService().deleteEntry(entryId);
189     }
190 
191     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
192         long folderId, int start, int end)
193         throws com.liferay.portal.SystemException {
194         return getService().getEntries(folderId, start, end);
195     }
196 
197     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
198         long folderId, int start, int end,
199         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200         throws com.liferay.portal.SystemException {
201         return getService().getEntries(folderId, start, end, orderByComparator);
202     }
203 
204     public static int getEntriesCount(long folderId)
205         throws com.liferay.portal.SystemException {
206         return getService().getEntriesCount(folderId);
207     }
208 
209     public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
210         long entryId)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException {
213         return getService().getEntry(entryId);
214     }
215 
216     public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
217         throws com.liferay.portal.SystemException {
218         return getService().getFoldersEntriesCount(folderIds);
219     }
220 
221     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
222         long groupId, int start, int end)
223         throws com.liferay.portal.SystemException {
224         return getService().getGroupEntries(groupId, start, end);
225     }
226 
227     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
228         long groupId, long userId, int start, int end)
229         throws com.liferay.portal.SystemException {
230         return getService().getGroupEntries(groupId, userId, start, end);
231     }
232 
233     public static int getGroupEntriesCount(long groupId)
234         throws com.liferay.portal.SystemException {
235         return getService().getGroupEntriesCount(groupId);
236     }
237 
238     public static int getGroupEntriesCount(long groupId, long userId)
239         throws com.liferay.portal.SystemException {
240         return getService().getGroupEntriesCount(groupId, userId);
241     }
242 
243     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
244         throws com.liferay.portal.SystemException {
245         return getService().getNoAssetEntries();
246     }
247 
248     public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
249         long entryId)
250         throws com.liferay.portal.PortalException,
251             com.liferay.portal.SystemException {
252         return getService().openEntry(entryId);
253     }
254 
255     public static void reIndex(
256         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
257         throws com.liferay.portal.SystemException {
258         getService().reIndex(entry);
259     }
260 
261     public static void reIndex(long entryId)
262         throws com.liferay.portal.SystemException {
263         getService().reIndex(entryId);
264     }
265 
266     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
267         long userId, long entryId, long folderId, java.lang.String name,
268         java.lang.String url, java.lang.String comments,
269         com.liferay.portal.service.ServiceContext serviceContext)
270         throws com.liferay.portal.PortalException,
271             com.liferay.portal.SystemException {
272         return getService()
273                    .updateEntry(userId, entryId, folderId, name, url, comments,
274             serviceContext);
275     }
276 
277     public static void updateTagsAsset(long userId,
278         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
279         java.lang.String[] tagsEntries)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         getService().updateTagsAsset(userId, entry, tagsEntries);
283     }
284 
285     public static BookmarksEntryLocalService getService() {
286         if (_service == null) {
287             _service = (BookmarksEntryLocalService)PortalBeanLocatorUtil.locate(BookmarksEntryLocalService.class.getName());
288         }
289 
290         return _service;
291     }
292 
293     public void setService(BookmarksEntryLocalService service) {
294         _service = service;
295     }
296 
297     private static BookmarksEntryLocalService _service;
298 }