001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.service.ServiceWrapper;
020
021
028 @ProviderType
029 public class DLFileEntryServiceWrapper implements DLFileEntryService,
030 ServiceWrapper<DLFileEntryService> {
031 public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
032 _dlFileEntryService = dlFileEntryService;
033 }
034
035
040 @Override
041 public java.lang.String getBeanIdentifier() {
042 return _dlFileEntryService.getBeanIdentifier();
043 }
044
045
050 @Override
051 public void setBeanIdentifier(java.lang.String beanIdentifier) {
052 _dlFileEntryService.setBeanIdentifier(beanIdentifier);
053 }
054
055 @Override
056 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
057 long groupId, long repositoryId, long folderId,
058 java.lang.String sourceFileName, java.lang.String mimeType,
059 java.lang.String title, java.lang.String description,
060 java.lang.String changeLog, long fileEntryTypeId,
061 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
062 java.io.File file, java.io.InputStream is, long size,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return _dlFileEntryService.addFileEntry(groupId, repositoryId,
067 folderId, sourceFileName, mimeType, title, description, changeLog,
068 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
069 }
070
071 @Override
072 public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
073 long fileEntryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return _dlFileEntryService.cancelCheckOut(fileEntryId);
077 }
078
079 @Override
080 public void checkInFileEntry(long fileEntryId, boolean major,
081 java.lang.String changeLog,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
086 serviceContext);
087 }
088
089
093 @Override
094 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
098 }
099
100 @Override
101 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid,
106 serviceContext);
107 }
108
109
113 @Override
114 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
115 long fileEntryId)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return _dlFileEntryService.checkOutFileEntry(fileEntryId);
119 }
120
121 @Override
122 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
123 long fileEntryId,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return _dlFileEntryService.checkOutFileEntry(fileEntryId, serviceContext);
128 }
129
130
134 @Override
135 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
136 long fileEntryId, java.lang.String owner, long expirationTime)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
140 expirationTime);
141 }
142
143 @Override
144 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
145 long fileEntryId, java.lang.String owner, long expirationTime,
146 com.liferay.portal.service.ServiceContext serviceContext)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
150 expirationTime, serviceContext);
151 }
152
153 @Override
154 public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
155 long groupId, long repositoryId, long fileEntryId, long destFolderId,
156 com.liferay.portal.service.ServiceContext serviceContext)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
160 fileEntryId, destFolderId, serviceContext);
161 }
162
163 @Override
164 public void deleteFileEntry(long fileEntryId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException {
167 _dlFileEntryService.deleteFileEntry(fileEntryId);
168 }
169
170 @Override
171 public void deleteFileEntry(long groupId, long folderId,
172 java.lang.String title)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
176 }
177
178 @Override
179 public void deleteFileVersion(long fileEntryId, java.lang.String version)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 _dlFileEntryService.deleteFileVersion(fileEntryId, version);
183 }
184
185 @Override
186 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
187 long imageId)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return _dlFileEntryService.fetchFileEntryByImageId(imageId);
191 }
192
193 @Override
194 public java.io.InputStream getFileAsStream(long fileEntryId,
195 java.lang.String version)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return _dlFileEntryService.getFileAsStream(fileEntryId, version);
199 }
200
201 @Override
202 public java.io.InputStream getFileAsStream(long fileEntryId,
203 java.lang.String version, boolean incrementCounter)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return _dlFileEntryService.getFileAsStream(fileEntryId, version,
207 incrementCounter);
208 }
209
210 @Override
211 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
212 long groupId, long folderId, int status, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException {
216 return _dlFileEntryService.getFileEntries(groupId, folderId, status,
217 start, end, obc);
218 }
219
220 @Override
221 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
222 long groupId, long folderId, int start, int end,
223 com.liferay.portal.kernel.util.OrderByComparator obc)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException {
226 return _dlFileEntryService.getFileEntries(groupId, folderId, start,
227 end, obc);
228 }
229
230 @Override
231 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
232 long groupId, long folderId, long fileEntryTypeId, int start, int end,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return _dlFileEntryService.getFileEntries(groupId, folderId,
237 fileEntryTypeId, start, end, obc);
238 }
239
240 @Override
241 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
242 long groupId, long folderId, java.lang.String[] mimeTypes, int start,
243 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException {
246 return _dlFileEntryService.getFileEntries(groupId, folderId, mimeTypes,
247 start, end, obc);
248 }
249
250 @Override
251 public int getFileEntriesCount(long groupId, long folderId)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
254 }
255
256 @Override
257 public int getFileEntriesCount(long groupId, long folderId, int status)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return _dlFileEntryService.getFileEntriesCount(groupId, folderId, status);
260 }
261
262 @Override
263 public int getFileEntriesCount(long groupId, long folderId,
264 long fileEntryTypeId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
267 fileEntryTypeId);
268 }
269
270 @Override
271 public int getFileEntriesCount(long groupId, long folderId,
272 java.lang.String[] mimeTypes)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
275 mimeTypes);
276 }
277
278 @Override
279 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
280 long fileEntryId)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return _dlFileEntryService.getFileEntry(fileEntryId);
284 }
285
286 @Override
287 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
288 long groupId, long folderId, java.lang.String title)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 return _dlFileEntryService.getFileEntry(groupId, folderId, title);
292 }
293
294 @Override
295 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
296 java.lang.String uuid, long groupId)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
300 }
301
302 @Override
303 public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId) {
304 return _dlFileEntryService.getFileEntryLock(fileEntryId);
305 }
306
307 @Override
308 public int getFoldersFileEntriesCount(long groupId,
309 java.util.List<java.lang.Long> folderIds, int status)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
312 folderIds, status);
313 }
314
315 @Override
316 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
317 long groupId, long userId, long rootFolderId, int start, int end,
318 com.liferay.portal.kernel.util.OrderByComparator obc)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
322 rootFolderId, start, end, obc);
323 }
324
325 @Override
326 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
327 long groupId, long userId, long rootFolderId,
328 java.lang.String[] mimeTypes, int status, int start, int end,
329 com.liferay.portal.kernel.util.OrderByComparator obc)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
333 rootFolderId, mimeTypes, status, start, end, obc);
334 }
335
336 @Override
337 public int getGroupFileEntriesCount(long groupId, long userId,
338 long rootFolderId)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
342 rootFolderId);
343 }
344
345 @Override
346 public int getGroupFileEntriesCount(long groupId, long userId,
347 long rootFolderId, java.lang.String[] mimeTypes, int status)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
351 rootFolderId, mimeTypes, status);
352 }
353
354 @Override
355 public boolean hasFileEntryLock(long fileEntryId)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException {
358 return _dlFileEntryService.hasFileEntryLock(fileEntryId);
359 }
360
361 @Override
362 public boolean isFileEntryCheckedOut(long fileEntryId)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException {
365 return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
366 }
367
368 @Override
369 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
370 long fileEntryId, long newFolderId,
371 com.liferay.portal.service.ServiceContext serviceContext)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
375 serviceContext);
376 }
377
378 @Override
379 public com.liferay.portal.model.Lock refreshFileEntryLock(
380 java.lang.String lockUuid, long companyId, long expirationTime)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException {
383 return _dlFileEntryService.refreshFileEntryLock(lockUuid, companyId,
384 expirationTime);
385 }
386
387 @Override
388 public void revertFileEntry(long fileEntryId, java.lang.String version,
389 com.liferay.portal.service.ServiceContext serviceContext)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException {
392 _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
393 }
394
395 @Override
396 public com.liferay.portal.kernel.search.Hits search(long groupId,
397 long creatorUserId, int status, int start, int end)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException {
400 return _dlFileEntryService.search(groupId, creatorUserId, status,
401 start, end);
402 }
403
404 @Override
405 public com.liferay.portal.kernel.search.Hits search(long groupId,
406 long creatorUserId, long folderId, java.lang.String[] mimeTypes,
407 int status, int start, int end)
408 throws com.liferay.portal.kernel.exception.PortalException,
409 com.liferay.portal.kernel.exception.SystemException {
410 return _dlFileEntryService.search(groupId, creatorUserId, folderId,
411 mimeTypes, status, start, end);
412 }
413
414 @Override
415 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
416 long fileEntryId, java.lang.String sourceFileName,
417 java.lang.String mimeType, java.lang.String title,
418 java.lang.String description, java.lang.String changeLog,
419 boolean majorVersion, long fileEntryTypeId,
420 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
421 java.io.File file, java.io.InputStream is, long size,
422 com.liferay.portal.service.ServiceContext serviceContext)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
426 mimeType, title, description, changeLog, majorVersion,
427 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
428 }
429
430 @Override
431 public boolean verifyFileEntryCheckOut(long fileEntryId,
432 java.lang.String lockUuid)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException {
435 return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
436 }
437
438 @Override
439 public boolean verifyFileEntryLock(long fileEntryId,
440 java.lang.String lockUuid)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException {
443 return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
444 }
445
446
449 public DLFileEntryService getWrappedDLFileEntryService() {
450 return _dlFileEntryService;
451 }
452
453
456 public void setWrappedDLFileEntryService(
457 DLFileEntryService dlFileEntryService) {
458 _dlFileEntryService = dlFileEntryService;
459 }
460
461 @Override
462 public DLFileEntryService getWrappedService() {
463 return _dlFileEntryService;
464 }
465
466 @Override
467 public void setWrappedService(DLFileEntryService dlFileEntryService) {
468 _dlFileEntryService = dlFileEntryService;
469 }
470
471 private DLFileEntryService _dlFileEntryService;
472 }