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            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            @Override
042            public java.lang.String getBeanIdentifier() {
043                    return _dlFileVersionService.getBeanIdentifier();
044            }
045    
046            @Override
047            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
048                    long fileVersionId)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _dlFileVersionService.getFileVersion(fileVersionId);
051            }
052    
053            @Override
054            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
055                    long fileEntryId, int status)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return _dlFileVersionService.getFileVersions(fileEntryId, status);
058            }
059    
060            @Override
061            public int getFileVersionsCount(long fileEntryId, int status)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    return _dlFileVersionService.getFileVersionsCount(fileEntryId, status);
064            }
065    
066            @Override
067            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
068                    long fileEntryId)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return _dlFileVersionService.getLatestFileVersion(fileEntryId);
071            }
072    
073            @Override
074            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
075                    long fileEntryId, boolean excludeWorkingCopy)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return _dlFileVersionService.getLatestFileVersion(fileEntryId,
078                            excludeWorkingCopy);
079            }
080    
081            /**
082            * Sets the Spring bean ID for this bean.
083            *
084            * @param beanIdentifier the Spring bean ID for this bean
085            */
086            @Override
087            public void setBeanIdentifier(java.lang.String beanIdentifier) {
088                    _dlFileVersionService.setBeanIdentifier(beanIdentifier);
089            }
090    
091            /**
092             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
093             */
094            @Deprecated
095            public DLFileVersionService getWrappedDLFileVersionService() {
096                    return _dlFileVersionService;
097            }
098    
099            /**
100             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
101             */
102            @Deprecated
103            public void setWrappedDLFileVersionService(
104                    DLFileVersionService dlFileVersionService) {
105                    _dlFileVersionService = dlFileVersionService;
106            }
107    
108            @Override
109            public DLFileVersionService getWrappedService() {
110                    return _dlFileVersionService;
111            }
112    
113            @Override
114            public void setWrappedService(DLFileVersionService dlFileVersionService) {
115                    _dlFileVersionService = dlFileVersionService;
116            }
117    
118            private DLFileVersionService _dlFileVersionService;
119    }