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