001    /**
002     * Copyright (c) 2000-2010 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    
018    /**
019     * <p>
020     * This class is a wrapper for {@link DLFileEntryService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       DLFileEntryService
025     * @generated
026     */
027    public class DLFileEntryServiceWrapper implements DLFileEntryService {
028            public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
029                    _dlFileEntryService = dlFileEntryService;
030            }
031    
032            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
033                    long groupId, long folderId, java.lang.String name,
034                    java.lang.String title, java.lang.String description,
035                    java.lang.String changeLog, java.lang.String extraSettings,
036                    byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
037                    throws com.liferay.portal.kernel.exception.PortalException,
038                            com.liferay.portal.kernel.exception.SystemException {
039                    return _dlFileEntryService.addFileEntry(groupId, folderId, name, title,
040                            description, changeLog, extraSettings, bytes, serviceContext);
041            }
042    
043            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
044                    long groupId, long folderId, java.lang.String name,
045                    java.lang.String title, java.lang.String description,
046                    java.lang.String changeLog, java.lang.String extraSettings,
047                    java.io.File file,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    return _dlFileEntryService.addFileEntry(groupId, folderId, name, title,
052                            description, changeLog, extraSettings, file, serviceContext);
053            }
054    
055            public void deleteFileEntry(long groupId, long folderId,
056                    java.lang.String name)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    _dlFileEntryService.deleteFileEntry(groupId, folderId, name);
060            }
061    
062            public void deleteFileEntry(long groupId, long folderId,
063                    java.lang.String name, java.lang.String version)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _dlFileEntryService.deleteFileEntry(groupId, folderId, name, version);
067            }
068    
069            public void deleteFileEntryByTitle(long groupId, long folderId,
070                    java.lang.String titleWithExtension)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    _dlFileEntryService.deleteFileEntryByTitle(groupId, folderId,
074                            titleWithExtension);
075            }
076    
077            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
078                    long groupId, long folderId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _dlFileEntryService.getFileEntries(groupId, folderId);
082            }
083    
084            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
085                    long groupId, long folderId, int start, int end)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return _dlFileEntryService.getFileEntries(groupId, folderId, start, end);
089            }
090    
091            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
092                    long groupId, long folderId, int start, int end,
093                    com.liferay.portal.kernel.util.OrderByComparator obc)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return _dlFileEntryService.getFileEntries(groupId, folderId, start,
097                            end, obc);
098            }
099    
100            public int getFileEntriesCount(long groupId, long folderId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
104            }
105    
106            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
107                    long groupId, long folderId, java.lang.String name)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    return _dlFileEntryService.getFileEntry(groupId, folderId, name);
111            }
112    
113            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
114                    long groupId, long folderId, java.lang.String titleWithExtension)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    return _dlFileEntryService.getFileEntryByTitle(groupId, folderId,
118                            titleWithExtension);
119            }
120    
121            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
122                    java.lang.String uuid, long groupId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
126            }
127    
128            public int getFoldersFileEntriesCount(long groupId,
129                    java.util.List<java.lang.Long> folderIds, int status)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
132                            folderIds, status);
133            }
134    
135            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
136                    long groupId, long userId, int start, int end)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _dlFileEntryService.getGroupFileEntries(groupId, userId, start,
139                            end);
140            }
141    
142            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
143                    long groupId, long userId, int start, int end,
144                    com.liferay.portal.kernel.util.OrderByComparator obc)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _dlFileEntryService.getGroupFileEntries(groupId, userId, start,
147                            end, obc);
148            }
149    
150            public int getGroupFileEntriesCount(long groupId, long userId)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId);
153            }
154    
155            public boolean hasFileEntryLock(long groupId, long folderId,
156                    java.lang.String name)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return _dlFileEntryService.hasFileEntryLock(groupId, folderId, name);
160            }
161    
162            public com.liferay.portal.model.Lock lockFileEntry(long groupId,
163                    long folderId, java.lang.String name)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _dlFileEntryService.lockFileEntry(groupId, folderId, name);
167            }
168    
169            public com.liferay.portal.model.Lock lockFileEntry(long groupId,
170                    long folderId, java.lang.String name, java.lang.String owner,
171                    long expirationTime)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _dlFileEntryService.lockFileEntry(groupId, folderId, name,
175                            owner, expirationTime);
176            }
177    
178            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
179                    long groupId, long folderId, long newFolderId, java.lang.String name,
180                    com.liferay.portal.service.ServiceContext serviceContext)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return _dlFileEntryService.moveFileEntry(groupId, folderId,
184                            newFolderId, name, serviceContext);
185            }
186    
187            public com.liferay.portal.model.Lock refreshFileEntryLock(
188                    java.lang.String lockUuid, long expirationTime)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException {
191                    return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
192            }
193    
194            public void unlockFileEntry(long groupId, long folderId,
195                    java.lang.String name)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    _dlFileEntryService.unlockFileEntry(groupId, folderId, name);
198            }
199    
200            public void unlockFileEntry(long groupId, long folderId,
201                    java.lang.String name, java.lang.String lockUuid)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    _dlFileEntryService.unlockFileEntry(groupId, folderId, name, lockUuid);
205            }
206    
207            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
208                    long groupId, long folderId, java.lang.String name,
209                    java.lang.String sourceFileName, java.lang.String title,
210                    java.lang.String description, java.lang.String changeLog,
211                    boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
212                    com.liferay.portal.service.ServiceContext serviceContext)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    return _dlFileEntryService.updateFileEntry(groupId, folderId, name,
216                            sourceFileName, title, description, changeLog, majorVersion,
217                            extraSettings, bytes, serviceContext);
218            }
219    
220            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
221                    long groupId, long folderId, java.lang.String name,
222                    java.lang.String sourceFileName, java.lang.String title,
223                    java.lang.String description, java.lang.String changeLog,
224                    boolean majorVersion, java.lang.String extraSettings,
225                    java.io.File file,
226                    com.liferay.portal.service.ServiceContext serviceContext)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    return _dlFileEntryService.updateFileEntry(groupId, folderId, name,
230                            sourceFileName, title, description, changeLog, majorVersion,
231                            extraSettings, file, serviceContext);
232            }
233    
234            public boolean verifyFileEntryLock(long groupId, long folderId,
235                    java.lang.String name, java.lang.String lockUuid)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _dlFileEntryService.verifyFileEntryLock(groupId, folderId, name,
239                            lockUuid);
240            }
241    
242            public DLFileEntryService getWrappedDLFileEntryService() {
243                    return _dlFileEntryService;
244            }
245    
246            private DLFileEntryService _dlFileEntryService;
247    }