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