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 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
338 long groupId, long userId, long repositoryId, long rootFolderId,
339 java.lang.String[] mimeTypes, int status, int start, int end,
340 com.liferay.portal.kernel.util.OrderByComparator obc)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException {
343 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
344 repositoryId, rootFolderId, mimeTypes, status, start, end, obc);
345 }
346
347 @Override
348 public int getGroupFileEntriesCount(long groupId, long userId,
349 long rootFolderId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
353 rootFolderId);
354 }
355
356 @Override
357 public int getGroupFileEntriesCount(long groupId, long userId,
358 long rootFolderId, java.lang.String[] mimeTypes, int status)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
362 rootFolderId, mimeTypes, status);
363 }
364
365 @Override
366 public int getGroupFileEntriesCount(long groupId, long userId,
367 long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
368 int status)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
372 repositoryId, rootFolderId, mimeTypes, status);
373 }
374
375 @Override
376 public boolean hasFileEntryLock(long fileEntryId)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException {
379 return _dlFileEntryService.hasFileEntryLock(fileEntryId);
380 }
381
382 @Override
383 public boolean isFileEntryCheckedOut(long fileEntryId)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException {
386 return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
387 }
388
389 @Override
390 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
391 long fileEntryId, long newFolderId,
392 com.liferay.portal.service.ServiceContext serviceContext)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
396 serviceContext);
397 }
398
399 @Override
400 public com.liferay.portal.model.Lock refreshFileEntryLock(
401 java.lang.String lockUuid, long companyId, long expirationTime)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException {
404 return _dlFileEntryService.refreshFileEntryLock(lockUuid, companyId,
405 expirationTime);
406 }
407
408 @Override
409 public void revertFileEntry(long fileEntryId, java.lang.String version,
410 com.liferay.portal.service.ServiceContext serviceContext)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
414 }
415
416 @Override
417 public com.liferay.portal.kernel.search.Hits search(long groupId,
418 long creatorUserId, int status, int start, int end)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 return _dlFileEntryService.search(groupId, creatorUserId, status,
422 start, end);
423 }
424
425 @Override
426 public com.liferay.portal.kernel.search.Hits search(long groupId,
427 long creatorUserId, long folderId, java.lang.String[] mimeTypes,
428 int status, int start, int end)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException {
431 return _dlFileEntryService.search(groupId, creatorUserId, folderId,
432 mimeTypes, status, start, end);
433 }
434
435 @Override
436 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
437 long fileEntryId, java.lang.String sourceFileName,
438 java.lang.String mimeType, java.lang.String title,
439 java.lang.String description, java.lang.String changeLog,
440 boolean majorVersion, long fileEntryTypeId,
441 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
442 java.io.File file, java.io.InputStream is, long size,
443 com.liferay.portal.service.ServiceContext serviceContext)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
447 mimeType, title, description, changeLog, majorVersion,
448 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
449 }
450
451 @Override
452 public boolean verifyFileEntryCheckOut(long fileEntryId,
453 java.lang.String lockUuid)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
457 }
458
459 @Override
460 public boolean verifyFileEntryLock(long fileEntryId,
461 java.lang.String lockUuid)
462 throws com.liferay.portal.kernel.exception.PortalException,
463 com.liferay.portal.kernel.exception.SystemException {
464 return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
465 }
466
467
470 public DLFileEntryService getWrappedDLFileEntryService() {
471 return _dlFileEntryService;
472 }
473
474
477 public void setWrappedDLFileEntryService(
478 DLFileEntryService dlFileEntryService) {
479 _dlFileEntryService = dlFileEntryService;
480 }
481
482 @Override
483 public DLFileEntryService getWrappedService() {
484 return _dlFileEntryService;
485 }
486
487 @Override
488 public void setWrappedService(DLFileEntryService dlFileEntryService) {
489 _dlFileEntryService = dlFileEntryService;
490 }
491
492 private DLFileEntryService _dlFileEntryService;
493 }