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 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
93          long groupId, long folderId, java.lang.String name)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return _dlFileEntryService.getFileEntry(groupId, folderId, name);
97      }
98  
99      public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
100         long groupId, long folderId, java.lang.String titleWithExtension)
101         throws com.liferay.portal.kernel.exception.PortalException,
102             com.liferay.portal.kernel.exception.SystemException {
103         return _dlFileEntryService.getFileEntryByTitle(groupId, folderId,
104             titleWithExtension);
105     }
106 
107     public boolean hasFileEntryLock(long groupId, long folderId,
108         java.lang.String name)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return _dlFileEntryService.hasFileEntryLock(groupId, folderId, name);
112     }
113 
114     public com.liferay.portal.model.Lock lockFileEntry(long groupId,
115         long folderId, java.lang.String name)
116         throws com.liferay.portal.kernel.exception.PortalException,
117             com.liferay.portal.kernel.exception.SystemException {
118         return _dlFileEntryService.lockFileEntry(groupId, folderId, name);
119     }
120 
121     public com.liferay.portal.model.Lock lockFileEntry(long groupId,
122         long folderId, java.lang.String name, java.lang.String owner,
123         long expirationTime)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return _dlFileEntryService.lockFileEntry(groupId, folderId, name,
127             owner, expirationTime);
128     }
129 
130     public com.liferay.portal.model.Lock refreshFileEntryLock(
131         java.lang.String lockUuid, long expirationTime)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
135     }
136 
137     public void unlockFileEntry(long groupId, long folderId,
138         java.lang.String name)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         _dlFileEntryService.unlockFileEntry(groupId, folderId, name);
141     }
142 
143     public void unlockFileEntry(long groupId, long folderId,
144         java.lang.String name, java.lang.String lockUuid)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         _dlFileEntryService.unlockFileEntry(groupId, folderId, name, lockUuid);
148     }
149 
150     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
151         long groupId, 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 versionDescription,
154         boolean majorVersion, java.lang.String extraSettings, byte[] bytes,
155         com.liferay.portal.service.ServiceContext serviceContext)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return _dlFileEntryService.updateFileEntry(groupId, folderId,
159             newFolderId, name, sourceFileName, title, description,
160             versionDescription, majorVersion, extraSettings, bytes,
161             serviceContext);
162     }
163 
164     public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
165         long groupId, long folderId, long newFolderId, java.lang.String name,
166         java.lang.String sourceFileName, java.lang.String title,
167         java.lang.String description, java.lang.String versionDescription,
168         boolean majorVersion, java.lang.String extraSettings,
169         java.io.File file,
170         com.liferay.portal.service.ServiceContext serviceContext)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return _dlFileEntryService.updateFileEntry(groupId, folderId,
174             newFolderId, name, sourceFileName, title, description,
175             versionDescription, majorVersion, extraSettings, file,
176             serviceContext);
177     }
178 
179     public boolean verifyFileEntryLock(long groupId, long folderId,
180         java.lang.String name, java.lang.String lockUuid)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         return _dlFileEntryService.verifyFileEntryLock(groupId, folderId, name,
184             lockUuid);
185     }
186 
187     public DLFileEntryService getWrappedDLFileEntryService() {
188         return _dlFileEntryService;
189     }
190 
191     private DLFileEntryService _dlFileEntryService;
192 }