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  
26  /**
27   * <a href="BookmarksFolderLocalServiceUtil.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   * {@link BookmarksFolderLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       BookmarksFolderLocalService
44   * @generated
45   */
46  public class BookmarksFolderLocalServiceUtil {
47      public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
48          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
49          throws com.liferay.portal.SystemException {
50          return getService().addBookmarksFolder(bookmarksFolder);
51      }
52  
53      public static com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
54          long folderId) {
55          return getService().createBookmarksFolder(folderId);
56      }
57  
58      public static void deleteBookmarksFolder(long folderId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteBookmarksFolder(folderId);
62      }
63  
64      public static void deleteBookmarksFolder(
65          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
66          throws com.liferay.portal.SystemException {
67          getService().deleteBookmarksFolder(bookmarksFolder);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException {
79          return getService().dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public static com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
83          long folderId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getBookmarksFolder(folderId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getBookmarksFolders(start, end);
92      }
93  
94      public static int getBookmarksFoldersCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getBookmarksFoldersCount();
97      }
98  
99      public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
100         com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
101         throws com.liferay.portal.SystemException {
102         return getService().updateBookmarksFolder(bookmarksFolder);
103     }
104 
105     public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
106         com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return getService().updateBookmarksFolder(bookmarksFolder, merge);
109     }
110 
111     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
112         long userId, long parentFolderId, java.lang.String name,
113         java.lang.String description,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return getService()
118                    .addFolder(userId, parentFolderId, name, description,
119             serviceContext);
120     }
121 
122     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
123         java.lang.String uuid, long userId, long parentFolderId,
124         java.lang.String name, java.lang.String description,
125         com.liferay.portal.service.ServiceContext serviceContext)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService()
129                    .addFolder(uuid, userId, parentFolderId, name, description,
130             serviceContext);
131     }
132 
133     public static void addFolderResources(long folderId,
134         boolean addCommunityPermissions, boolean addGuestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         getService()
138             .addFolderResources(folderId, addCommunityPermissions,
139             addGuestPermissions);
140     }
141 
142     public static void addFolderResources(
143         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         getService()
148             .addFolderResources(folder, addCommunityPermissions,
149             addGuestPermissions);
150     }
151 
152     public static void addFolderResources(long folderId,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         getService()
158             .addFolderResources(folderId, communityPermissions, guestPermissions);
159     }
160 
161     public static void addFolderResources(
162         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
163         java.lang.String[] communityPermissions,
164         java.lang.String[] guestPermissions)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         getService()
168             .addFolderResources(folder, communityPermissions, guestPermissions);
169     }
170 
171     public static void deleteFolder(long folderId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         getService().deleteFolder(folderId);
175     }
176 
177     public static void deleteFolder(
178         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         getService().deleteFolder(folder);
182     }
183 
184     public static void deleteFolders(long groupId)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         getService().deleteFolders(groupId);
188     }
189 
190     public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
191         long folderId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         return getService().getFolder(folderId);
195     }
196 
197     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
198         long groupId, long parentFolderId, int start, int end)
199         throws com.liferay.portal.SystemException {
200         return getService().getFolders(groupId, parentFolderId, start, end);
201     }
202 
203     public static int getFoldersCount(long groupId, long parentFolderId)
204         throws com.liferay.portal.SystemException {
205         return getService().getFoldersCount(groupId, parentFolderId);
206     }
207 
208     public static void getSubfolderIds(java.util.List<Long> folderIds,
209         long groupId, long folderId) throws com.liferay.portal.SystemException {
210         getService().getSubfolderIds(folderIds, groupId, folderId);
211     }
212 
213     public static void reIndex(java.lang.String[] ids)
214         throws com.liferay.portal.SystemException {
215         getService().reIndex(ids);
216     }
217 
218     public static com.liferay.portal.kernel.search.Hits search(long companyId,
219         long groupId, long userId, long[] folderIds, java.lang.String keywords,
220         int start, int end) throws com.liferay.portal.SystemException {
221         return getService()
222                    .search(companyId, groupId, userId, folderIds, keywords,
223             start, end);
224     }
225 
226     public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
227         long folderId, long parentFolderId, java.lang.String name,
228         java.lang.String description, boolean mergeWithParentFolder,
229         com.liferay.portal.service.ServiceContext serviceContext)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException {
232         return getService()
233                    .updateFolder(folderId, parentFolderId, name, description,
234             mergeWithParentFolder, serviceContext);
235     }
236 
237     public static BookmarksFolderLocalService getService() {
238         if (_service == null) {
239             throw new RuntimeException("BookmarksFolderLocalService is not set");
240         }
241 
242         return _service;
243     }
244 
245     public void setService(BookmarksFolderLocalService service) {
246         _service = service;
247     }
248 
249     private static BookmarksFolderLocalService _service;
250 }