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.document.library.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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.document.library.kernel.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 com.liferay.document.library.kernel.model.DLFileVersion getLatestFileVersion(
045                    long fileEntryId)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return _dlFileVersionService.getLatestFileVersion(fileEntryId);
048            }
049    
050            @Override
051            public com.liferay.document.library.kernel.model.DLFileVersion getLatestFileVersion(
052                    long fileEntryId, boolean excludeWorkingCopy)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _dlFileVersionService.getLatestFileVersion(fileEntryId,
055                            excludeWorkingCopy);
056            }
057    
058            @Override
059            public int getFileVersionsCount(long fileEntryId, int status)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return _dlFileVersionService.getFileVersionsCount(fileEntryId, status);
062            }
063    
064            /**
065            * Returns the OSGi service identifier.
066            *
067            * @return the OSGi service identifier
068            */
069            @Override
070            public java.lang.String getOSGiServiceIdentifier() {
071                    return _dlFileVersionService.getOSGiServiceIdentifier();
072            }
073    
074            @Override
075            public java.util.List<com.liferay.document.library.kernel.model.DLFileVersion> getFileVersions(
076                    long fileEntryId, int status)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _dlFileVersionService.getFileVersions(fileEntryId, status);
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    }