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