001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DLFileVersionService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileVersionService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileVersionServiceWrapper implements DLFileVersionService,
030            ServiceWrapper<DLFileVersionService> {
031            public DLFileVersionServiceWrapper(
032                    DLFileVersionService dlFileVersionService) {
033                    _dlFileVersionService = dlFileVersionService;
034            }
035    
036            @Override
037            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
038                    long fileVersionId)
039                    throws com.liferay.portal.kernel.exception.PortalException {
040                    return _dlFileVersionService.getFileVersion(fileVersionId);
041            }
042    
043            @Override
044            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
045                    long fileEntryId, int status)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return _dlFileVersionService.getFileVersions(fileEntryId, status);
048            }
049    
050            @Override
051            public int getFileVersionsCount(long fileEntryId, int status)
052                    throws com.liferay.portal.kernel.exception.PortalException {
053                    return _dlFileVersionService.getFileVersionsCount(fileEntryId, status);
054            }
055    
056            @Override
057            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
058                    long fileEntryId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return _dlFileVersionService.getLatestFileVersion(fileEntryId);
061            }
062    
063            @Override
064            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
065                    long fileEntryId, boolean excludeWorkingCopy)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return _dlFileVersionService.getLatestFileVersion(fileEntryId,
068                            excludeWorkingCopy);
069            }
070    
071            /**
072            * Returns the OSGi service identifier.
073            *
074            * @return the OSGi service identifier
075            */
076            @Override
077            public java.lang.String getOSGiServiceIdentifier() {
078                    return _dlFileVersionService.getOSGiServiceIdentifier();
079            }
080    
081            @Override
082            public DLFileVersionService getWrappedService() {
083                    return _dlFileVersionService;
084            }
085    
086            @Override
087            public void setWrappedService(DLFileVersionService dlFileVersionService) {
088                    _dlFileVersionService = dlFileVersionService;
089            }
090    
091            private DLFileVersionService _dlFileVersionService;
092    }