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 folderId, java.lang.String name, java.lang.String title,
41          java.lang.String description, java.lang.String extraSettings,
42          byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException {
45          return _dlFileEntryService.addFileEntry(folderId, name, title,
46              description, extraSettings, bytes, serviceContext);
47      }
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
50          long folderId, java.lang.String name, java.lang.String title,
51          java.lang.String description, java.lang.String extraSettings,
52          java.io.File file,
53          com.liferay.portal.service.ServiceContext serviceContext)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          return _dlFileEntryService.addFileEntry(folderId, name, title,
57              description, extraSettings, file, serviceContext);
58      }
59  
60      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
61          long folderId, java.lang.String name, java.lang.String title,
62          java.lang.String description, java.lang.String versionDescription,
63          java.lang.String extraSettings, byte[] bytes,
64          com.liferay.portal.service.ServiceContext serviceContext)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException {
67          return _dlFileEntryService.addFileEntry(folderId, name, title,
68              description, versionDescription, extraSettings, bytes,
69              serviceContext);
70      }
71  
72      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
73          long folderId, java.lang.String name, java.lang.String title,
74          java.lang.String description, java.lang.String versionDescription,
75          java.lang.String extraSettings, java.io.File file,
76          com.liferay.portal.service.ServiceContext serviceContext)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return _dlFileEntryService.addFileEntry(folderId, name, title,
80              description, versionDescription, extraSettings, file, serviceContext);
81      }
82  
83      public void deleteFileEntry(long folderId, java.lang.String name)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          _dlFileEntryService.deleteFileEntry(folderId, name);
87      }
88  
89      public void deleteFileEntry(long folderId, java.lang.String name,
90          double version)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException {
93          _dlFileEntryService.deleteFileEntry(folderId, name, version);
94      }
95  
96      public void deleteFileEntryByTitle(long folderId,
97          java.lang.String titleWithExtension)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException {
100         _dlFileEntryService.deleteFileEntryByTitle(folderId, titleWithExtension);
101     }
102 
103     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
104         long folderId)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException {
107         return _dlFileEntryService.getFileEntries(folderId);
108     }
109 
110     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
111         long folderId, java.lang.String name)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         return _dlFileEntryService.getFileEntry(folderId, name);
115     }
116 
117     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
118         long folderId, java.lang.String titleWithExtension)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return _dlFileEntryService.getFileEntryByTitle(folderId,
122             titleWithExtension);
123     }
124 
125     public boolean hasFileEntryLock(long folderId, java.lang.String name)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return _dlFileEntryService.hasFileEntryLock(folderId, name);
129     }
130 
131     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
132         java.lang.String name)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return _dlFileEntryService.lockFileEntry(folderId, name);
136     }
137 
138     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
139         java.lang.String name, java.lang.String owner, long expirationTime)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         return _dlFileEntryService.lockFileEntry(folderId, name, owner,
143             expirationTime);
144     }
145 
146     public com.liferay.portal.model.Lock refreshFileEntryLock(
147         java.lang.String lockUuid, long expirationTime)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
151     }
152 
153     public void unlockFileEntry(long folderId, java.lang.String name)
154         throws com.liferay.portal.SystemException {
155         _dlFileEntryService.unlockFileEntry(folderId, name);
156     }
157 
158     public void unlockFileEntry(long folderId, java.lang.String name,
159         java.lang.String lockUuid)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         _dlFileEntryService.unlockFileEntry(folderId, name, lockUuid);
163     }
164 
165     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
166         long folderId, long newFolderId, java.lang.String name,
167         java.lang.String sourceFileName, java.lang.String title,
168         java.lang.String description, java.lang.String extraSettings,
169         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
173             sourceFileName, title, description, extraSettings, bytes,
174             serviceContext);
175     }
176 
177     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
178         long folderId, long newFolderId, java.lang.String name,
179         java.lang.String sourceFileName, java.lang.String title,
180         java.lang.String description, java.lang.String extraSettings,
181         java.io.File file,
182         com.liferay.portal.service.ServiceContext serviceContext)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
186             sourceFileName, title, description, extraSettings, file,
187             serviceContext);
188     }
189 
190     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
191         long folderId, long newFolderId, java.lang.String name,
192         java.lang.String sourceFileName, java.lang.String title,
193         java.lang.String description, java.lang.String versionDescription,
194         java.lang.String extraSettings, byte[] bytes,
195         com.liferay.portal.service.ServiceContext serviceContext)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
199             sourceFileName, title, description, versionDescription,
200             extraSettings, bytes, serviceContext);
201     }
202 
203     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
204         long folderId, long newFolderId, java.lang.String name,
205         java.lang.String sourceFileName, java.lang.String title,
206         java.lang.String description, java.lang.String versionDescription,
207         java.lang.String extraSettings, java.io.File file,
208         com.liferay.portal.service.ServiceContext serviceContext)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
212             sourceFileName, title, description, versionDescription,
213             extraSettings, file, serviceContext);
214     }
215 
216     public boolean verifyFileEntryLock(long folderId, java.lang.String name,
217         java.lang.String lockUuid)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException {
220         return _dlFileEntryService.verifyFileEntryLock(folderId, name, lockUuid);
221     }
222 
223     public DLFileEntryService getWrappedDLFileEntryService() {
224         return _dlFileEntryService;
225     }
226 
227     private DLFileEntryService _dlFileEntryService;
228 }