1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.documentlibrary.service;
16  
17  
18  /**
19   * <a href="DLFileEntryServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link DLFileEntryService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       DLFileEntryService
32   * @generated
33   */
34  public class DLFileEntryServiceWrapper implements DLFileEntryService {
35      public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
36          _dlFileEntryService = dlFileEntryService;
37      }
38  
39      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
40          long groupId, long folderId, java.lang.String name,
41          java.lang.String title, java.lang.String description,
42          java.lang.String versionDescription, java.lang.String extraSettings,
43          byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
44          throws com.liferay.portal.kernel.exception.PortalException,
45              com.liferay.portal.kernel.exception.SystemException {
46          return _dlFileEntryService.addFileEntry(groupId, folderId, name, title,
47              description, versionDescription, extraSettings, bytes,
48              serviceContext);
49      }
50  
51      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
52          long groupId, long folderId, java.lang.String name,
53          java.lang.String title, java.lang.String description,
54          java.lang.String versionDescription, java.lang.String extraSettings,
55          java.io.File file,
56          com.liferay.portal.service.ServiceContext serviceContext)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException {
59          return _dlFileEntryService.addFileEntry(groupId, folderId, name, title,
60              description, versionDescription, extraSettings, file, serviceContext);
61      }
62  
63      public void deleteFileEntry(long groupId, long folderId,
64          java.lang.String name)
65          throws com.liferay.portal.kernel.exception.PortalException,
66              com.liferay.portal.kernel.exception.SystemException {
67          _dlFileEntryService.deleteFileEntry(groupId, folderId, name);
68      }
69  
70      public void deleteFileEntry(long groupId, long folderId,
71          java.lang.String name, java.lang.String version)
72          throws com.liferay.portal.kernel.exception.PortalException,
73              com.liferay.portal.kernel.exception.SystemException {
74          _dlFileEntryService.deleteFileEntry(groupId, folderId, name, version);
75      }
76  
77      public void deleteFileEntryByTitle(long groupId, long folderId,
78          java.lang.String titleWithExtension)
79          throws com.liferay.portal.kernel.exception.PortalException,
80              com.liferay.portal.kernel.exception.SystemException {
81          _dlFileEntryService.deleteFileEntryByTitle(groupId, folderId,
82              titleWithExtension);
83      }
84  
85      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
86          long groupId, long folderId)
87          throws com.liferay.portal.kernel.exception.PortalException,
88              com.liferay.portal.kernel.exception.SystemException {
89          return _dlFileEntryService.getFileEntries(groupId, folderId);
90      }
91  
92      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
93          long groupId, long folderId, int start, int end)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return _dlFileEntryService.getFileEntries(groupId, folderId, start, end);
97      }
98  
99      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
100         long groupId, long folderId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return _dlFileEntryService.getFileEntries(groupId, folderId, start,
105             end, obc);
106     }
107 
108     public int getFileEntriesCount(long groupId, long folderId)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
112     }
113 
114     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
115         long groupId, long folderId, java.lang.String name)
116         throws com.liferay.portal.kernel.exception.PortalException,
117             com.liferay.portal.kernel.exception.SystemException {
118         return _dlFileEntryService.getFileEntry(groupId, folderId, name);
119     }
120 
121     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
122         long groupId, long folderId, java.lang.String titleWithExtension)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return _dlFileEntryService.getFileEntryByTitle(groupId, folderId,
126             titleWithExtension);
127     }
128 
129     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
130         java.lang.String uuid, long groupId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
134     }
135 
136     public int getFoldersFileEntriesCount(long groupId,
137         java.util.List<java.lang.Long> folderIds, int status)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
140             folderIds, status);
141     }
142 
143     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
144         long groupId, long userId, int start, int end)
145         throws com.liferay.portal.kernel.exception.SystemException {
146         return _dlFileEntryService.getGroupFileEntries(groupId, userId, start,
147             end);
148     }
149 
150     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
151         long groupId, long userId, int start, int end,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.kernel.exception.SystemException {
154         return _dlFileEntryService.getGroupFileEntries(groupId, userId, start,
155             end, obc);
156     }
157 
158     public int getGroupFileEntriesCount(long groupId, long userId)
159         throws com.liferay.portal.kernel.exception.SystemException {
160         return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId);
161     }
162 
163     public boolean hasFileEntryLock(long groupId, long folderId,
164         java.lang.String name)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return _dlFileEntryService.hasFileEntryLock(groupId, folderId, name);
168     }
169 
170     public com.liferay.portal.model.Lock lockFileEntry(long groupId,
171         long folderId, java.lang.String name)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException {
174         return _dlFileEntryService.lockFileEntry(groupId, folderId, name);
175     }
176 
177     public com.liferay.portal.model.Lock lockFileEntry(long groupId,
178         long folderId, java.lang.String name, java.lang.String owner,
179         long expirationTime)
180         throws com.liferay.portal.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException {
182         return _dlFileEntryService.lockFileEntry(groupId, folderId, name,
183             owner, expirationTime);
184     }
185 
186     public com.liferay.portal.model.Lock refreshFileEntryLock(
187         java.lang.String lockUuid, long expirationTime)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException {
190         return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
191     }
192 
193     public void unlockFileEntry(long groupId, long folderId,
194         java.lang.String name)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         _dlFileEntryService.unlockFileEntry(groupId, folderId, name);
197     }
198 
199     public void unlockFileEntry(long groupId, long folderId,
200         java.lang.String name, java.lang.String lockUuid)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException {
203         _dlFileEntryService.unlockFileEntry(groupId, folderId, name, lockUuid);
204     }
205 
206     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
207         long groupId, long folderId, long newFolderId, java.lang.String name,
208         java.lang.String sourceFileName, java.lang.String title,
209         java.lang.String description, java.lang.String versionDescription,
210         boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
211         com.liferay.portal.service.ServiceContext serviceContext)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException {
214         return _dlFileEntryService.updateFileEntry(groupId, folderId,
215             newFolderId, name, sourceFileName, title, description,
216             versionDescription, majorVersion, extraSettings, bytes,
217             serviceContext);
218     }
219 
220     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
221         long groupId, long folderId, long newFolderId, java.lang.String name,
222         java.lang.String sourceFileName, java.lang.String title,
223         java.lang.String description, java.lang.String versionDescription,
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,
230             newFolderId, name, sourceFileName, title, description,
231             versionDescription, majorVersion, extraSettings, file,
232             serviceContext);
233     }
234 
235     public boolean verifyFileEntryLock(long groupId, long folderId,
236         java.lang.String name, java.lang.String lockUuid)
237         throws com.liferay.portal.kernel.exception.PortalException,
238             com.liferay.portal.kernel.exception.SystemException {
239         return _dlFileEntryService.verifyFileEntryLock(groupId, folderId, name,
240             lockUuid);
241     }
242 
243     public DLFileEntryService getWrappedDLFileEntryService() {
244         return _dlFileEntryService;
245     }
246 
247     private DLFileEntryService _dlFileEntryService;
248 }