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.documentlibrary.service;
24  
25  
26  /**
27   * <a href="DLFolderLocalServiceUtil.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 DLFolderLocalService} 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       DLFolderLocalService
44   * @generated
45   */
46  public class DLFolderLocalServiceUtil {
47      public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
48          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
49          throws com.liferay.portal.SystemException {
50          return getService().addDLFolder(dlFolder);
51      }
52  
53      public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
54          long folderId) {
55          return getService().createDLFolder(folderId);
56      }
57  
58      public static void deleteDLFolder(long folderId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteDLFolder(folderId);
62      }
63  
64      public static void deleteDLFolder(
65          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
66          throws com.liferay.portal.SystemException {
67          getService().deleteDLFolder(dlFolder);
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.documentlibrary.model.DLFolder getDLFolder(
83          long folderId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getDLFolder(folderId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getDLFolders(start, end);
92      }
93  
94      public static int getDLFoldersCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getDLFoldersCount();
97      }
98  
99      public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
100         com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
101         throws com.liferay.portal.SystemException {
102         return getService().updateDLFolder(dlFolder);
103     }
104 
105     public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
106         com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return getService().updateDLFolder(dlFolder, merge);
109     }
110 
111     public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
112         long userId, long groupId, 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, groupId, parentFolderId, name,
119             description, serviceContext);
120     }
121 
122     public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
123         java.lang.String uuid, long userId, long groupId, 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, groupId, parentFolderId, name,
130             description, 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.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder 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 java.util.List<Object> getFileEntriesAndFileShortcuts(
191         long folderId, int start, int end)
192         throws com.liferay.portal.SystemException {
193         return getService().getFileEntriesAndFileShortcuts(folderId, start, end);
194     }
195 
196     public static java.util.List<Object> getFileEntriesAndFileShortcuts(
197         java.util.List<Long> folderIds, int start, int end)
198         throws com.liferay.portal.SystemException {
199         return getService().getFileEntriesAndFileShortcuts(folderIds, start, end);
200     }
201 
202     public static int getFileEntriesAndFileShortcutsCount(long folderId)
203         throws com.liferay.portal.SystemException {
204         return getService().getFileEntriesAndFileShortcutsCount(folderId);
205     }
206 
207     public static int getFileEntriesAndFileShortcutsCount(
208         java.util.List<Long> folderIds)
209         throws com.liferay.portal.SystemException {
210         return getService().getFileEntriesAndFileShortcutsCount(folderIds);
211     }
212 
213     public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
214         long folderId)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         return getService().getFolder(folderId);
218     }
219 
220     public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
221         long groupId, long parentFolderId, java.lang.String name)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         return getService().getFolder(groupId, parentFolderId, name);
225     }
226 
227     public static java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
228         long folderId, int start, int end)
229         throws com.liferay.portal.SystemException {
230         return getService()
231                    .getFoldersAndFileEntriesAndFileShortcuts(folderId, start,
232             end);
233     }
234 
235     public static java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
236         java.util.List<Long> folderIds, int start, int end)
237         throws com.liferay.portal.SystemException {
238         return getService()
239                    .getFoldersAndFileEntriesAndFileShortcuts(folderIds, start,
240             end);
241     }
242 
243     public static int getFoldersAndFileEntriesAndFileShortcutsCount(
244         long folderId) throws com.liferay.portal.SystemException {
245         return getService()
246                    .getFoldersAndFileEntriesAndFileShortcutsCount(folderId);
247     }
248 
249     public static int getFoldersAndFileEntriesAndFileShortcutsCount(
250         java.util.List<Long> folderIds)
251         throws com.liferay.portal.SystemException {
252         return getService()
253                    .getFoldersAndFileEntriesAndFileShortcutsCount(folderIds);
254     }
255 
256     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
257         long companyId) throws com.liferay.portal.SystemException {
258         return getService().getFolders(companyId);
259     }
260 
261     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
262         long groupId, long parentFolderId)
263         throws com.liferay.portal.SystemException {
264         return getService().getFolders(groupId, parentFolderId);
265     }
266 
267     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
268         long groupId, long parentFolderId, int start, int end)
269         throws com.liferay.portal.SystemException {
270         return getService().getFolders(groupId, parentFolderId, start, end);
271     }
272 
273     public static int getFoldersCount(long groupId, long parentFolderId)
274         throws com.liferay.portal.SystemException {
275         return getService().getFoldersCount(groupId, parentFolderId);
276     }
277 
278     public static void getSubfolderIds(java.util.List<Long> folderIds,
279         long groupId, long folderId) throws com.liferay.portal.SystemException {
280         getService().getSubfolderIds(folderIds, groupId, folderId);
281     }
282 
283     public static void reIndex(java.lang.String[] ids)
284         throws com.liferay.portal.SystemException {
285         getService().reIndex(ids);
286     }
287 
288     public static com.liferay.portal.kernel.search.Hits search(long companyId,
289         long groupId, long userId, long[] folderIds, java.lang.String keywords,
290         int start, int end) throws com.liferay.portal.SystemException {
291         return getService()
292                    .search(companyId, groupId, userId, folderIds, keywords,
293             start, end);
294     }
295 
296     public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
297         long folderId, long parentFolderId, java.lang.String name,
298         java.lang.String description,
299         com.liferay.portal.service.ServiceContext serviceContext)
300         throws com.liferay.portal.PortalException,
301             com.liferay.portal.SystemException {
302         return getService()
303                    .updateFolder(folderId, parentFolderId, name, description,
304             serviceContext);
305     }
306 
307     public static DLFolderLocalService getService() {
308         if (_service == null) {
309             throw new RuntimeException("DLFolderLocalService is not set");
310         }
311 
312         return _service;
313     }
314 
315     public void setService(DLFolderLocalService service) {
316         _service = service;
317     }
318 
319     private static DLFolderLocalService _service;
320 }