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