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