001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLFileEntryService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLFileEntryService
026     * @generated
027     */
028    public class DLFileEntryServiceWrapper implements DLFileEntryService,
029            ServiceWrapper<DLFileEntryService> {
030            public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
031                    _dlFileEntryService = dlFileEntryService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            public java.lang.String getBeanIdentifier() {
040                    return _dlFileEntryService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _dlFileEntryService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
053                    long groupId, long repositoryId, long folderId,
054                    java.lang.String sourceFileName, java.lang.String mimeType,
055                    java.lang.String title, java.lang.String description,
056                    java.lang.String changeLog, long fileEntryTypeId,
057                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
058                    java.io.File file, java.io.InputStream is, long size,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return _dlFileEntryService.addFileEntry(groupId, repositoryId,
063                            folderId, sourceFileName, mimeType, title, description, changeLog,
064                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
065            }
066    
067            public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
068                    long fileEntryId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _dlFileEntryService.cancelCheckOut(fileEntryId);
072            }
073    
074            public void checkInFileEntry(long fileEntryId, boolean major,
075                    java.lang.String changeLog,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
080                            serviceContext);
081            }
082    
083            /**
084            * @deprecated {@link #checkInFileEntry(long, String, ServiceContext)}
085            */
086            public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
090            }
091    
092            public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid,
093                    com.liferay.portal.service.ServiceContext serviceContext)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid,
097                            serviceContext);
098            }
099    
100            /**
101            * @deprecated {@link #checkOutFileEntry(long, ServiceContext)}
102            */
103            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
104                    long fileEntryId)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    return _dlFileEntryService.checkOutFileEntry(fileEntryId);
108            }
109    
110            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
111                    long fileEntryId,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, serviceContext);
116            }
117    
118            /**
119            * @deprecated {@link #checkOutFileEntry(long, String, long,
120            ServiceContext)}
121            */
122            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
123                    long fileEntryId, java.lang.String owner, long expirationTime)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
127                            expirationTime);
128            }
129    
130            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
131                    long fileEntryId, java.lang.String owner, long expirationTime,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
136                            expirationTime, serviceContext);
137            }
138    
139            public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
140                    long groupId, long repositoryId, long fileEntryId, long destFolderId,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
145                            fileEntryId, destFolderId, serviceContext);
146            }
147    
148            public void deleteFileEntry(long fileEntryId)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    _dlFileEntryService.deleteFileEntry(fileEntryId);
152            }
153    
154            public void deleteFileEntry(long groupId, long folderId,
155                    java.lang.String title)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
159            }
160    
161            public void deleteFileVersion(long fileEntryId, java.lang.String version)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    _dlFileEntryService.deleteFileVersion(fileEntryId, version);
165            }
166    
167            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
168                    long imageId)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _dlFileEntryService.fetchFileEntryByImageId(imageId);
172            }
173    
174            public java.io.InputStream getFileAsStream(long fileEntryId,
175                    java.lang.String version)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return _dlFileEntryService.getFileAsStream(fileEntryId, version);
179            }
180    
181            public java.io.InputStream getFileAsStream(long fileEntryId,
182                    java.lang.String version, boolean incrementCounter)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return _dlFileEntryService.getFileAsStream(fileEntryId, version,
186                            incrementCounter);
187            }
188    
189            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
190                    long groupId, long folderId, int status, int start, int end,
191                    com.liferay.portal.kernel.util.OrderByComparator obc)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    return _dlFileEntryService.getFileEntries(groupId, folderId, status,
195                            start, end, obc);
196            }
197    
198            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
199                    long groupId, long folderId, int start, int end,
200                    com.liferay.portal.kernel.util.OrderByComparator obc)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _dlFileEntryService.getFileEntries(groupId, folderId, start,
204                            end, obc);
205            }
206    
207            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
208                    long groupId, long folderId, long fileEntryTypeId, int start, int end,
209                    com.liferay.portal.kernel.util.OrderByComparator obc)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return _dlFileEntryService.getFileEntries(groupId, folderId,
213                            fileEntryTypeId, start, end, obc);
214            }
215    
216            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
217                    long groupId, long folderId, java.lang.String[] mimeTypes, int start,
218                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return _dlFileEntryService.getFileEntries(groupId, folderId, mimeTypes,
222                            start, end, obc);
223            }
224    
225            public int getFileEntriesCount(long groupId, long folderId)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
228            }
229    
230            public int getFileEntriesCount(long groupId, long folderId, int status)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId, status);
233            }
234    
235            public int getFileEntriesCount(long groupId, long folderId,
236                    long fileEntryTypeId)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
239                            fileEntryTypeId);
240            }
241    
242            public int getFileEntriesCount(long groupId, long folderId,
243                    java.lang.String[] mimeTypes)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
246                            mimeTypes);
247            }
248    
249            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
250                    long fileEntryId)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    return _dlFileEntryService.getFileEntry(fileEntryId);
254            }
255    
256            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
257                    long groupId, long folderId, java.lang.String title)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _dlFileEntryService.getFileEntry(groupId, folderId, title);
261            }
262    
263            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
264                    java.lang.String uuid, long groupId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
268            }
269    
270            public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId) {
271                    return _dlFileEntryService.getFileEntryLock(fileEntryId);
272            }
273    
274            public int getFoldersFileEntriesCount(long groupId,
275                    java.util.List<java.lang.Long> folderIds, int status)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
278                            folderIds, status);
279            }
280    
281            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
282                    long groupId, long userId, long rootFolderId, int start, int end,
283                    com.liferay.portal.kernel.util.OrderByComparator obc)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
287                            rootFolderId, start, end, obc);
288            }
289    
290            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
291                    long groupId, long userId, long rootFolderId,
292                    java.lang.String[] mimeTypes, int status, int start, int end,
293                    com.liferay.portal.kernel.util.OrderByComparator obc)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
297                            rootFolderId, mimeTypes, status, start, end, obc);
298            }
299    
300            public int getGroupFileEntriesCount(long groupId, long userId,
301                    long rootFolderId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
305                            rootFolderId);
306            }
307    
308            public int getGroupFileEntriesCount(long groupId, long userId,
309                    long rootFolderId, java.lang.String[] mimeTypes, int status)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
313                            rootFolderId, mimeTypes, status);
314            }
315    
316            public boolean hasFileEntryLock(long fileEntryId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _dlFileEntryService.hasFileEntryLock(fileEntryId);
320            }
321    
322            public boolean isFileEntryCheckedOut(long fileEntryId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
326            }
327    
328            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
329                    long fileEntryId, long newFolderId,
330                    com.liferay.portal.service.ServiceContext serviceContext)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
334                            serviceContext);
335            }
336    
337            public com.liferay.portal.model.Lock refreshFileEntryLock(
338                    java.lang.String lockUuid, long companyId, long expirationTime)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _dlFileEntryService.refreshFileEntryLock(lockUuid, companyId,
342                            expirationTime);
343            }
344    
345            public void revertFileEntry(long fileEntryId, java.lang.String version,
346                    com.liferay.portal.service.ServiceContext serviceContext)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
350            }
351    
352            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
353                    long fileEntryId, java.lang.String sourceFileName,
354                    java.lang.String mimeType, java.lang.String title,
355                    java.lang.String description, java.lang.String changeLog,
356                    boolean majorVersion, long fileEntryTypeId,
357                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
358                    java.io.File file, java.io.InputStream is, long size,
359                    com.liferay.portal.service.ServiceContext serviceContext)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
363                            mimeType, title, description, changeLog, majorVersion,
364                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
365            }
366    
367            public boolean verifyFileEntryCheckOut(long fileEntryId,
368                    java.lang.String lockUuid)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
372            }
373    
374            public boolean verifyFileEntryLock(long fileEntryId,
375                    java.lang.String lockUuid)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
379            }
380    
381            /**
382             * @deprecated Renamed to {@link #getWrappedService}
383             */
384            public DLFileEntryService getWrappedDLFileEntryService() {
385                    return _dlFileEntryService;
386            }
387    
388            /**
389             * @deprecated Renamed to {@link #setWrappedService}
390             */
391            public void setWrappedDLFileEntryService(
392                    DLFileEntryService dlFileEntryService) {
393                    _dlFileEntryService = dlFileEntryService;
394            }
395    
396            public DLFileEntryService getWrappedService() {
397                    return _dlFileEntryService;
398            }
399    
400            public void setWrappedService(DLFileEntryService dlFileEntryService) {
401                    _dlFileEntryService = dlFileEntryService;
402            }
403    
404            private DLFileEntryService _dlFileEntryService;
405    }