1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.bookmarks.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="BookmarksFolderLocalServiceUtil.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 BookmarksFolderLocalService} 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       BookmarksFolderLocalService
37   * @generated
38   */
39  public class BookmarksFolderLocalServiceUtil {
40      public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
41          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addBookmarksFolder(bookmarksFolder);
44      }
45  
46      public static com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
47          long folderId) {
48          return getService().createBookmarksFolder(folderId);
49      }
50  
51      public static void deleteBookmarksFolder(long folderId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteBookmarksFolder(folderId);
55      }
56  
57      public static void deleteBookmarksFolder(
58          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteBookmarksFolder(bookmarksFolder);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
76          long folderId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getBookmarksFolder(folderId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getBookmarksFolders(start, end);
86      }
87  
88      public static int getBookmarksFoldersCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getBookmarksFoldersCount();
91      }
92  
93      public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
94          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateBookmarksFolder(bookmarksFolder);
97      }
98  
99      public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
100         com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateBookmarksFolder(bookmarksFolder, merge);
104     }
105 
106     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
107         java.lang.String uuid, long userId, long parentFolderId,
108         java.lang.String name, java.lang.String description,
109         com.liferay.portal.service.ServiceContext serviceContext)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException {
112         return getService()
113                    .addFolder(uuid, userId, parentFolderId, name, description,
114             serviceContext);
115     }
116 
117     public static void addFolderResources(
118         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
119         boolean addCommunityPermissions, boolean addGuestPermissions)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException {
122         getService()
123             .addFolderResources(folder, addCommunityPermissions,
124             addGuestPermissions);
125     }
126 
127     public static void addFolderResources(
128         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         getService()
134             .addFolderResources(folder, communityPermissions, guestPermissions);
135     }
136 
137     public static void addFolderResources(long folderId,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         getService()
142             .addFolderResources(folderId, addCommunityPermissions,
143             addGuestPermissions);
144     }
145 
146     public static void addFolderResources(long folderId,
147         java.lang.String[] communityPermissions,
148         java.lang.String[] guestPermissions)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         getService()
152             .addFolderResources(folderId, communityPermissions, guestPermissions);
153     }
154 
155     public static void deleteFolder(
156         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         getService().deleteFolder(folder);
160     }
161 
162     public static void deleteFolder(long folderId)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         getService().deleteFolder(folderId);
166     }
167 
168     public static void deleteFolders(long groupId)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException {
171         getService().deleteFolders(groupId);
172     }
173 
174     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
175         long companyId, int start, int end)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getService().getCompanyFolders(companyId, start, end);
178     }
179 
180     public static int getCompanyFoldersCount(long companyId)
181         throws com.liferay.portal.kernel.exception.SystemException {
182         return getService().getCompanyFoldersCount(companyId);
183     }
184 
185     public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
186         long folderId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         return getService().getFolder(folderId);
190     }
191 
192     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
193         long groupId)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getService().getFolders(groupId);
196     }
197 
198     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
199         long groupId, long parentFolderId)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return getService().getFolders(groupId, parentFolderId);
202     }
203 
204     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
205         long groupId, long parentFolderId, int start, int end)
206         throws com.liferay.portal.kernel.exception.SystemException {
207         return getService().getFolders(groupId, parentFolderId, start, end);
208     }
209 
210     public static int getFoldersCount(long groupId, long parentFolderId)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getService().getFoldersCount(groupId, parentFolderId);
213     }
214 
215     public static void getSubfolderIds(java.util.List<Long> folderIds,
216         long groupId, long folderId)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         getService().getSubfolderIds(folderIds, groupId, folderId);
219     }
220 
221     public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
222         long folderId, long parentFolderId, java.lang.String name,
223         java.lang.String description, boolean mergeWithParentFolder,
224         com.liferay.portal.service.ServiceContext serviceContext)
225         throws com.liferay.portal.kernel.exception.PortalException,
226             com.liferay.portal.kernel.exception.SystemException {
227         return getService()
228                    .updateFolder(folderId, parentFolderId, name, description,
229             mergeWithParentFolder, serviceContext);
230     }
231 
232     public static BookmarksFolderLocalService getService() {
233         if (_service == null) {
234             _service = (BookmarksFolderLocalService)PortalBeanLocatorUtil.locate(BookmarksFolderLocalService.class.getName());
235         }
236 
237         return _service;
238     }
239 
240     public void setService(BookmarksFolderLocalService service) {
241         _service = service;
242     }
243 
244     private static BookmarksFolderLocalService _service;
245 }