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