001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link DLFileEntryLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       DLFileEntryLocalService
025     * @generated
026     */
027    public class DLFileEntryLocalServiceWrapper implements DLFileEntryLocalService {
028            public DLFileEntryLocalServiceWrapper(
029                    DLFileEntryLocalService dlFileEntryLocalService) {
030                    _dlFileEntryLocalService = dlFileEntryLocalService;
031            }
032    
033            public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
034                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _dlFileEntryLocalService.addDLFileEntry(dlFileEntry);
037            }
038    
039            public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
040                    long fileEntryId) {
041                    return _dlFileEntryLocalService.createDLFileEntry(fileEntryId);
042            }
043    
044            public void deleteDLFileEntry(long fileEntryId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _dlFileEntryLocalService.deleteDLFileEntry(fileEntryId);
048            }
049    
050            public void deleteDLFileEntry(
051                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _dlFileEntryLocalService.deleteDLFileEntry(dlFileEntry);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end,
077                            orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
087                    long fileEntryId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _dlFileEntryLocalService.getDLFileEntry(fileEntryId);
091            }
092    
093            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid,
098                            groupId);
099            }
100    
101            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
102                    int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _dlFileEntryLocalService.getDLFileEntries(start, end);
105            }
106    
107            public int getDLFileEntriesCount()
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _dlFileEntryLocalService.getDLFileEntriesCount();
110            }
111    
112            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
113                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
116            }
117    
118            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
119                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
120                    boolean merge)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry, merge);
123            }
124    
125            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
126                    long userId, long groupId, long folderId, java.lang.String name,
127                    java.lang.String title, java.lang.String description,
128                    java.lang.String changeLog, java.lang.String extraSettings,
129                    byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    return _dlFileEntryLocalService.addFileEntry(userId, groupId, folderId,
133                            name, title, description, changeLog, extraSettings, bytes,
134                            serviceContext);
135            }
136    
137            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
138                    long userId, long groupId, long folderId, java.lang.String name,
139                    java.lang.String title, java.lang.String description,
140                    java.lang.String changeLog, java.lang.String extraSettings,
141                    java.io.File file,
142                    com.liferay.portal.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return _dlFileEntryLocalService.addFileEntry(userId, groupId, folderId,
146                            name, title, description, changeLog, extraSettings, file,
147                            serviceContext);
148            }
149    
150            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
151                    long userId, long groupId, long folderId, java.lang.String name,
152                    java.lang.String title, java.lang.String description,
153                    java.lang.String changeLog, java.lang.String extraSettings,
154                    java.io.InputStream is, long size,
155                    com.liferay.portal.service.ServiceContext serviceContext)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return _dlFileEntryLocalService.addFileEntry(userId, groupId, folderId,
159                            name, title, description, changeLog, extraSettings, is, size,
160                            serviceContext);
161            }
162    
163            public void addFileEntryResources(
164                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
165                    boolean addCommunityPermissions, boolean addGuestPermissions)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    _dlFileEntryLocalService.addFileEntryResources(fileEntry,
169                            addCommunityPermissions, addGuestPermissions);
170            }
171    
172            public void addFileEntryResources(
173                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
174                    java.lang.String[] communityPermissions,
175                    java.lang.String[] guestPermissions)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    _dlFileEntryLocalService.addFileEntryResources(fileEntry,
179                            communityPermissions, guestPermissions);
180            }
181    
182            public void addFileEntryResources(long fileEntryId,
183                    boolean addCommunityPermissions, boolean addGuestPermissions)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
187                            addCommunityPermissions, addGuestPermissions);
188            }
189    
190            public void addFileEntryResources(long fileEntryId,
191                    java.lang.String[] communityPermissions,
192                    java.lang.String[] guestPermissions)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    _dlFileEntryLocalService.addFileEntryResources(fileEntryId,
196                            communityPermissions, guestPermissions);
197            }
198    
199            public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
200                    long userId, long groupId, long folderId, java.lang.String name,
201                    java.lang.String sourceName, java.lang.String title,
202                    java.lang.String description, java.lang.String changeLog,
203                    java.lang.String extraSettings, java.io.File file,
204                    com.liferay.portal.service.ServiceContext serviceContext)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return _dlFileEntryLocalService.addOrOverwriteFileEntry(userId,
208                            groupId, folderId, name, sourceName, title, description, changeLog,
209                            extraSettings, file, serviceContext);
210            }
211    
212            public void deleteFileEntries(long groupId, long folderId)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    _dlFileEntryLocalService.deleteFileEntries(groupId, folderId);
216            }
217    
218            public void deleteFileEntry(
219                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    _dlFileEntryLocalService.deleteFileEntry(fileEntry);
223            }
224    
225            public void deleteFileEntry(long groupId, long folderId,
226                    java.lang.String name)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    _dlFileEntryLocalService.deleteFileEntry(groupId, folderId, name);
230            }
231    
232            public void deleteFileEntry(long groupId, long folderId,
233                    java.lang.String name, java.lang.String version)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    _dlFileEntryLocalService.deleteFileEntry(groupId, folderId, name,
237                            version);
238            }
239    
240            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
241                    long companyId, int start, int end)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
244                            end);
245            }
246    
247            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
248                    long companyId, int start, int end,
249                    com.liferay.portal.kernel.util.OrderByComparator obc)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return _dlFileEntryLocalService.getCompanyFileEntries(companyId, start,
252                            end, obc);
253            }
254    
255            public int getCompanyFileEntriesCount(long companyId)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return _dlFileEntryLocalService.getCompanyFileEntriesCount(companyId);
258            }
259    
260            public java.io.InputStream getFileAsStream(long companyId, long userId,
261                    long groupId, long folderId, java.lang.String name)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
265                            groupId, folderId, name);
266            }
267    
268            public java.io.InputStream getFileAsStream(long companyId, long userId,
269                    long groupId, long folderId, java.lang.String name,
270                    java.lang.String version)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _dlFileEntryLocalService.getFileAsStream(companyId, userId,
274                            groupId, folderId, name, version);
275            }
276    
277            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
278                    long groupId, long folderId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId);
281            }
282    
283            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
284                    long groupId, long folderId, int start, int end)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
287                            start, end);
288            }
289    
290            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
291                    long groupId, long folderId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator obc)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
295                            start, end, obc);
296            }
297    
298            public int getFileEntriesCount(long groupId, long folderId)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId);
301            }
302    
303            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
304                    long fileEntryId)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _dlFileEntryLocalService.getFileEntry(fileEntryId);
308            }
309    
310            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
311                    long groupId, long folderId, java.lang.String name)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _dlFileEntryLocalService.getFileEntry(groupId, folderId, name);
315            }
316    
317            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
318                    long groupId, long folderId, java.lang.String title)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _dlFileEntryLocalService.getFileEntryByTitle(groupId, folderId,
322                            title);
323            }
324    
325            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
326                    java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
330                            groupId);
331            }
332    
333            public int getFoldersFileEntriesCount(long groupId,
334                    java.util.List<java.lang.Long> folderIds, int status)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _dlFileEntryLocalService.getFoldersFileEntriesCount(groupId,
337                            folderIds, status);
338            }
339    
340            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
341                    long groupId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start, end);
344            }
345    
346            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
347                    long groupId, int start, int end,
348                    com.liferay.portal.kernel.util.OrderByComparator obc)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start,
351                            end, obc);
352            }
353    
354            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
355                    long groupId, long userId, int start, int end)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
358                            start, end);
359            }
360    
361            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
362                    long groupId, long userId, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator obc)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
366                            start, end, obc);
367            }
368    
369            public int getGroupFileEntriesCount(long groupId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
372            }
373    
374            public int getGroupFileEntriesCount(long groupId, long userId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
377            }
378    
379            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _dlFileEntryLocalService.getNoAssetFileEntries();
382            }
383    
384            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
385                    long userId, long groupId, long folderId, long newFolderId,
386                    java.lang.String name,
387                    com.liferay.portal.service.ServiceContext serviceContext)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _dlFileEntryLocalService.moveFileEntry(userId, groupId,
391                            folderId, newFolderId, name, serviceContext);
392            }
393    
394            public void updateAsset(long userId,
395                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
396                    com.liferay.portlet.documentlibrary.model.DLFileVersion fileVersion,
397                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    _dlFileEntryLocalService.updateAsset(userId, fileEntry, fileVersion,
401                            assetCategoryIds, assetTagNames);
402            }
403    
404            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
405                    long userId, long groupId, long folderId, java.lang.String name,
406                    java.lang.String sourceFileName, java.lang.String title,
407                    java.lang.String description, java.lang.String changeLog,
408                    boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
409                    com.liferay.portal.service.ServiceContext serviceContext)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return _dlFileEntryLocalService.updateFileEntry(userId, groupId,
413                            folderId, name, sourceFileName, title, description, changeLog,
414                            majorVersion, extraSettings, bytes, serviceContext);
415            }
416    
417            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
418                    long userId, long groupId, long folderId, java.lang.String name,
419                    java.lang.String sourceFileName, java.lang.String title,
420                    java.lang.String description, java.lang.String changeLog,
421                    boolean majorVersion, java.lang.String extraSettings,
422                    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, name, sourceFileName, title, description, changeLog,
428                            majorVersion, extraSettings, file, serviceContext);
429            }
430    
431            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
432                    long userId, long groupId, long folderId, java.lang.String name,
433                    java.lang.String sourceFileName, java.lang.String title,
434                    java.lang.String description, java.lang.String changeLog,
435                    boolean majorVersion, java.lang.String extraSettings,
436                    java.io.InputStream is, long size,
437                    com.liferay.portal.service.ServiceContext serviceContext)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException {
440                    return _dlFileEntryLocalService.updateFileEntry(userId, groupId,
441                            folderId, name, sourceFileName, title, description, changeLog,
442                            majorVersion, extraSettings, is, size, serviceContext);
443            }
444    
445            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
446                    long userId, long fileEntryId, int status,
447                    com.liferay.portal.service.ServiceContext serviceContext)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    return _dlFileEntryLocalService.updateStatus(userId, fileEntryId,
451                            status, serviceContext);
452            }
453    
454            public DLFileEntryLocalService getWrappedDLFileEntryLocalService() {
455                    return _dlFileEntryLocalService;
456            }
457    
458            private DLFileEntryLocalService _dlFileEntryLocalService;
459    }