1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.documentlibrary.service;
24  
25  
26  /**
27   * <a href="DLFileEntryServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link DLFileEntryService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       DLFileEntryService
40   * @generated
41   */
42  public class DLFileEntryServiceWrapper implements DLFileEntryService {
43      public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
44          _dlFileEntryService = dlFileEntryService;
45      }
46  
47      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
48          long folderId, java.lang.String name, java.lang.String title,
49          java.lang.String description, java.lang.String extraSettings,
50          byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          return _dlFileEntryService.addFileEntry(folderId, name, title,
54              description, extraSettings, bytes, serviceContext);
55      }
56  
57      public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
58          long folderId, java.lang.String name, java.lang.String title,
59          java.lang.String description, java.lang.String extraSettings,
60          java.io.File file,
61          com.liferay.portal.service.ServiceContext serviceContext)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException {
64          return _dlFileEntryService.addFileEntry(folderId, name, title,
65              description, extraSettings, file, serviceContext);
66      }
67  
68      public void deleteFileEntry(long folderId, java.lang.String name)
69          throws com.liferay.portal.PortalException,
70              com.liferay.portal.SystemException {
71          _dlFileEntryService.deleteFileEntry(folderId, name);
72      }
73  
74      public void deleteFileEntry(long folderId, java.lang.String name,
75          double version)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException {
78          _dlFileEntryService.deleteFileEntry(folderId, name, version);
79      }
80  
81      public void deleteFileEntryByTitle(long folderId,
82          java.lang.String titleWithExtension)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException {
85          _dlFileEntryService.deleteFileEntryByTitle(folderId, titleWithExtension);
86      }
87  
88      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
89          long folderId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          return _dlFileEntryService.getFileEntries(folderId);
93      }
94  
95      public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
96          long folderId, java.lang.String name)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return _dlFileEntryService.getFileEntry(folderId, name);
100     }
101 
102     public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
103         long folderId, java.lang.String titleWithExtension)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return _dlFileEntryService.getFileEntryByTitle(folderId,
107             titleWithExtension);
108     }
109 
110     public boolean hasFileEntryLock(long folderId, java.lang.String name)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _dlFileEntryService.hasFileEntryLock(folderId, name);
114     }
115 
116     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
117         java.lang.String name)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return _dlFileEntryService.lockFileEntry(folderId, name);
121     }
122 
123     public com.liferay.portal.model.Lock lockFileEntry(long folderId,
124         java.lang.String name, java.lang.String owner, long expirationTime)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return _dlFileEntryService.lockFileEntry(folderId, name, owner,
128             expirationTime);
129     }
130 
131     public com.liferay.portal.model.Lock refreshFileEntryLock(
132         java.lang.String lockUuid, long expirationTime)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
136     }
137 
138     public void unlockFileEntry(long folderId, java.lang.String name)
139         throws com.liferay.portal.SystemException {
140         _dlFileEntryService.unlockFileEntry(folderId, name);
141     }
142 
143     public void unlockFileEntry(long folderId, java.lang.String name,
144         java.lang.String lockUuid)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         _dlFileEntryService.unlockFileEntry(folderId, name, lockUuid);
148     }
149 
150     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
151         long folderId, long newFolderId, java.lang.String name,
152         java.lang.String sourceFileName, java.lang.String title,
153         java.lang.String description, java.lang.String extraSettings,
154         byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
158             sourceFileName, title, description, extraSettings, bytes,
159             serviceContext);
160     }
161 
162     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
163         long folderId, long newFolderId, java.lang.String name,
164         java.lang.String sourceFileName, java.lang.String title,
165         java.lang.String description, java.lang.String extraSettings,
166         java.io.File file,
167         com.liferay.portal.service.ServiceContext serviceContext)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
171             sourceFileName, title, description, extraSettings, file,
172             serviceContext);
173     }
174 
175     public boolean verifyFileEntryLock(long folderId, java.lang.String name,
176         java.lang.String lockUuid)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException {
179         return _dlFileEntryService.verifyFileEntryLock(folderId, name, lockUuid);
180     }
181 
182     public DLFileEntryService getWrappedDLFileEntryService() {
183         return _dlFileEntryService;
184     }
185 
186     private DLFileEntryService _dlFileEntryService;
187 }