001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017
026 public class DLSyncServiceWrapper implements DLSyncService {
027 public DLSyncServiceWrapper(DLSyncService dlSyncService) {
028 _dlSyncService = dlSyncService;
029 }
030
031 public com.liferay.portlet.documentlibrary.model.DLSyncUpdate getDLSyncUpdate(
032 long companyId, long repositoryId, java.util.Date lastAccessDate)
033 throws com.liferay.portal.kernel.exception.SystemException {
034 return _dlSyncService.getDLSyncUpdate(companyId, repositoryId,
035 lastAccessDate);
036 }
037
038 public java.io.InputStream getFileDeltaAsStream(long fileEntryId,
039 java.lang.String sourceVersion, java.lang.String destinationVersion)
040 throws com.liferay.portal.kernel.exception.PortalException,
041 com.liferay.portal.kernel.exception.SystemException {
042 return _dlSyncService.getFileDeltaAsStream(fileEntryId, sourceVersion,
043 destinationVersion);
044 }
045
046 public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
047 long fileEntryId, java.lang.String sourceFileName,
048 java.lang.String mimeType, java.lang.String title,
049 java.lang.String description, java.lang.String changeLog,
050 boolean majorVersion, java.io.InputStream deltaInputStream, long size,
051 com.liferay.portal.service.ServiceContext serviceContext)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 return _dlSyncService.updateFileEntry(fileEntryId, sourceFileName,
055 mimeType, title, description, changeLog, majorVersion,
056 deltaInputStream, size, serviceContext);
057 }
058
059 public DLSyncService getWrappedDLSyncService() {
060 return _dlSyncService;
061 }
062
063 public void setWrappedDLSyncService(DLSyncService dlSyncService) {
064 _dlSyncService = dlSyncService;
065 }
066
067 private DLSyncService _dlSyncService;
068 }