1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.documentlibrary.service;
16  
17  /**
18   * <a href="DLFileEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link DLFileEntryLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       DLFileEntryLocalService
31   * @generated
32   */
33  public class DLFileEntryLocalServiceWrapper implements DLFileEntryLocalService {
34      public DLFileEntryLocalServiceWrapper(
35          DLFileEntryLocalService dlFileEntryLocalService) {
36          _dlFileEntryLocalService = dlFileEntryLocalService;
37      }
38  
39      public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
40          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
41          throws com.liferay.portal.SystemException {
42          return _dlFileEntryLocalService.addDLFileEntry(dlFileEntry);
43      }
44  
45      public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
46          long fileEntryId) {
47          return _dlFileEntryLocalService.createDLFileEntry(fileEntryId);
48      }
49  
50      public void deleteDLFileEntry(long fileEntryId)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          _dlFileEntryLocalService.deleteDLFileEntry(fileEntryId);
54      }
55  
56      public void deleteDLFileEntry(
57          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
58          throws com.liferay.portal.SystemException {
59          _dlFileEntryLocalService.deleteDLFileEntry(dlFileEntry);
60      }
61  
62      @SuppressWarnings("rawtypes")
63      public java.util.List dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      @SuppressWarnings("rawtypes")
70      public java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      @SuppressWarnings("rawtypes")
77      public java.util.List dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException {
82          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end,
83              orderByComparator);
84      }
85  
86      public int dynamicQueryCount(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
88          throws com.liferay.portal.SystemException {
89          return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery);
90      }
91  
92      public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
93          long fileEntryId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          return _dlFileEntryLocalService.getDLFileEntry(fileEntryId);
97      }
98  
99      public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
100         java.lang.String uuid, long groupId)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException {
103         return _dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid,
104             groupId);
105     }
106 
107     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
108         int start, int end) throws com.liferay.portal.SystemException {
109         return _dlFileEntryLocalService.getDLFileEntries(start, end);
110     }
111 
112     public int getDLFileEntriesCount()
113         throws com.liferay.portal.SystemException {
114         return _dlFileEntryLocalService.getDLFileEntriesCount();
115     }
116 
117     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
118         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
119         throws com.liferay.portal.SystemException {
120         return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
121     }
122 
123     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
124         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
125         boolean merge) throws com.liferay.portal.SystemException {
126         return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry, merge);
127     }
128 
129     /**
130     * @deprecated
131     */
132     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
133         long userId, long folderId, java.lang.String name,
134         java.lang.String title, java.lang.String description,
135         java.lang.String extraSettings, byte[] bytes,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return _dlFileEntryLocalService.addFileEntry(userId, folderId, name,
140             title, description, extraSettings, bytes, serviceContext);
141     }
142 
143     /**
144     * @deprecated
145     */
146     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
147         long userId, long folderId, java.lang.String name,
148         java.lang.String title, java.lang.String description,
149         java.lang.String extraSettings, java.io.File file,
150         com.liferay.portal.service.ServiceContext serviceContext)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         return _dlFileEntryLocalService.addFileEntry(userId, folderId, name,
154             title, description, extraSettings, file, serviceContext);
155     }
156 
157     /**
158     * @deprecated
159     */
160     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
161         long userId, long folderId, java.lang.String name,
162         java.lang.String title, java.lang.String description,
163         java.lang.String extraSettings, java.io.InputStream is, int size,
164         com.liferay.portal.service.ServiceContext serviceContext)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         return _dlFileEntryLocalService.addFileEntry(userId, folderId, name,
168             title, description, extraSettings, is, size, serviceContext);
169     }
170 
171     /**
172     * @deprecated
173     */
174     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
175         java.lang.String uuid, long userId, long folderId,
176         java.lang.String name, java.lang.String title,
177         java.lang.String description, java.lang.String extraSettings,
178         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         return _dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
182             name, title, description, extraSettings, bytes, serviceContext);
183     }
184 
185     /**
186     * @deprecated
187     */
188     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
189         java.lang.String uuid, long userId, long folderId,
190         java.lang.String name, java.lang.String title,
191         java.lang.String description, java.lang.String extraSettings,
192         java.io.File file,
193         com.liferay.portal.service.ServiceContext serviceContext)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         return _dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
197             name, title, description, extraSettings, file, serviceContext);
198     }
199 
200     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
201         java.lang.String uuid, long userId, long folderId,
202         java.lang.String name, java.lang.String title,
203         java.lang.String description, java.lang.String versionDescription,
204         java.lang.String extraSettings, byte[] bytes,
205         com.liferay.portal.service.ServiceContext serviceContext)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         return _dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
209             name, title, description, versionDescription, extraSettings, bytes,
210             serviceContext);
211     }
212 
213     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
214         java.lang.String uuid, long userId, long folderId,
215         java.lang.String name, java.lang.String title,
216         java.lang.String description, java.lang.String versionDescription,
217         java.lang.String extraSettings, java.io.File file,
218         com.liferay.portal.service.ServiceContext serviceContext)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         return _dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
222             name, title, description, versionDescription, extraSettings, file,
223             serviceContext);
224     }
225 
226     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
227         java.lang.String uuid, long userId, long folderId,
228         java.lang.String name, java.lang.String title,
229         java.lang.String description, java.lang.String versionDescription,
230         java.lang.String extraSettings, java.io.InputStream is, long size,
231         com.liferay.portal.service.ServiceContext serviceContext)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException {
234         return _dlFileEntryLocalService.addFileEntry(uuid, userId, folderId,
235             name, title, description, versionDescription, extraSettings, is,
236             size, serviceContext);
237     }
238 
239     public void addFileEntryResources(
240         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
241         boolean addCommunityPermissions, boolean addGuestPermissions)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException {
244         _dlFileEntryLocalService.addFileEntryResources(fileEntry,
245             addCommunityPermissions, addGuestPermissions);
246     }
247 
248     public void addFileEntryResources(
249         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
250         java.lang.String[] communityPermissions,
251         java.lang.String[] guestPermissions)
252         throws com.liferay.portal.PortalException,
253             com.liferay.portal.SystemException {
254         _dlFileEntryLocalService.addFileEntryResources(fileEntry,
255             communityPermissions, guestPermissions);
256     }
257 
258     public void addFileEntryResources(long fileEntryId,
259         boolean addCommunityPermissions, boolean addGuestPermissions)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
263             addCommunityPermissions, addGuestPermissions);
264     }
265 
266     public void addFileEntryResources(long fileEntryId,
267         java.lang.String[] communityPermissions,
268         java.lang.String[] guestPermissions)
269         throws com.liferay.portal.PortalException,
270             com.liferay.portal.SystemException {
271         _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
272             communityPermissions, guestPermissions);
273     }
274 
275     public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
276         long userId, long folderId, java.lang.String name,
277         java.lang.String sourceName, java.lang.String title,
278         java.lang.String description, java.lang.String extraSettings,
279         java.io.File file,
280         com.liferay.portal.service.ServiceContext serviceContext)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return _dlFileEntryLocalService.addOrOverwriteFileEntry(userId,
284             folderId, name, sourceName, title, description, extraSettings,
285             file, serviceContext);
286     }
287 
288     public void deleteFileEntries(long folderId)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException {
291         _dlFileEntryLocalService.deleteFileEntries(folderId);
292     }
293 
294     public void deleteFileEntry(
295         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException {
298         _dlFileEntryLocalService.deleteFileEntry(fileEntry);
299     }
300 
301     public void deleteFileEntry(long folderId, java.lang.String name)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException {
304         _dlFileEntryLocalService.deleteFileEntry(folderId, name);
305     }
306 
307     public void deleteFileEntry(long folderId, java.lang.String name,
308         double version)
309         throws com.liferay.portal.PortalException,
310             com.liferay.portal.SystemException {
311         _dlFileEntryLocalService.deleteFileEntry(folderId, name, version);
312     }
313 
314     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
315         long companyId, int start, int end)
316         throws com.liferay.portal.SystemException {
317         return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
318             end);
319     }
320 
321     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
322         long companyId, int start, int end,
323         com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.SystemException {
325         return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
326             end, obc);
327     }
328 
329     public int getCompanyFileEntriesCount(long companyId)
330         throws com.liferay.portal.SystemException {
331         return _dlFileEntryLocalService.getCompanyFileEntriesCount(companyId);
332     }
333 
334     public java.io.InputStream getFileAsStream(long companyId, long userId,
335         long folderId, java.lang.String name)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException {
338         return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
339             folderId, name);
340     }
341 
342     public java.io.InputStream getFileAsStream(long companyId, long userId,
343         long folderId, java.lang.String name, double version)
344         throws com.liferay.portal.PortalException,
345             com.liferay.portal.SystemException {
346         return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
347             folderId, name, version);
348     }
349 
350     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
351         long folderId) throws com.liferay.portal.SystemException {
352         return _dlFileEntryLocalService.getFileEntries(folderId);
353     }
354 
355     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
356         long folderId, int start, int end)
357         throws com.liferay.portal.SystemException {
358         return _dlFileEntryLocalService.getFileEntries(folderId, start, end);
359     }
360 
361     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
362         long folderId, int start, int end,
363         com.liferay.portal.kernel.util.OrderByComparator obc)
364         throws com.liferay.portal.SystemException {
365         return _dlFileEntryLocalService.getFileEntries(folderId, start, end, obc);
366     }
367 
368     public int getFileEntriesCount(long folderId)
369         throws com.liferay.portal.SystemException {
370         return _dlFileEntryLocalService.getFileEntriesCount(folderId);
371     }
372 
373     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
374         long fileEntryId)
375         throws com.liferay.portal.PortalException,
376             com.liferay.portal.SystemException {
377         return _dlFileEntryLocalService.getFileEntry(fileEntryId);
378     }
379 
380     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
381         long folderId, java.lang.String name)
382         throws com.liferay.portal.PortalException,
383             com.liferay.portal.SystemException {
384         return _dlFileEntryLocalService.getFileEntry(folderId, name);
385     }
386 
387     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
388         long folderId, java.lang.String titleWithExtension)
389         throws com.liferay.portal.PortalException,
390             com.liferay.portal.SystemException {
391         return _dlFileEntryLocalService.getFileEntryByTitle(folderId,
392             titleWithExtension);
393     }
394 
395     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
396         java.lang.String uuid, long groupId)
397         throws com.liferay.portal.PortalException,
398             com.liferay.portal.SystemException {
399         return _dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
400             groupId);
401     }
402 
403     public int getFoldersFileEntriesCount(
404         java.util.List<java.lang.Long> folderIds)
405         throws com.liferay.portal.SystemException {
406         return _dlFileEntryLocalService.getFoldersFileEntriesCount(folderIds);
407     }
408 
409     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
410         long groupId, int start, int end)
411         throws com.liferay.portal.SystemException {
412         return _dlFileEntryLocalService.getGroupFileEntries(groupId, start, end);
413     }
414 
415     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
416         long groupId, int start, int end,
417         com.liferay.portal.kernel.util.OrderByComparator obc)
418         throws com.liferay.portal.SystemException {
419         return _dlFileEntryLocalService.getGroupFileEntries(groupId, start,
420             end, obc);
421     }
422 
423     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
424         long groupId, long userId, int start, int end)
425         throws com.liferay.portal.SystemException {
426         return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
427             start, end);
428     }
429 
430     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
431         long groupId, long userId, int start, int end,
432         com.liferay.portal.kernel.util.OrderByComparator obc)
433         throws com.liferay.portal.SystemException {
434         return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
435             start, end, obc);
436     }
437 
438     public int getGroupFileEntriesCount(long groupId)
439         throws com.liferay.portal.SystemException {
440         return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
441     }
442 
443     public int getGroupFileEntriesCount(long groupId, long userId)
444         throws com.liferay.portal.SystemException {
445         return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
446     }
447 
448     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
449         throws com.liferay.portal.SystemException {
450         return _dlFileEntryLocalService.getNoAssetFileEntries();
451     }
452 
453     public void reIndex(long fileEntryId)
454         throws com.liferay.portal.SystemException {
455         _dlFileEntryLocalService.reIndex(fileEntryId);
456     }
457 
458     /**
459     * @deprecated
460     */
461     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
462         long userId, long folderId, long newFolderId, java.lang.String name,
463         java.lang.String sourceFileName, java.lang.String title,
464         java.lang.String description, java.lang.String extraSettings,
465         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
466         throws com.liferay.portal.PortalException,
467             com.liferay.portal.SystemException {
468         return _dlFileEntryLocalService.updateFileEntry(userId, folderId,
469             newFolderId, name, sourceFileName, title, description,
470             extraSettings, bytes, serviceContext);
471     }
472 
473     /**
474     * @deprecated
475     */
476     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
477         long userId, long folderId, long newFolderId, java.lang.String name,
478         java.lang.String sourceFileName, java.lang.String title,
479         java.lang.String description, java.lang.String extraSettings,
480         java.io.File file,
481         com.liferay.portal.service.ServiceContext serviceContext)
482         throws com.liferay.portal.PortalException,
483             com.liferay.portal.SystemException {
484         return _dlFileEntryLocalService.updateFileEntry(userId, folderId,
485             newFolderId, name, sourceFileName, title, description,
486             extraSettings, file, serviceContext);
487     }
488 
489     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
490         long userId, long folderId, long newFolderId, java.lang.String name,
491         java.lang.String sourceFileName, java.lang.String title,
492         java.lang.String description, java.lang.String versionDescription,
493         java.lang.String extraSettings, byte[] bytes,
494         com.liferay.portal.service.ServiceContext serviceContext)
495         throws com.liferay.portal.PortalException,
496             com.liferay.portal.SystemException {
497         return _dlFileEntryLocalService.updateFileEntry(userId, folderId,
498             newFolderId, name, sourceFileName, title, description,
499             versionDescription, extraSettings, bytes, serviceContext);
500     }
501 
502     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
503         long userId, long folderId, long newFolderId, java.lang.String name,
504         java.lang.String sourceFileName, java.lang.String title,
505         java.lang.String description, java.lang.String versionDescription,
506         java.lang.String extraSettings, java.io.File file,
507         com.liferay.portal.service.ServiceContext serviceContext)
508         throws com.liferay.portal.PortalException,
509             com.liferay.portal.SystemException {
510         return _dlFileEntryLocalService.updateFileEntry(userId, folderId,
511             newFolderId, name, sourceFileName, title, description,
512             versionDescription, extraSettings, file, serviceContext);
513     }
514 
515     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
516         long userId, long folderId, long newFolderId, java.lang.String name,
517         java.lang.String sourceFileName, java.lang.String title,
518         java.lang.String description, java.lang.String versionDescription,
519         java.lang.String extraSettings, java.io.InputStream is, long size,
520         com.liferay.portal.service.ServiceContext serviceContext)
521         throws com.liferay.portal.PortalException,
522             com.liferay.portal.SystemException {
523         return _dlFileEntryLocalService.updateFileEntry(userId, folderId,
524             newFolderId, name, sourceFileName, title, description,
525             versionDescription, extraSettings, is, size, serviceContext);
526     }
527 
528     public void updateTagsAsset(long userId,
529         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
530         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
531         throws com.liferay.portal.PortalException,
532             com.liferay.portal.SystemException {
533         _dlFileEntryLocalService.updateTagsAsset(userId, fileEntry,
534             tagsCategories, tagsEntries);
535     }
536 
537     public DLFileEntryLocalService getWrappedDLFileEntryLocalService() {
538         return _dlFileEntryLocalService;
539     }
540 
541     private DLFileEntryLocalService _dlFileEntryLocalService;
542 }