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.kernel.exception.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.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _dlFileEntryLocalService.deleteDLFileEntry(fileEntryId);
55      }
56  
57      public void deleteDLFileEntry(
58          com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          _dlFileEntryLocalService.deleteDLFileEntry(dlFileEntry);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end,
84              orderByComparator);
85      }
86  
87      public long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery);
91      }
92  
93      public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
94          long fileEntryId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return _dlFileEntryLocalService.getDLFileEntry(fileEntryId);
98      }
99  
100     public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return _dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid,
105             groupId);
106     }
107 
108     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
109         int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return _dlFileEntryLocalService.getDLFileEntries(start, end);
112     }
113 
114     public int getDLFileEntriesCount()
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return _dlFileEntryLocalService.getDLFileEntriesCount();
117     }
118 
119     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
120         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
121         throws com.liferay.portal.kernel.exception.SystemException {
122         return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
123     }
124 
125     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
126         com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
127         boolean merge)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry, merge);
130     }
131 
132     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
133         java.lang.String uuid, long userId, long groupId, long folderId,
134         java.lang.String name, java.lang.String title,
135         java.lang.String description, java.lang.String versionDescription,
136         java.lang.String extraSettings, byte[] bytes,
137         com.liferay.portal.service.ServiceContext serviceContext)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException {
140         return _dlFileEntryLocalService.addFileEntry(uuid, userId, groupId,
141             folderId, name, title, description, versionDescription,
142             extraSettings, bytes, serviceContext);
143     }
144 
145     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
146         java.lang.String uuid, long userId, long groupId, long folderId,
147         java.lang.String name, java.lang.String title,
148         java.lang.String description, java.lang.String versionDescription,
149         java.lang.String extraSettings, java.io.File file,
150         com.liferay.portal.service.ServiceContext serviceContext)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException {
153         return _dlFileEntryLocalService.addFileEntry(uuid, userId, groupId,
154             folderId, name, title, description, versionDescription,
155             extraSettings, file, serviceContext);
156     }
157 
158     public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
159         java.lang.String uuid, long userId, long groupId, long folderId,
160         java.lang.String name, java.lang.String title,
161         java.lang.String description, java.lang.String versionDescription,
162         java.lang.String extraSettings, java.io.InputStream is, long size,
163         com.liferay.portal.service.ServiceContext serviceContext)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException {
166         return _dlFileEntryLocalService.addFileEntry(uuid, userId, groupId,
167             folderId, name, title, description, versionDescription,
168             extraSettings, is, size, serviceContext);
169     }
170 
171     public void addFileEntryResources(
172         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
173         boolean addCommunityPermissions, boolean addGuestPermissions)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         _dlFileEntryLocalService.addFileEntryResources(fileEntry,
177             addCommunityPermissions, addGuestPermissions);
178     }
179 
180     public void addFileEntryResources(
181         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
182         java.lang.String[] communityPermissions,
183         java.lang.String[] guestPermissions)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         _dlFileEntryLocalService.addFileEntryResources(fileEntry,
187             communityPermissions, guestPermissions);
188     }
189 
190     public void addFileEntryResources(long fileEntryId,
191         boolean addCommunityPermissions, boolean addGuestPermissions)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
195             addCommunityPermissions, addGuestPermissions);
196     }
197 
198     public void addFileEntryResources(long fileEntryId,
199         java.lang.String[] communityPermissions,
200         java.lang.String[] guestPermissions)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException {
203         _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
204             communityPermissions, guestPermissions);
205     }
206 
207     public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
208         long userId, long groupId, long folderId, java.lang.String name,
209         java.lang.String sourceName, java.lang.String title,
210         java.lang.String description, java.lang.String versionDescription,
211         java.lang.String extraSettings, java.io.File file,
212         com.liferay.portal.service.ServiceContext serviceContext)
213         throws com.liferay.portal.kernel.exception.PortalException,
214             com.liferay.portal.kernel.exception.SystemException {
215         return _dlFileEntryLocalService.addOrOverwriteFileEntry(userId,
216             groupId, folderId, name, sourceName, title, description,
217             versionDescription, extraSettings, file, serviceContext);
218     }
219 
220     public void deleteFileEntries(long groupId, long folderId)
221         throws com.liferay.portal.kernel.exception.PortalException,
222             com.liferay.portal.kernel.exception.SystemException {
223         _dlFileEntryLocalService.deleteFileEntries(groupId, folderId);
224     }
225 
226     public void deleteFileEntry(
227         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
228         throws com.liferay.portal.kernel.exception.PortalException,
229             com.liferay.portal.kernel.exception.SystemException {
230         _dlFileEntryLocalService.deleteFileEntry(fileEntry);
231     }
232 
233     public void deleteFileEntry(long groupId, long folderId,
234         java.lang.String name)
235         throws com.liferay.portal.kernel.exception.PortalException,
236             com.liferay.portal.kernel.exception.SystemException {
237         _dlFileEntryLocalService.deleteFileEntry(groupId, folderId, name);
238     }
239 
240     public void deleteFileEntry(long groupId, long folderId,
241         java.lang.String name, java.lang.String version)
242         throws com.liferay.portal.kernel.exception.PortalException,
243             com.liferay.portal.kernel.exception.SystemException {
244         _dlFileEntryLocalService.deleteFileEntry(groupId, folderId, name,
245             version);
246     }
247 
248     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
249         long companyId, int start, int end)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
252             end);
253     }
254 
255     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
256         long companyId, int start, int end,
257         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
260             end, obc);
261     }
262 
263     public int getCompanyFileEntriesCount(long companyId)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return _dlFileEntryLocalService.getCompanyFileEntriesCount(companyId);
266     }
267 
268     public java.io.InputStream getFileAsStream(long companyId, long userId,
269         long groupId, long folderId, java.lang.String name)
270         throws com.liferay.portal.kernel.exception.PortalException,
271             com.liferay.portal.kernel.exception.SystemException {
272         return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
273             groupId, folderId, name);
274     }
275 
276     public java.io.InputStream getFileAsStream(long companyId, long userId,
277         long groupId, long folderId, java.lang.String name,
278         java.lang.String version)
279         throws com.liferay.portal.kernel.exception.PortalException,
280             com.liferay.portal.kernel.exception.SystemException {
281         return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
282             groupId, folderId, name, version);
283     }
284 
285     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
286         long groupId, long folderId)
287         throws com.liferay.portal.kernel.exception.SystemException {
288         return _dlFileEntryLocalService.getFileEntries(groupId, folderId);
289     }
290 
291     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
292         long groupId, long folderId, int start, int end)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
295             start, end);
296     }
297 
298     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
299         long groupId, long folderId, int start, int end,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
303             start, end, obc);
304     }
305 
306     public int getFileEntriesCount(long groupId, long folderId)
307         throws com.liferay.portal.kernel.exception.SystemException {
308         return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId);
309     }
310 
311     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
312         long fileEntryId)
313         throws com.liferay.portal.kernel.exception.PortalException,
314             com.liferay.portal.kernel.exception.SystemException {
315         return _dlFileEntryLocalService.getFileEntry(fileEntryId);
316     }
317 
318     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
319         long groupId, long folderId, java.lang.String name)
320         throws com.liferay.portal.kernel.exception.PortalException,
321             com.liferay.portal.kernel.exception.SystemException {
322         return _dlFileEntryLocalService.getFileEntry(groupId, folderId, name);
323     }
324 
325     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
326         long groupId, long folderId, java.lang.String title)
327         throws com.liferay.portal.kernel.exception.PortalException,
328             com.liferay.portal.kernel.exception.SystemException {
329         return _dlFileEntryLocalService.getFileEntryByTitle(groupId, folderId,
330             title);
331     }
332 
333     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
334         java.lang.String uuid, long groupId)
335         throws com.liferay.portal.kernel.exception.PortalException,
336             com.liferay.portal.kernel.exception.SystemException {
337         return _dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
338             groupId);
339     }
340 
341     public int getFoldersFileEntriesCount(long groupId,
342         java.util.List<java.lang.Long> folderIds, int status)
343         throws com.liferay.portal.kernel.exception.SystemException {
344         return _dlFileEntryLocalService.getFoldersFileEntriesCount(groupId,
345             folderIds, status);
346     }
347 
348     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
349         long groupId, int start, int end)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         return _dlFileEntryLocalService.getGroupFileEntries(groupId, start, end);
352     }
353 
354     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
355         long groupId, int start, int end,
356         com.liferay.portal.kernel.util.OrderByComparator obc)
357         throws com.liferay.portal.kernel.exception.SystemException {
358         return _dlFileEntryLocalService.getGroupFileEntries(groupId, start,
359             end, obc);
360     }
361 
362     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
363         long groupId, long userId, int start, int end)
364         throws com.liferay.portal.kernel.exception.SystemException {
365         return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
366             start, end);
367     }
368 
369     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
370         long groupId, long userId, int start, int end,
371         com.liferay.portal.kernel.util.OrderByComparator obc)
372         throws com.liferay.portal.kernel.exception.SystemException {
373         return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
374             start, end, obc);
375     }
376 
377     public int getGroupFileEntriesCount(long groupId)
378         throws com.liferay.portal.kernel.exception.SystemException {
379         return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
380     }
381 
382     public int getGroupFileEntriesCount(long groupId, long userId)
383         throws com.liferay.portal.kernel.exception.SystemException {
384         return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
385     }
386 
387     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
388         throws com.liferay.portal.kernel.exception.SystemException {
389         return _dlFileEntryLocalService.getNoAssetFileEntries();
390     }
391 
392     public void updateAsset(long userId,
393         com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
394         com.liferay.portlet.documentlibrary.model.DLFileVersion fileVersion,
395         long[] assetCategoryIds, java.lang.String[] assetTagNames)
396         throws com.liferay.portal.kernel.exception.PortalException,
397             com.liferay.portal.kernel.exception.SystemException {
398         _dlFileEntryLocalService.updateAsset(userId, fileEntry, fileVersion,
399             assetCategoryIds, assetTagNames);
400     }
401 
402     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
403         long userId, long groupId, long folderId, long newFolderId,
404         java.lang.String name, java.lang.String sourceFileName,
405         java.lang.String title, java.lang.String description,
406         java.lang.String versionDescription, boolean majorVersion,
407         java.lang.String extraSettings, byte[] bytes,
408         com.liferay.portal.service.ServiceContext serviceContext)
409         throws com.liferay.portal.kernel.exception.PortalException,
410             com.liferay.portal.kernel.exception.SystemException {
411         return _dlFileEntryLocalService.updateFileEntry(userId, groupId,
412             folderId, newFolderId, name, sourceFileName, title, description,
413             versionDescription, majorVersion, extraSettings, bytes,
414             serviceContext);
415     }
416 
417     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
418         long userId, long groupId, long folderId, long newFolderId,
419         java.lang.String name, java.lang.String sourceFileName,
420         java.lang.String title, java.lang.String description,
421         java.lang.String versionDescription, boolean majorVersion,
422         java.lang.String extraSettings, java.io.File file,
423         com.liferay.portal.service.ServiceContext serviceContext)
424         throws com.liferay.portal.kernel.exception.PortalException,
425             com.liferay.portal.kernel.exception.SystemException {
426         return _dlFileEntryLocalService.updateFileEntry(userId, groupId,
427             folderId, newFolderId, name, sourceFileName, title, description,
428             versionDescription, majorVersion, extraSettings, file,
429             serviceContext);
430     }
431 
432     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
433         long userId, long groupId, long folderId, long newFolderId,
434         java.lang.String name, java.lang.String sourceFileName,
435         java.lang.String title, java.lang.String description,
436         java.lang.String versionDescription, boolean majorVersion,
437         java.lang.String extraSettings, java.io.InputStream is, long size,
438         com.liferay.portal.service.ServiceContext serviceContext)
439         throws com.liferay.portal.kernel.exception.PortalException,
440             com.liferay.portal.kernel.exception.SystemException {
441         return _dlFileEntryLocalService.updateFileEntry(userId, groupId,
442             folderId, newFolderId, name, sourceFileName, title, description,
443             versionDescription, majorVersion, extraSettings, is, size,
444             serviceContext);
445     }
446 
447     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
448         long userId, long fileEntryId, int status,
449         com.liferay.portal.service.ServiceContext serviceContext)
450         throws com.liferay.portal.kernel.exception.PortalException,
451             com.liferay.portal.kernel.exception.SystemException {
452         return _dlFileEntryLocalService.updateStatus(userId, fileEntryId,
453             status, serviceContext);
454     }
455 
456     public DLFileEntryLocalService getWrappedDLFileEntryLocalService() {
457         return _dlFileEntryLocalService;
458     }
459 
460     private DLFileEntryLocalService _dlFileEntryLocalService;
461 }