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