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