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="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   * <code>com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService</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.BookmarksFolderLocalService
45   *
46   */
47  public class BookmarksFolderLocalServiceUtil {
48      public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
49          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
50          throws com.liferay.portal.SystemException {
51          return _service.addBookmarksFolder(bookmarksFolder);
52      }
53  
54      public static void deleteBookmarksFolder(long folderId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteBookmarksFolder(folderId);
58      }
59  
60      public static void deleteBookmarksFolder(
61          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
62          throws com.liferay.portal.SystemException {
63          _service.deleteBookmarksFolder(bookmarksFolder);
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.BookmarksFolder getBookmarksFolder(
79          long folderId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getBookmarksFolder(folderId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getBookmarksFolders(start, end);
88      }
89  
90      public static int getBookmarksFoldersCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getBookmarksFoldersCount();
93      }
94  
95      public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
96          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
97          throws com.liferay.portal.SystemException {
98          return _service.updateBookmarksFolder(bookmarksFolder);
99      }
100 
101     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
102         long userId, long plid, long parentFolderId, java.lang.String name,
103         java.lang.String description, boolean addCommunityPermissions,
104         boolean addGuestPermissions)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException {
107         return _service.addFolder(userId, plid, parentFolderId, name,
108             description, addCommunityPermissions, addGuestPermissions);
109     }
110 
111     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
112         java.lang.String uuid, long userId, long plid, long parentFolderId,
113         java.lang.String name, java.lang.String description,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _service.addFolder(uuid, userId, plid, parentFolderId, name,
118             description, addCommunityPermissions, addGuestPermissions);
119     }
120 
121     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
122         long userId, long plid, long parentFolderId, java.lang.String name,
123         java.lang.String description, java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return _service.addFolder(userId, plid, parentFolderId, name,
128             description, communityPermissions, guestPermissions);
129     }
130 
131     public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
132         java.lang.String uuid, long userId, long plid, long parentFolderId,
133         java.lang.String name, java.lang.String description,
134         java.lang.Boolean addCommunityPermissions,
135         java.lang.Boolean addGuestPermissions,
136         java.lang.String[] communityPermissions,
137         java.lang.String[] guestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         return _service.addFolder(uuid, userId, plid, parentFolderId, name,
141             description, addCommunityPermissions, addGuestPermissions,
142             communityPermissions, guestPermissions);
143     }
144 
145     public static void addFolderResources(long folderId,
146         boolean addCommunityPermissions, boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         _service.addFolderResources(folderId, addCommunityPermissions,
150             addGuestPermissions);
151     }
152 
153     public static void addFolderResources(
154         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         _service.addFolderResources(folder, addCommunityPermissions,
159             addGuestPermissions);
160     }
161 
162     public static void addFolderResources(long folderId,
163         java.lang.String[] communityPermissions,
164         java.lang.String[] guestPermissions)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         _service.addFolderResources(folderId, communityPermissions,
168             guestPermissions);
169     }
170 
171     public static void addFolderResources(
172         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
173         java.lang.String[] communityPermissions,
174         java.lang.String[] guestPermissions)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         _service.addFolderResources(folder, communityPermissions,
178             guestPermissions);
179     }
180 
181     public static void deleteFolder(long folderId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         _service.deleteFolder(folderId);
185     }
186 
187     public static void deleteFolder(
188         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         _service.deleteFolder(folder);
192     }
193 
194     public static void deleteFolders(long groupId)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         _service.deleteFolders(groupId);
198     }
199 
200     public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
201         long folderId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         return _service.getFolder(folderId);
205     }
206 
207     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
208         long groupId, long parentFolderId, int start, int end)
209         throws com.liferay.portal.SystemException {
210         return _service.getFolders(groupId, parentFolderId, start, end);
211     }
212 
213     public static int getFoldersCount(long groupId, long parentFolderId)
214         throws com.liferay.portal.SystemException {
215         return _service.getFoldersCount(groupId, parentFolderId);
216     }
217 
218     public static void getSubfolderIds(java.util.List<Long> folderIds,
219         long groupId, long folderId) throws com.liferay.portal.SystemException {
220         _service.getSubfolderIds(folderIds, groupId, folderId);
221     }
222 
223     public static void reIndex(java.lang.String[] ids)
224         throws com.liferay.portal.SystemException {
225         _service.reIndex(ids);
226     }
227 
228     public static com.liferay.portal.kernel.search.Hits search(long companyId,
229         long groupId, long[] folderIds, java.lang.String keywords, int start,
230         int end) throws com.liferay.portal.SystemException {
231         return _service.search(companyId, groupId, folderIds, keywords, start,
232             end);
233     }
234 
235     public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
236         long folderId, long parentFolderId, java.lang.String name,
237         java.lang.String description, boolean mergeWithParentFolder)
238         throws com.liferay.portal.PortalException,
239             com.liferay.portal.SystemException {
240         return _service.updateFolder(folderId, parentFolderId, name,
241             description, mergeWithParentFolder);
242     }
243 
244     public static BookmarksFolderLocalService getService() {
245         return _service;
246     }
247 
248     public void setService(BookmarksFolderLocalService service) {
249         _service = service;
250     }
251 
252     private static BookmarksFolderLocalService _service;
253 }