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="BookmarksEntryServiceUtil.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 BookmarksEntryService} 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       BookmarksEntryService
37   * @generated
38   */
39  public class BookmarksEntryServiceUtil {
40      public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
41          long folderId, java.lang.String name, java.lang.String url,
42          java.lang.String comments, java.lang.String[] tagsEntries,
43          boolean addCommunityPermissions, boolean addGuestPermissions)
44          throws com.liferay.portal.PortalException,
45              com.liferay.portal.SystemException, java.rmi.RemoteException {
46          return getService()
47                     .addEntry(folderId, name, url, comments, tagsEntries,
48              addCommunityPermissions, addGuestPermissions);
49      }
50  
51      public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
52          long folderId, java.lang.String name, java.lang.String url,
53          java.lang.String comments, java.lang.String[] tagsEntries,
54          java.lang.String[] communityPermissions,
55          java.lang.String[] guestPermissions)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException, java.rmi.RemoteException {
58          return getService()
59                     .addEntry(folderId, name, url, comments, tagsEntries,
60              communityPermissions, guestPermissions);
61      }
62  
63      public static void deleteEntry(long entryId)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException, java.rmi.RemoteException {
66          getService().deleteEntry(entryId);
67      }
68  
69      public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
70          long entryId)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException, java.rmi.RemoteException {
73          return getService().getEntry(entryId);
74      }
75  
76      public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
77          long entryId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException, java.rmi.RemoteException {
80          return getService().openEntry(entryId);
81      }
82  
83      public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
84          long entryId, long folderId, java.lang.String name,
85          java.lang.String url, java.lang.String comments,
86          java.lang.String[] tagsEntries)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException, java.rmi.RemoteException {
89          return getService()
90                     .updateEntry(entryId, folderId, name, url, comments,
91              tagsEntries);
92      }
93  
94      public static BookmarksEntryService getService() {
95          if (_service == null) {
96              _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
97          }
98  
99          return _service;
100     }
101 
102     public void setService(BookmarksEntryService service) {
103         _service = service;
104     }
105 
106     private static BookmarksEntryService _service;
107 }