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.Fields> fieldsMap,
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, fieldsMap, 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.model.Lock getFileEntryLock(long fileEntryId) {
271 return _dlFileEntryService.getFileEntryLock(fileEntryId);
272 }
273
274 @Override
275 public int getFoldersFileEntriesCount(long groupId,
276 java.util.List<java.lang.Long> folderIds, int status) {
277 return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
278 folderIds, status);
279 }
280
281 @Override
282 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
283 long groupId, long userId, long repositoryId, long rootFolderId,
284 java.lang.String[] mimeTypes, int status, int start, int end,
285 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
286 throws com.liferay.portal.kernel.exception.PortalException {
287 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
288 repositoryId, rootFolderId, mimeTypes, status, start, end, obc);
289 }
290
291 @Override
292 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
293 long groupId, long userId, long rootFolderId,
294 java.lang.String[] mimeTypes, int status, int start, int end,
295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
296 throws com.liferay.portal.kernel.exception.PortalException {
297 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
298 rootFolderId, mimeTypes, status, start, end, obc);
299 }
300
301 @Override
302 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
303 long groupId, long userId, long rootFolderId, int start, int end,
304 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
305 throws com.liferay.portal.kernel.exception.PortalException {
306 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
307 rootFolderId, start, end, obc);
308 }
309
310 @Override
311 public int getGroupFileEntriesCount(long groupId, long userId,
312 long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
313 int status) throws com.liferay.portal.kernel.exception.PortalException {
314 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
315 repositoryId, rootFolderId, mimeTypes, status);
316 }
317
318 @Override
319 public int getGroupFileEntriesCount(long groupId, long userId,
320 long rootFolderId)
321 throws com.liferay.portal.kernel.exception.PortalException {
322 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
323 rootFolderId);
324 }
325
326 @Override
327 public int getGroupFileEntriesCount(long groupId, long userId,
328 long rootFolderId, java.lang.String[] mimeTypes, int status)
329 throws com.liferay.portal.kernel.exception.PortalException {
330 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
331 rootFolderId, mimeTypes, status);
332 }
333
334 @Override
335 public boolean hasFileEntryLock(long fileEntryId)
336 throws com.liferay.portal.kernel.exception.PortalException {
337 return _dlFileEntryService.hasFileEntryLock(fileEntryId);
338 }
339
340 @Override
341 public boolean isFileEntryCheckedOut(long fileEntryId)
342 throws com.liferay.portal.kernel.exception.PortalException {
343 return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
344 }
345
346 @Override
347 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
348 long fileEntryId, long newFolderId,
349 com.liferay.portal.service.ServiceContext serviceContext)
350 throws com.liferay.portal.kernel.exception.PortalException {
351 return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
352 serviceContext);
353 }
354
355 @Override
356 public com.liferay.portal.model.Lock refreshFileEntryLock(
357 java.lang.String lockUuid, long companyId, long expirationTime)
358 throws com.liferay.portal.kernel.exception.PortalException {
359 return _dlFileEntryService.refreshFileEntryLock(lockUuid, companyId,
360 expirationTime);
361 }
362
363 @Override
364 public void revertFileEntry(long fileEntryId, java.lang.String version,
365 com.liferay.portal.service.ServiceContext serviceContext)
366 throws com.liferay.portal.kernel.exception.PortalException {
367 _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
368 }
369
370 @Override
371 public com.liferay.portal.kernel.search.Hits search(long groupId,
372 long creatorUserId, long folderId, java.lang.String[] mimeTypes,
373 int status, int start, int end)
374 throws com.liferay.portal.kernel.exception.PortalException {
375 return _dlFileEntryService.search(groupId, creatorUserId, folderId,
376 mimeTypes, status, start, end);
377 }
378
379 @Override
380 public com.liferay.portal.kernel.search.Hits search(long groupId,
381 long creatorUserId, int status, int start, int end)
382 throws com.liferay.portal.kernel.exception.PortalException {
383 return _dlFileEntryService.search(groupId, creatorUserId, status,
384 start, end);
385 }
386
387
392 @Override
393 public void setBeanIdentifier(java.lang.String beanIdentifier) {
394 _dlFileEntryService.setBeanIdentifier(beanIdentifier);
395 }
396
397 @Override
398 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
399 long fileEntryId, java.lang.String sourceFileName,
400 java.lang.String mimeType, java.lang.String title,
401 java.lang.String description, java.lang.String changeLog,
402 boolean majorVersion, long fileEntryTypeId,
403 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
404 java.io.File file, java.io.InputStream is, long size,
405 com.liferay.portal.service.ServiceContext serviceContext)
406 throws com.liferay.portal.kernel.exception.PortalException {
407 return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
408 mimeType, title, description, changeLog, majorVersion,
409 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
410 }
411
412 @Override
413 public boolean verifyFileEntryCheckOut(long fileEntryId,
414 java.lang.String lockUuid)
415 throws com.liferay.portal.kernel.exception.PortalException {
416 return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
417 }
418
419 @Override
420 public boolean verifyFileEntryLock(long fileEntryId,
421 java.lang.String lockUuid)
422 throws com.liferay.portal.kernel.exception.PortalException {
423 return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
424 }
425
426
429 @Deprecated
430 public DLFileEntryService getWrappedDLFileEntryService() {
431 return _dlFileEntryService;
432 }
433
434
437 @Deprecated
438 public void setWrappedDLFileEntryService(
439 DLFileEntryService dlFileEntryService) {
440 _dlFileEntryService = dlFileEntryService;
441 }
442
443 @Override
444 public DLFileEntryService getWrappedService() {
445 return _dlFileEntryService;
446 }
447
448 @Override
449 public void setWrappedService(DLFileEntryService dlFileEntryService) {
450 _dlFileEntryService = dlFileEntryService;
451 }
452
453 private DLFileEntryService _dlFileEntryService;
454 }