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            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
035                    long groupId, long repositoryId, long folderId,
036                    java.lang.String sourceFileName, java.lang.String mimeType,
037                    java.lang.String title, java.lang.String description,
038                    java.lang.String changeLog, long fileEntryTypeId,
039                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
040                    java.io.File file, java.io.InputStream is, long size,
041                    com.liferay.portal.service.ServiceContext serviceContext)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return _dlFileEntryService.addFileEntry(groupId, repositoryId,
045                            folderId, sourceFileName, mimeType, title, description, changeLog,
046                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
047            }
048    
049            public void cancelCheckOut(long fileEntryId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    _dlFileEntryService.cancelCheckOut(fileEntryId);
053            }
054    
055            public void checkInFileEntry(long fileEntryId, boolean major,
056                    java.lang.String changeLog,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
061                            serviceContext);
062            }
063    
064            public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
068            }
069    
070            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
071                    long fileEntryId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _dlFileEntryService.checkOutFileEntry(fileEntryId);
075            }
076    
077            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
078                    long fileEntryId, java.lang.String owner, long expirationTime)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
082                            expirationTime);
083            }
084    
085            public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
086                    long groupId, long repositoryId, long fileEntryId, long destFolderId,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
091                            fileEntryId, destFolderId, serviceContext);
092            }
093    
094            public void deleteFileEntry(long fileEntryId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    _dlFileEntryService.deleteFileEntry(fileEntryId);
098            }
099    
100            public void deleteFileEntry(long groupId, long folderId,
101                    java.lang.String title)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
105            }
106    
107            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
108                    long imageId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return _dlFileEntryService.fetchFileEntryByImageId(imageId);
112            }
113    
114            public java.io.InputStream getFileAsStream(long fileEntryId,
115                    java.lang.String version)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return _dlFileEntryService.getFileAsStream(fileEntryId, version);
119            }
120    
121            public java.io.InputStream getFileAsStream(long fileEntryId,
122                    java.lang.String version, boolean incrementCounter)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _dlFileEntryService.getFileAsStream(fileEntryId, version,
126                            incrementCounter);
127            }
128    
129            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
130                    long groupId, long folderId, int start, int end,
131                    com.liferay.portal.kernel.util.OrderByComparator obc)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return _dlFileEntryService.getFileEntries(groupId, folderId, start,
134                            end, obc);
135            }
136    
137            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
138                    long groupId, long folderId, long fileEntryTypeId, int start, int end,
139                    com.liferay.portal.kernel.util.OrderByComparator obc)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return _dlFileEntryService.getFileEntries(groupId, folderId,
142                            fileEntryTypeId, start, end, obc);
143            }
144    
145            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
146                    long groupId, long folderId, java.lang.String[] mimeTypes, int start,
147                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _dlFileEntryService.getFileEntries(groupId, folderId, mimeTypes,
150                            start, end, obc);
151            }
152    
153            public int getFileEntriesCount(long groupId, long folderId)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
156            }
157    
158            public int getFileEntriesCount(long groupId, long folderId,
159                    long fileEntryTypeId)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
162                            fileEntryTypeId);
163            }
164    
165            public int getFileEntriesCount(long groupId, long folderId,
166                    java.lang.String[] mimeTypes)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
169                            mimeTypes);
170            }
171    
172            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
173                    long fileEntryId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _dlFileEntryService.getFileEntry(fileEntryId);
177            }
178    
179            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
180                    long groupId, long folderId, java.lang.String title)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return _dlFileEntryService.getFileEntry(groupId, folderId, title);
184            }
185    
186            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
187                    java.lang.String uuid, long groupId)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
191            }
192    
193            public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId) {
194                    return _dlFileEntryService.getFileEntryLock(fileEntryId);
195            }
196    
197            public int getFoldersFileEntriesCount(long groupId,
198                    java.util.List<java.lang.Long> folderIds, int status)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
201                            folderIds, status);
202            }
203    
204            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
205                    long groupId, long userId, long rootFolderId, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator obc)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
209                            rootFolderId, start, end, obc);
210            }
211    
212            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
213                    long groupId, long userId, long rootFolderId,
214                    java.lang.String[] mimeTypes, int status, int start, int end,
215                    com.liferay.portal.kernel.util.OrderByComparator obc)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
218                            rootFolderId, mimeTypes, status, start, end, obc);
219            }
220    
221            public int getGroupFileEntriesCount(long groupId, long userId,
222                    long rootFolderId)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
225                            rootFolderId);
226            }
227    
228            public int getGroupFileEntriesCount(long groupId, long userId,
229                    long rootFolderId, java.lang.String[] mimeTypes, int status)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
232                            rootFolderId, mimeTypes, status);
233            }
234    
235            public boolean hasFileEntryLock(long fileEntryId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _dlFileEntryService.hasFileEntryLock(fileEntryId);
239            }
240    
241            public boolean isFileEntryCheckedOut(long fileEntryId)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
245            }
246    
247            public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return _dlFileEntryService.lockFileEntry(fileEntryId);
251            }
252    
253            public com.liferay.portal.model.Lock lockFileEntry(long fileEntryId,
254                    java.lang.String owner, long expirationTime)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _dlFileEntryService.lockFileEntry(fileEntryId, owner,
258                            expirationTime);
259            }
260    
261            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
262                    long fileEntryId, long newFolderId,
263                    com.liferay.portal.service.ServiceContext serviceContext)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
267                            serviceContext);
268            }
269    
270            public com.liferay.portal.model.Lock refreshFileEntryLock(
271                    java.lang.String lockUuid, long expirationTime)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
275            }
276    
277            public void revertFileEntry(long fileEntryId, java.lang.String version,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
282            }
283    
284            public void unlockFileEntry(long fileEntryId)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _dlFileEntryService.unlockFileEntry(fileEntryId);
288            }
289    
290            public void unlockFileEntry(long fileEntryId, java.lang.String lockUuid)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _dlFileEntryService.unlockFileEntry(fileEntryId, lockUuid);
294            }
295    
296            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
297                    long fileEntryId, java.lang.String sourceFileName,
298                    java.lang.String mimeType, java.lang.String title,
299                    java.lang.String description, java.lang.String changeLog,
300                    boolean majorVersion, long fileEntryTypeId,
301                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
302                    java.io.File file, java.io.InputStream is, long size,
303                    com.liferay.portal.service.ServiceContext serviceContext)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
307                            mimeType, title, description, changeLog, majorVersion,
308                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
309            }
310    
311            public boolean verifyFileEntryCheckOut(long fileEntryId,
312                    java.lang.String lockUuid)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
316            }
317    
318            public boolean verifyFileEntryLock(long fileEntryId,
319                    java.lang.String lockUuid)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
323            }
324    
325            /**
326             * @deprecated Renamed to {@link #getWrappedService}
327             */
328            public DLFileEntryService getWrappedDLFileEntryService() {
329                    return _dlFileEntryService;
330            }
331    
332            /**
333             * @deprecated Renamed to {@link #setWrappedService}
334             */
335            public void setWrappedDLFileEntryService(
336                    DLFileEntryService dlFileEntryService) {
337                    _dlFileEntryService = dlFileEntryService;
338            }
339    
340            public DLFileEntryService getWrappedService() {
341                    return _dlFileEntryService;
342            }
343    
344            public void setWrappedService(DLFileEntryService dlFileEntryService) {
345                    _dlFileEntryService = dlFileEntryService;
346            }
347    
348            private DLFileEntryService _dlFileEntryService;
349    }