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