001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link DLSyncService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DLSyncService
024     * @generated
025     */
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    }