001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLSyncService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLSyncService
026     * @generated
027     */
028    public class DLSyncServiceWrapper implements DLSyncService,
029            ServiceWrapper<DLSyncService> {
030            public DLSyncServiceWrapper(DLSyncService dlSyncService) {
031                    _dlSyncService = dlSyncService;
032            }
033    
034            public com.liferay.portlet.documentlibrary.model.DLSyncUpdate getDLSyncUpdate(
035                    long companyId, long repositoryId, java.util.Date lastAccessDate)
036                    throws com.liferay.portal.kernel.exception.PortalException,
037                            com.liferay.portal.kernel.exception.SystemException {
038                    return _dlSyncService.getDLSyncUpdate(companyId, repositoryId,
039                            lastAccessDate);
040            }
041    
042            public java.io.InputStream getFileDeltaAsStream(long fileEntryId,
043                    java.lang.String sourceVersion, java.lang.String destinationVersion)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    return _dlSyncService.getFileDeltaAsStream(fileEntryId, sourceVersion,
047                            destinationVersion);
048            }
049    
050            public com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
051                    long fileEntryId, java.lang.String sourceFileName,
052                    java.lang.String mimeType, java.lang.String title,
053                    java.lang.String description, java.lang.String changeLog,
054                    boolean majorVersion, java.io.InputStream deltaInputStream, long size,
055                    com.liferay.portal.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _dlSyncService.updateFileEntry(fileEntryId, sourceFileName,
059                            mimeType, title, description, changeLog, majorVersion,
060                            deltaInputStream, size, serviceContext);
061            }
062    
063            /**
064             * @deprecated Renamed to {@link #getWrappedService}
065             */
066            public DLSyncService getWrappedDLSyncService() {
067                    return _dlSyncService;
068            }
069    
070            /**
071             * @deprecated Renamed to {@link #setWrappedService}
072             */
073            public void setWrappedDLSyncService(DLSyncService dlSyncService) {
074                    _dlSyncService = dlSyncService;
075            }
076    
077            public DLSyncService getWrappedService() {
078                    return _dlSyncService;
079            }
080    
081            public void setWrappedService(DLSyncService dlSyncService) {
082                    _dlSyncService = dlSyncService;
083            }
084    
085            private DLSyncService _dlSyncService;
086    }