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.documentlibrary.service;
24  
25  
26  /**
27   * <a href="DLFileEntryLocalServiceUtil.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.documentlibrary.service.DLFileEntryLocalService</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   * <p>
43   * <code>com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService
50   * @see com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory
51   *
52   */
53  public class DLFileEntryLocalServiceUtil {
54      public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
55          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
56          throws com.liferay.portal.SystemException {
57          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
58  
59          return dlFileEntryLocalService.addDLFileEntry(dlFileEntry);
60      }
61  
62      public static void deleteDLFileEntry(long fileEntryId)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
66  
67          dlFileEntryLocalService.deleteDLFileEntry(fileEntryId);
68      }
69  
70      public static void deleteDLFileEntry(
71          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
75  
76          dlFileEntryLocalService.deleteDLFileEntry(dlFileEntry);
77      }
78  
79      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dynamicQuery(
80          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81          throws com.liferay.portal.SystemException {
82          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
83  
84          return dlFileEntryLocalService.dynamicQuery(queryInitializer);
85      }
86  
87      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dynamicQuery(
88          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89          int begin, int end) throws com.liferay.portal.SystemException {
90          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
91  
92          return dlFileEntryLocalService.dynamicQuery(queryInitializer, begin, end);
93      }
94  
95      public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
96          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
97          throws com.liferay.portal.SystemException {
98          DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
99  
100         return dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
101     }
102 
103     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
104         long userId, long folderId, java.lang.String name,
105         java.lang.String title, java.lang.String description,
106         java.lang.String[] tagsEntries, java.lang.String extraSettings,
107         java.io.File file, boolean addCommunityPermissions,
108         boolean addGuestPermissions)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
112 
113         return dlFileEntryLocalService.addFileEntry(userId, folderId, name,
114             title, description, tagsEntries, extraSettings, file,
115             addCommunityPermissions, addGuestPermissions);
116     }
117 
118     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
119         long userId, long folderId, java.lang.String name,
120         java.lang.String title, java.lang.String description,
121         java.lang.String[] tagsEntries, java.lang.String extraSettings,
122         byte[] byteArray, boolean addCommunityPermissions,
123         boolean addGuestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
127 
128         return dlFileEntryLocalService.addFileEntry(userId, folderId, name,
129             title, description, tagsEntries, extraSettings, byteArray,
130             addCommunityPermissions, addGuestPermissions);
131     }
132 
133     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
134         java.lang.String uuid, long userId, long folderId,
135         java.lang.String name, java.lang.String title,
136         java.lang.String description, java.lang.String[] tagsEntries,
137         java.lang.String extraSettings, byte[] byteArray,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
142 
143         return dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
144             name, title, description, tagsEntries, extraSettings, byteArray,
145             addCommunityPermissions, addGuestPermissions);
146     }
147 
148     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
149         long userId, long folderId, java.lang.String name,
150         java.lang.String title, java.lang.String description,
151         java.lang.String[] tagsEntries, java.lang.String extraSettings,
152         java.io.File file, java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
157 
158         return dlFileEntryLocalService.addFileEntry(userId, folderId, name,
159             title, description, tagsEntries, extraSettings, file,
160             communityPermissions, guestPermissions);
161     }
162 
163     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
164         long userId, long folderId, java.lang.String name,
165         java.lang.String title, java.lang.String description,
166         java.lang.String[] tagsEntries, java.lang.String extraSettings,
167         byte[] byteArray, java.lang.String[] communityPermissions,
168         java.lang.String[] guestPermissions)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
172 
173         return dlFileEntryLocalService.addFileEntry(userId, folderId, name,
174             title, description, tagsEntries, extraSettings, byteArray,
175             communityPermissions, guestPermissions);
176     }
177 
178     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
179         long userId, long folderId, java.lang.String name,
180         java.lang.String title, java.lang.String description,
181         java.lang.String[] tagsEntries, java.lang.String extraSettings,
182         java.io.File file, java.lang.Boolean addCommunityPermissions,
183         java.lang.Boolean addGuestPermissions,
184         java.lang.String[] communityPermissions,
185         java.lang.String[] guestPermissions)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
189 
190         return dlFileEntryLocalService.addFileEntry(userId, folderId, name,
191             title, description, tagsEntries, extraSettings, file,
192             addCommunityPermissions, addGuestPermissions, communityPermissions,
193             guestPermissions);
194     }
195 
196     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
197         java.lang.String uuid, long userId, long folderId,
198         java.lang.String name, java.lang.String title,
199         java.lang.String description, java.lang.String[] tagsEntries,
200         java.lang.String extraSettings, byte[] byteArray,
201         java.lang.Boolean addCommunityPermissions,
202         java.lang.Boolean addGuestPermissions,
203         java.lang.String[] communityPermissions,
204         java.lang.String[] guestPermissions)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException {
207         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
208 
209         return dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
210             name, title, description, tagsEntries, extraSettings, byteArray,
211             addCommunityPermissions, addGuestPermissions, communityPermissions,
212             guestPermissions);
213     }
214 
215     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
216         java.lang.String uuid, long userId, long folderId,
217         java.lang.String name, java.lang.String title,
218         java.lang.String description, java.lang.String[] tagsEntries,
219         java.lang.String extraSettings, java.io.InputStream is, long size,
220         java.lang.Boolean addCommunityPermissions,
221         java.lang.Boolean addGuestPermissions,
222         java.lang.String[] communityPermissions,
223         java.lang.String[] guestPermissions)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException {
226         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
227 
228         return dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
229             name, title, description, tagsEntries, extraSettings, is, size,
230             addCommunityPermissions, addGuestPermissions, communityPermissions,
231             guestPermissions);
232     }
233 
234     public static void addFileEntryResources(long folderId,
235         java.lang.String name, boolean addCommunityPermissions,
236         boolean addGuestPermissions)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
240 
241         dlFileEntryLocalService.addFileEntryResources(folderId, name,
242             addCommunityPermissions, addGuestPermissions);
243     }
244 
245     public static void addFileEntryResources(
246         com.liferay.portlet.documentlibrary.model.DLFolder folder,
247         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
248         boolean addCommunityPermissions, boolean addGuestPermissions)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
252 
253         dlFileEntryLocalService.addFileEntryResources(folder, fileEntry,
254             addCommunityPermissions, addGuestPermissions);
255     }
256 
257     public static void addFileEntryResources(long folderId,
258         java.lang.String name, java.lang.String[] communityPermissions,
259         java.lang.String[] guestPermissions)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
263 
264         dlFileEntryLocalService.addFileEntryResources(folderId, name,
265             communityPermissions, guestPermissions);
266     }
267 
268     public static void addFileEntryResources(
269         com.liferay.portlet.documentlibrary.model.DLFolder folder,
270         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
271         java.lang.String[] communityPermissions,
272         java.lang.String[] guestPermissions)
273         throws com.liferay.portal.PortalException,
274             com.liferay.portal.SystemException {
275         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
276 
277         dlFileEntryLocalService.addFileEntryResources(folder, fileEntry,
278             communityPermissions, guestPermissions);
279     }
280 
281     public static com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
282         long userId, long folderId, java.lang.String name,
283         java.lang.String sourceName, java.lang.String title,
284         java.lang.String description, java.lang.String[] tagsEntries,
285         java.lang.String extraSettings, java.io.File file,
286         boolean addCommunityPermissions, boolean addGuestPermissions)
287         throws com.liferay.portal.PortalException,
288             com.liferay.portal.SystemException {
289         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
290 
291         return dlFileEntryLocalService.addOrOverwriteFileEntry(userId,
292             folderId, name, sourceName, title, description, tagsEntries,
293             extraSettings, file, addCommunityPermissions, addGuestPermissions);
294     }
295 
296     public static void deleteFileEntries(long folderId)
297         throws com.liferay.portal.PortalException,
298             com.liferay.portal.SystemException {
299         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
300 
301         dlFileEntryLocalService.deleteFileEntries(folderId);
302     }
303 
304     public static void deleteFileEntry(long folderId, java.lang.String name)
305         throws com.liferay.portal.PortalException,
306             com.liferay.portal.SystemException {
307         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
308 
309         dlFileEntryLocalService.deleteFileEntry(folderId, name);
310     }
311 
312     public static void deleteFileEntry(long folderId, java.lang.String name,
313         double version)
314         throws com.liferay.portal.PortalException,
315             com.liferay.portal.SystemException {
316         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
317 
318         dlFileEntryLocalService.deleteFileEntry(folderId, name, version);
319     }
320 
321     public static void deleteFileEntry(
322         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
323         throws com.liferay.portal.PortalException,
324             com.liferay.portal.SystemException {
325         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
326 
327         dlFileEntryLocalService.deleteFileEntry(fileEntry);
328     }
329 
330     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
331         long companyId, int begin, int end)
332         throws com.liferay.portal.SystemException {
333         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
334 
335         return dlFileEntryLocalService.getCompanyFileEntries(companyId, begin,
336             end);
337     }
338 
339     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
340         long companyId, int begin, int end,
341         com.liferay.portal.kernel.util.OrderByComparator obc)
342         throws com.liferay.portal.SystemException {
343         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
344 
345         return dlFileEntryLocalService.getCompanyFileEntries(companyId, begin,
346             end, obc);
347     }
348 
349     public static int getCompanyFileEntriesCount(long companyId)
350         throws com.liferay.portal.SystemException {
351         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
352 
353         return dlFileEntryLocalService.getCompanyFileEntriesCount(companyId);
354     }
355 
356     public static java.io.InputStream getFileAsStream(long companyId,
357         long userId, long folderId, java.lang.String name)
358         throws com.liferay.portal.PortalException,
359             com.liferay.portal.SystemException {
360         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
361 
362         return dlFileEntryLocalService.getFileAsStream(companyId, userId,
363             folderId, name);
364     }
365 
366     public static java.io.InputStream getFileAsStream(long companyId,
367         long userId, long folderId, java.lang.String name, double version)
368         throws com.liferay.portal.PortalException,
369             com.liferay.portal.SystemException {
370         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
371 
372         return dlFileEntryLocalService.getFileAsStream(companyId, userId,
373             folderId, name, version);
374     }
375 
376     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
377         long folderId) throws com.liferay.portal.SystemException {
378         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
379 
380         return dlFileEntryLocalService.getFileEntries(folderId);
381     }
382 
383     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
384         long folderId, int begin, int end)
385         throws com.liferay.portal.SystemException {
386         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
387 
388         return dlFileEntryLocalService.getFileEntries(folderId, begin, end);
389     }
390 
391     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
392         long folderId, int begin, int end,
393         com.liferay.portal.kernel.util.OrderByComparator obc)
394         throws com.liferay.portal.SystemException {
395         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
396 
397         return dlFileEntryLocalService.getFileEntries(folderId, begin, end, obc);
398     }
399 
400     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntriesAndShortcuts(
401         long folderId, int begin, int end)
402         throws com.liferay.portal.SystemException {
403         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
404 
405         return dlFileEntryLocalService.getFileEntriesAndShortcuts(folderId,
406             begin, end);
407     }
408 
409     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntriesAndShortcuts(
410         java.util.List<Long> folderIds, int begin, int end)
411         throws com.liferay.portal.SystemException {
412         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
413 
414         return dlFileEntryLocalService.getFileEntriesAndShortcuts(folderIds,
415             begin, end);
416     }
417 
418     public static int getFileEntriesAndShortcutsCount(long folderId)
419         throws com.liferay.portal.SystemException {
420         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
421 
422         return dlFileEntryLocalService.getFileEntriesAndShortcutsCount(folderId);
423     }
424 
425     public static int getFileEntriesAndShortcutsCount(
426         java.util.List<Long> folderIds)
427         throws com.liferay.portal.SystemException {
428         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
429 
430         return dlFileEntryLocalService.getFileEntriesAndShortcutsCount(folderIds);
431     }
432 
433     public static int getFileEntriesCount(long folderId)
434         throws com.liferay.portal.SystemException {
435         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
436 
437         return dlFileEntryLocalService.getFileEntriesCount(folderId);
438     }
439 
440     public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
441         long fileEntryId)
442         throws com.liferay.portal.PortalException,
443             com.liferay.portal.SystemException {
444         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
445 
446         return dlFileEntryLocalService.getFileEntry(fileEntryId);
447     }
448 
449     public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
450         long folderId, java.lang.String name)
451         throws com.liferay.portal.PortalException,
452             com.liferay.portal.SystemException {
453         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
454 
455         return dlFileEntryLocalService.getFileEntry(folderId, name);
456     }
457 
458     public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
459         java.lang.String uuid, long groupId)
460         throws com.liferay.portal.PortalException,
461             com.liferay.portal.SystemException {
462         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
463 
464         return dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
465             groupId);
466     }
467 
468     public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
469         long folderId, java.lang.String titleWithExtension)
470         throws com.liferay.portal.PortalException,
471             com.liferay.portal.SystemException {
472         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
473 
474         return dlFileEntryLocalService.getFileEntryByTitle(folderId,
475             titleWithExtension);
476     }
477 
478     public static int getFoldersFileEntriesCount(java.util.List<Long> folderIds)
479         throws com.liferay.portal.SystemException {
480         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
481 
482         return dlFileEntryLocalService.getFoldersFileEntriesCount(folderIds);
483     }
484 
485     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
486         long groupId, int begin, int end)
487         throws com.liferay.portal.SystemException {
488         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
489 
490         return dlFileEntryLocalService.getGroupFileEntries(groupId, begin, end);
491     }
492 
493     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
494         long groupId, int begin, int end,
495         com.liferay.portal.kernel.util.OrderByComparator obc)
496         throws com.liferay.portal.SystemException {
497         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
498 
499         return dlFileEntryLocalService.getGroupFileEntries(groupId, begin, end,
500             obc);
501     }
502 
503     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
504         long groupId, long userId, int begin, int end)
505         throws com.liferay.portal.SystemException {
506         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
507 
508         return dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
509             begin, end);
510     }
511 
512     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
513         long groupId, long userId, int begin, int end,
514         com.liferay.portal.kernel.util.OrderByComparator obc)
515         throws com.liferay.portal.SystemException {
516         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
517 
518         return dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
519             begin, end, obc);
520     }
521 
522     public static int getGroupFileEntriesCount(long groupId)
523         throws com.liferay.portal.SystemException {
524         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
525 
526         return dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
527     }
528 
529     public static int getGroupFileEntriesCount(long groupId, long userId)
530         throws com.liferay.portal.SystemException {
531         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
532 
533         return dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
534     }
535 
536     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
537         throws com.liferay.portal.SystemException {
538         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
539 
540         return dlFileEntryLocalService.getNoAssetFileEntries();
541     }
542 
543     public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
544         long userId, long folderId, long newFolderId, java.lang.String name,
545         java.lang.String sourceFileName, java.lang.String title,
546         java.lang.String description, java.lang.String[] tagsEntries,
547         java.lang.String extraSettings, java.io.File file)
548         throws com.liferay.portal.PortalException,
549             com.liferay.portal.SystemException {
550         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
551 
552         return dlFileEntryLocalService.updateFileEntry(userId, folderId,
553             newFolderId, name, sourceFileName, title, description, tagsEntries,
554             extraSettings, file);
555     }
556 
557     public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
558         long userId, long folderId, long newFolderId, java.lang.String name,
559         java.lang.String sourceFileName, java.lang.String title,
560         java.lang.String description, java.lang.String[] tagsEntries,
561         java.lang.String extraSettings, byte[] byteArray)
562         throws com.liferay.portal.PortalException,
563             com.liferay.portal.SystemException {
564         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
565 
566         return dlFileEntryLocalService.updateFileEntry(userId, folderId,
567             newFolderId, name, sourceFileName, title, description, tagsEntries,
568             extraSettings, byteArray);
569     }
570 
571     public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
572         long userId, long folderId, long newFolderId, java.lang.String name,
573         java.lang.String sourceFileName, java.lang.String title,
574         java.lang.String description, java.lang.String[] tagsEntries,
575         java.lang.String extraSettings, java.io.InputStream is, long size)
576         throws com.liferay.portal.PortalException,
577             com.liferay.portal.SystemException {
578         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
579 
580         return dlFileEntryLocalService.updateFileEntry(userId, folderId,
581             newFolderId, name, sourceFileName, title, description, tagsEntries,
582             extraSettings, is, size);
583     }
584 
585     public static void updateTagsAsset(long userId,
586         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
587         java.lang.String[] tagsEntries)
588         throws com.liferay.portal.PortalException,
589             com.liferay.portal.SystemException {
590         DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory.getService();
591 
592         dlFileEntryLocalService.updateTagsAsset(userId, fileEntry, tagsEntries);
593     }
594 }